24#include <com/sun/star/uno/XComponentContext.hpp>
25#include <com/sun/star/xml/sax/XFastContextHandler.hpp>
33class OOXMLDocumentImpl;
51 virtual void SAL_CALL
startFastElement (sal_Int32 Element,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& Attribs)
override final;
53 virtual void SAL_CALL
startUnknownElement(
const OUString & Namespace,
const OUString & Name,
const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs)
override;
57 virtual void SAL_CALL
endUnknownElement(
const OUString & Namespace,
const OUString & Name)
override;
59 virtual css::uno::Reference<css::xml::sax::XFastContextHandler> SAL_CALL
createFastChildContext(sal_Int32 Element,
60 const css::uno::Reference<css::xml::sax::XFastAttributeList>& Attribs)
override;
62 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL
createUnknownChildContext(
const OUString & Namespace,
const OUString & Name,
63 const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs)
override;
65 virtual void SAL_CALL
characters(
const OUString & aChars)
override;
85 virtual std::string
getType()
const {
return "??"; }
91 virtual void attributes(
const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs);
105 const OUString & rId);
107 const OUString & rId);
160 void text(
const OUString & sText);
163 void alignH(
const OUString & sText);
164 void alignV(
const OUString & sText);
226 virtual css::uno::Reference< css::xml::sax::XFastContextHandler >
lcl_createFastChildContext(
Token_t Element,
const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs);
248 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
337 virtual std::string
getType()
const override {
return "Value"; }
359 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL
createFastChildContext (sal_Int32 Element,
360 const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs)
override;
371 virtual std::string
getType()
const override {
return "Table"; }
386 virtual std::string
getType()
const override {
return "XNote"; }
393 virtual void lcl_startFastElement(
Token_t Element,
const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs)
override;
406 virtual std::string
getType()
const override {
return "TextTableCell"; }
418 virtual std::string
getType()
const override {
return "TextTableRow"; }
432 virtual std::string
getType()
const override {
return "TextTable"; }
439 virtual void lcl_startFastElement(
Token_t Element,
const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs)
override;
456 virtual std::string
getType()
const override {
return "Shape"; }
459 virtual void SAL_CALL
startUnknownElement (
const OUString & Namespace,
const OUString & Name,
const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs)
override;
461 virtual void SAL_CALL
endUnknownElement(
const OUString & Namespace,
const OUString & Name)
override;
463 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL
createUnknownChildContext(
const OUString & Namespace,
const OUString & Name,
464 const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs)
override;
475 virtual void lcl_startFastElement(
Token_t Element,
const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs)
override;
479 virtual css::uno::Reference< css::xml::sax::XFastContextHandler >
lcl_createFastChildContext (
Token_t Element,
const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs)
override;
495 css::uno::Reference<css::xml::sax::XFastContextHandler>
const & xContext,
500 virtual void SAL_CALL
startUnknownElement(
const OUString & Namespace,
const OUString &
Name,
const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs)
override;
504 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL
createUnknownChildContext (
const OUString & Namespace,
const OUString &
Name,
505 const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs)
override;
507 virtual void attributes(
const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs)
override;
518 virtual std::string
getType()
const override;
521 virtual void lcl_startFastElement(
Token_t Element,
const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs)
override;
525 virtual css::uno::Reference< css::xml::sax::XFastContextHandler >
lcl_createFastChildContext(
Token_t Element,
const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs)
override;
530 virtual Id getId()
const override;
568 virtual std::string
getType()
const override = 0;
577 virtual void lcl_startFastElement(
Token_t Element,
const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs)
override;
582 const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs)
override;
597 virtual std::string
getType()
const override {
return "Math"; }
599 virtual void process()
override;
619 virtual std::string
getType()
const override {
return "CommentEx"; }
A class that reads individual w15:commentEx elements from commentsExtended stream [MS-DOCX].
void att_paraId(const OOXMLValue::Pointer_t &pValue)
virtual std::string getType() const override
Returns a string describing the type of the context.
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)
virtual std::string getType() const override=0
Return the type of the class, as written in model.xml .
OOXMLFastContextHandlerMath(OOXMLFastContextHandler *pContext)
virtual void process() override
Called when the tokens for the element, its content and sub-elements have been linearized and should ...
virtual std::string getType() const override
Return the type of the class, as written in model.xml .
void handleOutOfOrderBreak()
OOXMLPropertySet::Pointer_t mpPropertySet
the properties
virtual ResourceEnum_t getResource() const override
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 ResourceEnum_t getResource() const 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 std::string getType() const override
Returns a string describing the type of the context.
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 ResourceEnum_t getResource() const override
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 ResourceEnum_t getResource() const override
virtual ~OOXMLFastContextHandlerTable() override
OOXMLFastContextHandlerTable(OOXMLFastContextHandler *pContext)
virtual std::string getType() const override
Returns a string describing the type of the context.
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 std::string getType() const override
Returns a string describing the type of the context.
virtual std::string getType() const override
Returns a string describing the type of the context.
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 std::string getType() const override
Returns a string describing the type of the context.
virtual ~OOXMLFastContextHandlerTextTable() override
virtual ~OOXMLFastContextHandlerValue() override
virtual std::string getType() const override
Returns a string describing the type of the context.
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)
virtual std::string getType() const override
Returns a string describing the type of the context.
bool mbForwardEventsSaved
OOXMLFastContextHandlerXNote(OOXMLFastContextHandler *pContext)
virtual ~OOXMLFastContextHandlerXNote() override
virtual ResourceEnum_t getResource() const 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)
css::uno::Reference< css::uno::XComponentContext > m_xContext
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()
tools::SvRef< OOXMLFastContextHandler > Pointer_t
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 operator=(OOXMLFastContextHandler const &)=delete
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
const OOXMLParserState::Pointer_t & getParserState() const
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
OOXMLFastContextHandler(OOXMLFastContextHandler const &)=default
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()
void setGridAfter(const OOXMLValue::Pointer_t &pGridAfter)
bool IsPreserveSpace() const
virtual void setId(Id nId)