20#include <com/sun/star/beans/XPropertySet.hpp>
21#include <com/sun/star/text/RelOrientation.hpp>
22#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
23#include <com/sun/star/xml/sax/SAXException.hpp>
24#include <ooxml/resourceids.hxx>
26#include <oox/token/namespaces.hxx>
67(uno::Reference< uno::XComponentContext >
const & context)
71 mnToken(oox::XML_TOKEN_COUNT),
80 m_bDiscardChildren(
false),
84 mpParserState =
new OOXMLParserState();
86 mpParserState->incContextCount();
93 mnToken(
oox::XML_TOKEN_COUNT),
94 mnMathJcVal(pContext->mnMathJcVal),
95 mbIsMathPara(pContext->mbIsMathPara),
96 mpStream(pContext->mpStream),
97 mpParserState(pContext->mpParserState),
98 mnTableDepth(pContext->mnTableDepth),
99 m_inPositionV(pContext->m_inPositionV),
100 mbAllowInCell(pContext->mbAllowInCell),
101 mbIsVMLfound(pContext->mbIsVMLfound),
103 m_bDiscardChildren(pContext->m_bDiscardChildren),
104 m_bTookChoice(pContext->m_bTookChoice)
118 switch (oox::getBaseToken(nElement))
120 case XML_AlternateContent:
132 OUString aRequires = rAttribs->getOptionalValue(XML_Requires);
133 static const char* aFeatures[] = {
138 for (
const char *
p : aFeatures)
140 if (aRequires.equalsAscii(
p))
153 SAL_WARN(
"writerfilter",
"OOXMLFastContextHandler::prepareMceContext: unhandled element:" << oox::getBaseToken(nElement));
165 if (Attribs && Attribs->hasAttribute(oox::NMSP_xml | oox::XML_space))
167 mbPreserveSpace = Attribs->getValue(oox::NMSP_xml | oox::XML_space) ==
"preserve";
170 if (Element == W_TOKEN(footnote) || Element == W_TOKEN(endnote))
173 if (!Attribs->hasAttribute(W_TOKEN(
type)) ||
174 ( Attribs->getValue(W_TOKEN(
type)) !=
"separator" &&
175 Attribs->getValue(W_TOKEN(
type)) !=
"continuationSeparator" &&
176 Attribs->getValue(W_TOKEN(
type)) !=
"continuationNotice" ))
181 else if (Element == (NMSP_officeMath | XML_oMathPara))
189 auto aAttrLst = Attribs->getFastAttributes();
195 if (oox::getNamespace(Element) == NMSP_mce)
206(
const OUString & ,
const OUString & ,
213 if (Element == (NMSP_mce | XML_Choice) || Element == (NMSP_mce | XML_Fallback))
215 else if (Element == (NMSP_mce | XML_AlternateContent))
231 if( Element == (NMSP_dmlWordDr|XML_positionV) )
233 else if( Element == (NMSP_dmlWordDr|XML_positionH) )
244(
const OUString & ,
const OUString & )
256 else if (oox::getNamespace(Element) == NMSP_mce)
281(
const OUString & aChars)
287(
const OUString & rString)
435 pPropSet->resolve(aHandler);
436 if (
const OUString& sText = aHandler.
getString(); !sText.isEmpty())
680 return cChar == 0x9 || cChar == 0xA || cChar == 0xD || cChar == 0x20;
683OUString TrimXMLWhitespace(
const OUString & sText)
685 sal_Int32 nTrimmedStart = 0;
686 const sal_Int32 nLen = sText.getLength();
687 sal_Int32 nTrimmedEnd = nLen - 1;
688 while (nTrimmedStart < nLen && IsXMLWhitespace(sText[nTrimmedStart]))
690 while (nTrimmedStart <= nTrimmedEnd && IsXMLWhitespace(sText[nTrimmedEnd]))
692 if ((nTrimmedStart == 0) && (nTrimmedEnd == nLen - 1))
694 else if (nTrimmedStart > nTrimmedEnd)
697 return sText.copy(nTrimmedStart, nTrimmedEnd-nTrimmedStart+1);
708 OUString sNormalizedText = sText.replaceAll(
"\n",
" ");
713 sNormalizedText = TrimXMLWhitespace(sNormalizedText).replaceAll(
"\t",
" ");
716 (sNormalizedText.getStr()),
717 sNormalizedText.getLength());
891(
const sal_Int32 type,
const OUString & rId)
897(
const sal_Int32 type,
const OUString & rId)
906 SAL_WARN_IF(!objDocument,
"writerfilter",
"no document to resolveData");
919(
const OUString & rId)
998 const OUString & sText = aHandler.
getString();
1053 catch (
const uno::RuntimeException&)
1057 catch (
const xml::sax::SAXException&)
1061 catch (
const uno::Exception& e)
1064 throw lang::WrappedTargetRuntimeException(e.Message, e.Context,
a);
1086 case W_TOKEN(footnoteReference):
1092 case W_TOKEN(endnoteReference):
1107 case W_TOKEN(footerReference):
1114 case W_TOKEN(headerReference):
1294 =
mpValue &&
mpValue->getInt() == NS_ooxml::LN_Value_ST_Direction_rtl;
1313 pTableRow->setGridAfter(
getValue());
1358 if (pHandler !=
nullptr)
1377 , mbForwardEventsSaved(false)
1395 static_cast<sal_uInt32
>(
mnMyXNoteType) == NS_ooxml::LN_Value_doc_ST_FtnEdn_separator ||
1556 int count = val->getInt();
1586 static Id borders[] = { NS_ooxml::LN_CT_TcBorders_top, NS_ooxml::LN_CT_TcBorders_bottom,
1587 NS_ooxml::LN_CT_TcBorders_start, NS_ooxml::LN_CT_TcBorders_end };
1588 for(sal_uInt32 border : borders)
1658 for (
const auto& rTableProp : *pTableProps)
1660 if (rTableProp->getId() == NS_ooxml::LN_CT_TblPrBase_tblpPr)
1697 m_bShapeStarted(false), m_bShapeContextPushed(false)
1715 if (Element == DGM_TOKEN(relIds))
1720 while (pHandler && pHandler->
getId() != NS_ooxml::LN_anchor_anchor
1721 && pHandler->
getId() != NS_ooxml::LN_inline_inline)
1730 auto aIt = pPropSet->begin();
1731 auto aItEnd = pPropSet->end();
1732 while (aIt != aItEnd && (*aIt)->getId() != NS_ooxml::LN_CT_Inline_extent
1733 && (*aIt)->getId() != NS_ooxml::LN_CT_Anchor_extent)
1743 pProperties->resolve(*pExtentHandler);
1755(
const OUString & Namespace,
1756 const OUString & Name,
1786 mrShapeContext->setDocumentProperties(xDocSupplier->getDocumentProperties());
1798 if (xGraphicMapper.is())
1823 bool bIsPicture = Element == ( NMSP_dmlPicture | XML_pic );
1862 bool bIsPicture = Element == ( NMSP_dmlPicture | XML_pic );
1868(
const OUString & Namespace,
1869 const OUString & Name)
1891 bool bGroupShape = Element ==
Token_t(NMSP_vml | XML_group);
1895 mbIsVMLfound = (getNamespace(Element) == NMSP_vmlOffice) || (getNamespace(Element) == NMSP_vml);
1896 switch (oox::getNamespace(Element))
1900 case NMSP_vmlOffice:
1905 if (!xContextHandler.is())
1918 if (Attribs->hasAttribute(NMSP_vmlOffice | XML_allowincell))
1920 = !(Attribs->getValue(NMSP_vmlOffice | XML_allowincell) ==
"f");
1924 pWrapper->addNamespace(NMSP_doc);
1925 pWrapper->addNamespace(NMSP_vmlWord);
1926 pWrapper->addNamespace(NMSP_vmlOffice);
1927 pWrapper->addToken( NMSP_vml|XML_textbox );
1929 xContextHandler.set(pWrapper);
1932 xContextHandler.set(
this);
1941 if (Element ==
static_cast<sal_Int32
>(NMSP_wps | XML_txbx) ||
1942 Element ==
static_cast<sal_Int32
>(NMSP_wps | XML_linkedTxbx) )
1945 return xContextHandler;
1950(
const OUString & Namespace,
1951 const OUString & Name,
1958 (Namespace,
Name, Attribs));
1964(
const OUString & aChars)
1979 mxWrappedContext(xContext),
1980 mxShapeHandler(xShapeHandler)
1992(
const OUString & Namespace,
1993 const OUString & Name,
2001(
const OUString & Namespace,
2002 const OUString & Name)
2010(
const OUString & Namespace,
2011 const OUString & Name,
2018 (Namespace,
Name, Attribs);
2031 if (pHandler !=
nullptr)
2060 && (Element ==
Token_t(NMSP_wps | XML_txbx)
2061 || Element ==
Token_t(NMSP_wps | XML_linkedTxbx)))
2074 && (Element ==
Token_t(NMSP_wps | XML_txbx)
2075 || Element ==
Token_t(NMSP_wps | XML_linkedTxbx)))
2095 bool bIsWrap = Element ==
static_cast<sal_Int32
>(NMSP_vmlWord | XML_wrap);
2096 bool bIsSignatureLine = Element ==
static_cast<sal_Int32
>(NMSP_vmlOffice | XML_signatureline);
2098 (oox::getBaseToken(Element) != XML_linkedTxbx) && (oox::getBaseToken(Element) != XML_txbx);
2100 if ( bInNamespaces && ((!bIsWrap && !bIsSignatureLine)
2114 xResult.set(pWrapper);
2128(
const OUString & aChars)
2149 if (pHandler !=
nullptr)
2160 if (pHandler !=
nullptr)
2175 if (pHandler !=
nullptr)
2184 std::string sResult =
"Wrapper(";
2189 if (pHandler !=
nullptr)
2190 sResult += pHandler->
getType();
2205 if (pHandler !=
nullptr)
2206 pHandler->
setId(rId);
2217 if (pHandler !=
nullptr && pHandler->
getId() != 0)
2218 nResult = pHandler->
getId();
2231 if (pHandler !=
nullptr)
2243 if (pHandler !=
nullptr)
2280 xContextHandler.set(
this );
2281 return xContextHandler;
2304 "DefaultParentBaseURL",
getDocument()->GetDocumentBaseURL()) };
2311 if( oox::FormulaImExportBase*
import
2312 =
dynamic_cast< oox::FormulaImExportBase*
>( component.get()))
2313 import->readFormulaOoxml(
m_buffer );
2323 case eMathParaJc::CENTER:
2324 pProps->add(NS_ooxml::LN_Value_math_ST_Jc_centerGroup, pVal,
2327 case eMathParaJc::LEFT:
2328 pProps->add(NS_ooxml::LN_Value_math_ST_Jc_left, pVal,
2331 case eMathParaJc::RIGHT:
2332 pProps->add(NS_ooxml::LN_Value_math_ST_Jc_right, pVal,
2362 if (pValue->getInt())
const sal_Unicode uFtnEdnSep
const sal_Unicode uFtnSep
const sal_Unicode uFtnEdnRef
const sal_Unicode uSoftHyphen
const sal_uInt8 cFtnEdnCont
const sal_Unicode uNoBreakHyphen
Reference< XComponentContext > m_xContext
css::uno::Reference< css::embed::XEmbeddedObject > CreateEmbeddedObject(const css::uno::Sequence< sal_Int8 > &, OUString &, OUString const *pBaseURL=nullptr)
virtual void checkId(const sal_Int32 nId)=0
Receives identifier for node entry.
virtual void endGlossaryEntry()=0
Receives end mark for glossary document entry.
virtual void endParagraphGroup()=0
Receives end mark for group with the same paragraph properties.
virtual void endCharacterGroup()=0
Receives end mark for group with the same character properties.
virtual void props(writerfilter::Reference< Properties >::Pointer_t ref)=0
Receives properties of the current run of text.
virtual void markLastSectionGroup()
The current section is the last one in this body text.
virtual void startGlossaryEntry()=0
Receives start mark for glossary document entry.
virtual void startSectionGroup()=0
Receives start mark for group with the same section properties.
virtual void endTextBoxContent()=0
virtual void endSectionGroup()=0
Receives end mark for group with the same section properties.
virtual void align(const OUString &rText, bool bVertical)=0
Horizontal and vertical alignment for a shape.
virtual void info(const std::string &info)=0
Debugging: Receives information about current point in stream.
virtual void startParagraphGroup()=0
Receives start mark for group with the same paragraph properties.
virtual void text(const sal_uInt8 *data, size_t len)=0
Receives 8-bit per character text.
virtual void startTextBoxContent()=0
Receives a text-box-content.
virtual void positivePercentage(const OUString &rText)=0
virtual void startShape(css::uno::Reference< css::drawing::XShape > const &xShape)=0
Receives a shape.
virtual void startCharacterGroup()=0
Receives start mark for group with the same character properties.
virtual css::awt::Point getPositionOffset()=0
Returns the last set offsets of a shape in HMM.
virtual void markLastParagraphInSection()
virtual void table(Id name, writerfilter::Reference< Table >::Pointer_t ref)=0
Receives table.
virtual void commentProps(const OUString &, const CommentProperties &)
virtual void positionOffset(const OUString &rText, bool bVertical)=0
Offset in EMUs for a shape.
virtual void utext(const sal_uInt8 *data, size_t len)=0
Receives 16-bit per character text.
virtual void endShape()=0
Looks up the stream name for a '<w:altChunk r:id="..."/>' reference.
static OOXMLValue::Pointer_t const & Create(bool bValue)
virtual void setShapeContext(rtl::Reference< oox::shape::ShapeContextHandler > xContext) override
virtual rtl::Reference< oox::shape::ShapeContextHandler > getShapeContext() override
void setTheme(const oox::drawingml::ThemePtr &pTheme)
void popShapeContext() override
Pop context of a previously pushed drawingML shape.
bool IsSkipImages() const
virtual const oox::drawingml::ThemePtr & getTheme() const override
const css::uno::Reference< css::graphic::XGraphicMapper > & getGraphicMapper() const
void pushShapeContext() override
Push context of drawingML shapes, so nested shapes are handled separately.
virtual css::uno::Reference< css::io::XInputStream > getInputStreamForId(const OUString &rId)=0
static css::uno::Reference< css::xml::sax::XFastContextHandler > createFastChildContextFromStart(OOXMLFastContextHandler *pHandler, Token_t Element)
static void attributes(OOXMLFastContextHandler *pHandler, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs)
static void characters(OOXMLFastContextHandler *pHandler, const OUString &rString)
static void startAction(OOXMLFastContextHandler *pHandler)
static void endAction(OOXMLFastContextHandler *pHandler)
static css::uno::Reference< css::xml::sax::XFastContextHandler > createFastChildContext(OOXMLFastContextHandler *pHandler, Token_t Element)
void att_paraId(const OOXMLValue::Pointer_t &pValue)
void att_paraIdParent(const OOXMLValue::Pointer_t &pValue)
OOXMLFastContextHandlerCommentEx(OOXMLFastContextHandler *pContext)
virtual void lcl_endFastElement(Token_t Element) override
void att_done(const OOXMLValue::Pointer_t &pValue)
A class that converts from XFastParser/XFastContextHandler usage to a liner XML stream of data.
virtual void lcl_startFastElement(Token_t Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
virtual void lcl_characters(const OUString &aChars) override
oox::formulaimport::XmlStreamBuilder m_buffer
virtual void process()=0
Called when the tokens for the element, its content and sub-elements have been linearized and should ...
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > lcl_createFastChildContext(Token_t Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
virtual void lcl_endFastElement(Token_t Element) override
OOXMLFastContextHandlerLinear(OOXMLFastContextHandler *pContext)
OOXMLFastContextHandlerMath(OOXMLFastContextHandler *pContext)
virtual void process() override
Called when the tokens for the element, its content and sub-elements have been linearized and should ...
void handleOutOfOrderBreak()
OOXMLPropertySet::Pointer_t mpPropertySet
the properties
virtual OOXMLValue::Pointer_t getValue() const override
Return value of this context(element).
virtual void setPropertySet(const OOXMLPropertySet::Pointer_t &pPropertySet) override
virtual void lcl_endFastElement(Token_t Element) override
virtual OOXMLPropertySet::Pointer_t getPropertySet() const override
virtual ~OOXMLFastContextHandlerProperties() override
OOXMLFastContextHandlerProperties(OOXMLFastContextHandler *pContext)
void handleHyperlinkURL()
virtual void newProperty(Id nId, const OOXMLValue::Pointer_t &pVal) override
virtual ~OOXMLFastContextHandlerPropertyTable() override
OOXMLFastContextHandlerPropertyTable(OOXMLFastContextHandler *pContext)
virtual void lcl_endFastElement(Token_t Element) override
bool isDMLGroupShape() const
virtual void SAL_CALL endUnknownElement(const OUString &Namespace, const OUString &Name) override
OOXMLFastContextHandlerShape(OOXMLFastContextHandler *pContext)
virtual void SAL_CALL startUnknownElement(const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
rtl::Reference< oox::shape::ShapeContextHandler > mrShapeContext
virtual void lcl_startFastElement(Token_t Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
virtual void setToken(Token_t nToken) override
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createUnknownChildContext(const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
virtual void lcl_characters(const OUString &aChars) override
virtual void lcl_endFastElement(Token_t Element) override
bool m_bShapeContextPushed
Is it necessary to pop the stack in the dtor?
void sendShape(Token_t Element)
virtual ~OOXMLFastContextHandlerShape() override
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > lcl_createFastChildContext(Token_t Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
void sendProperty(Id nId)
virtual OOXMLPropertySet::Pointer_t getPropertySet() const override
virtual void newProperty(Id aId, const OOXMLValue::Pointer_t &pVal) override
OOXMLPropertySet::Pointer_t mpPropertySetAttrs
const OOXMLPropertySet::Pointer_t & getPropertySetAttrs() const
OOXMLFastContextHandlerStream(OOXMLFastContextHandler *pContext)
virtual ~OOXMLFastContextHandlerStream() override
virtual ~OOXMLFastContextHandlerTable() override
OOXMLFastContextHandlerTable(OOXMLFastContextHandler *pContext)
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
css::uno::Reference< css::xml::sax::XFastContextHandler > mCurrentChild
virtual void lcl_endFastElement(Token_t Element) override
OOXMLFastContextHandlerTextTableCell(OOXMLFastContextHandler *pContext)
virtual ~OOXMLFastContextHandlerTextTableCell() override
virtual ~OOXMLFastContextHandlerTextTableRow() override
void handleGridBefore(const OOXMLValue::Pointer_t &val)
OOXMLFastContextHandlerTextTableRow(OOXMLFastContextHandler *pContext)
virtual void lcl_endFastElement(Token_t Element) override
OOXMLFastContextHandlerTextTable(OOXMLFastContextHandler *pContext)
virtual void lcl_startFastElement(Token_t Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
virtual ~OOXMLFastContextHandlerTextTable() override
virtual ~OOXMLFastContextHandlerValue() override
virtual void lcl_endFastElement(Token_t Element) override
OOXMLValue::Pointer_t mpValue
OOXMLFastContextHandlerValue(OOXMLFastContextHandler *pContext)
virtual void setDefaultHexValue() override
virtual void setDefaultIntegerValue() override
void setValue(const OOXMLValue::Pointer_t &pValue)
virtual void popBiDiEmbedLevel() override
virtual void setDefaultBooleanValue() override
virtual void setDefaultStringValue() override
virtual void pushBiDiEmbedLevel() override
virtual OOXMLValue::Pointer_t getValue() const override
Return value of this context(element).
OOXMLFastContextHandlerWrapper wraps an OOXMLFastContextHandler.
virtual void setId(Id nId) override
rtl::Reference< OOXMLFastContextHandlerShape > mxShapeHandler
std::set< Token_t > mMyTokens
virtual void lcl_characters(const OUString &aChars) override
virtual OOXMLPropertySet::Pointer_t getPropertySet() const override
virtual void attributes(const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
virtual void SAL_CALL startUnknownElement(const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
virtual std::string getType() const override
Returns a string describing the type of the context.
void addNamespace(Id nId)
std::set< Id > mMyNamespaces
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createUnknownChildContext(const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > lcl_createFastChildContext(Token_t Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
virtual void newProperty(Id nId, const OOXMLValue::Pointer_t &pVal) override
virtual void SAL_CALL endUnknownElement(const OUString &Namespace, const OUString &Name) override
virtual void lcl_endFastElement(Token_t Element) override
virtual Id getId() const override
OOXMLFastContextHandlerWrapper(OOXMLFastContextHandler *pParent, css::uno::Reference< css::xml::sax::XFastContextHandler > const &xContext, rtl::Reference< OOXMLFastContextHandlerShape > const &xShapeHandler)
virtual ResourceEnum_t getResource() const override
virtual void lcl_startFastElement(Token_t Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
OOXMLFastContextHandler * getFastContextHandler() const
css::uno::Reference< css::xml::sax::XFastContextHandler > mxWrappedContext
virtual void setToken(Token_t nToken) override
virtual void setPropertySet(const OOXMLPropertySet::Pointer_t &pPropertySet) override
virtual Token_t getToken() const override
virtual ~OOXMLFastContextHandlerWrapper() override
void addToken(Token_t Element)
OOXMLPropertySet::Pointer_t mpPropertySet
void checkType(const OOXMLValue::Pointer_t &pValue)
bool mbForwardEventsSaved
OOXMLFastContextHandlerXNote(OOXMLFastContextHandler *pContext)
virtual ~OOXMLFastContextHandlerXNote() override
virtual void lcl_startFastElement(Token_t Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
virtual void lcl_endFastElement(Token_t Element) override
void checkId(const OOXMLValue::Pointer_t &pValue)
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
void propagateCharacterProperties()
void sendTableDepth() const
void setLastParagraphInSection()
virtual Token_t getToken() const
void setStream(Stream *pStream)
void setLastSectionGroup()
void resolveEndnote(const sal_Int32 nId)
void resolveFootnote(const sal_Int32 nId)
OOXMLDocumentImpl * getDocument()
virtual void setPropertySet(const OOXMLPropertySet::Pointer_t &pPropertySet)
void startParagraphGroup()
virtual void SAL_CALL characters(const OUString &aChars) override
void text(const OUString &sText)
void positionOffset(const OUString &sText)
sal_Int32 getXNoteId() const
virtual void setDefaultHexValue()
void setDefine(Id nDefine)
void alignH(const OUString &sText)
bool isForwardEvents() const
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createUnknownChildContext(const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
void setDocument(OOXMLDocumentImpl *pDocument)
void handleLastParagraphInSection()
virtual void pushBiDiEmbedLevel()
void propagateTableProperties()
void sendTableProperties()
void positivePercentage(const OUString &rText)
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > lcl_createFastChildContext(Token_t Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs)
OUString getTargetForId(const OUString &rId)
OOXMLValue::Pointer_t mpGridAfter
void resolveHeader(const sal_Int32 type, const OUString &rId)
virtual ~OOXMLFastContextHandler() override
virtual void newProperty(Id aId, const OOXMLValue::Pointer_t &pVal)
virtual void SAL_CALL startFastElement(sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override final
void resolveComment(const sal_Int32 nId)
void resolvePicture(const OUString &rId)
virtual OOXMLValue::Pointer_t getValue() const
Return value of this context(element).
virtual void lcl_endFastElement(Token_t Element)
virtual void SAL_CALL startUnknownElement(const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
virtual void SAL_CALL endUnknownElement(const OUString &Namespace, const OUString &Name) override
void startCharacterGroup()
virtual void lcl_characters(const OUString &aChars)
bool m_bTookChoice
Did we take the Choice or want Fallback instead?
virtual void attributes(const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs)
virtual void popBiDiEmbedLevel()
OOXMLParserState::Pointer_t mpParserState
virtual void setToken(Token_t nToken)
virtual void SAL_CALL endFastElement(sal_Int32 Element) override
void resolveFooter(const sal_Int32 type, const OUString &rId)
virtual void setDefaultIntegerValue()
void propagateCellProperties()
virtual OOXMLPropertySet::Pointer_t getPropertySet() const
bool prepareMceContext(Token_t nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs)
Handles AlternateContent. Returns true, if children of the current element should be ignored.
void setXNoteId(const OOXMLValue::Pointer_t &pValue)
virtual void lcl_startFastElement(Token_t Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs)
unsigned int mnTableDepth
virtual void setDefaultBooleanValue()
virtual std::string getType() const
Returns a string describing the type of the context.
void startGlossaryEntry()
void setForwardEvents(bool bForwardEvents)
void sendPropertiesToParent()
virtual ResourceEnum_t getResource() const
void sendCellProperties()
void alignV(const OUString &sText)
OOXMLFastContextHandler(css::uno::Reference< css::uno::XComponentContext > const &context)
void propagateRowProperties()
void resolveData(const OUString &rId)
void sendPropertiesWithId(Id nId)
OOXMLFastContextHandler * getParent() const
OOXMLFastContextHandler * mpParent
void sendPropertyToParent()
virtual void setDefaultStringValue()
bool IsPreserveSpace() const
virtual void setId(Id nId)
static OOXMLValue::Pointer_t Create(sal_Int32 nValue)
const OUString & getString() const
tools::SvRef< OOXMLPropertySet > Pointer_t
void add(const ValuePointer_t &pPropertySet)
OOXMLTable * clone() const
tools::SvRef< OOXMLValue > Pointer_t
RegionData_Impl * mpParent
#define SAL_WARN_IF(condition, area, stream)
#define SAL_WARN(area, stream)
css::beans::PropertyValue makePropertyValue(const OUString &rName, T &&rValue)
Any SAL_CALL getCaughtException()
OUString getPropertyName(PropertyIds eId)
const sal_uInt8 cFieldSep
const sal_uInt8 cFieldStart
const sal_uInt8 cFieldEnd
const sal_uInt8 cFieldLock
Struct to store our 'alternate state'.
bool m_bTookChoice
Did we take the Choice or want Fallback instead?