LibreOffice Module writerfilter (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
writerfilter::ooxml::OOXMLFastContextHandlerWrapper Class Reference

OOXMLFastContextHandlerWrapper wraps an OOXMLFastContextHandler. More...

#include <OOXMLFastContextHandler.hxx>

Inheritance diagram for writerfilter::ooxml::OOXMLFastContextHandlerWrapper:
[legend]
Collaboration diagram for writerfilter::ooxml::OOXMLFastContextHandlerWrapper:
[legend]

Public Member Functions

 OOXMLFastContextHandlerWrapper (OOXMLFastContextHandler *pParent, css::uno::Reference< css::xml::sax::XFastContextHandler > const &xContext, rtl::Reference< OOXMLFastContextHandlerShape > const &xShapeHandler)
 
virtual ~OOXMLFastContextHandlerWrapper () override
 
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
 
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 attributes (const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual ResourceEnum_t getResource () const override
 
void addNamespace (Id nId)
 
void addToken (Token_t Element)
 
virtual void newProperty (Id nId, const OOXMLValue::Pointer_t &pVal) override
 
virtual void setPropertySet (const OOXMLPropertySet::Pointer_t &pPropertySet) override
 
virtual OOXMLPropertySet::Pointer_t getPropertySet () const override
 
virtual std::string getType () const override
 Returns a string describing the type of the context. More...
 
- Public Member Functions inherited from writerfilter::ooxml::OOXMLFastContextHandler
 OOXMLFastContextHandler (css::uno::Reference< css::uno::XComponentContext > const &context)
 
 OOXMLFastContextHandler (OOXMLFastContextHandler *pContext)
 
 OOXMLFastContextHandler (OOXMLFastContextHandler const &)=default
 
virtual ~OOXMLFastContextHandler () override
 
virtual void SAL_CALL startFastElement (sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override final
 
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 endFastElement (sal_Int32 Element) override
 
virtual void SAL_CALL endUnknownElement (const OUString &Namespace, const OUString &Name) override
 
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext (sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) 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 SAL_CALL characters (const OUString &aChars) override
 
void setStream (Stream *pStream)
 
virtual OOXMLValue::Pointer_t getValue () const
 Return value of this context(element). More...
 
virtual std::string getType () const
 Returns a string describing the type of the context. More...
 
virtual ResourceEnum_t getResource () const
 
virtual void attributes (const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs)
 
virtual void newProperty (Id aId, const OOXMLValue::Pointer_t &pVal)
 
virtual void setPropertySet (const OOXMLPropertySet::Pointer_t &pPropertySet)
 
virtual OOXMLPropertySet::Pointer_t getPropertySet () const
 
virtual void setToken (Token_t nToken)
 
virtual Token_t getToken () const
 
void resolveFootnote (const sal_Int32 nId)
 
void resolveEndnote (const sal_Int32 nId)
 
void resolveComment (const sal_Int32 nId)
 
void resolvePicture (const OUString &rId)
 
void resolveHeader (const sal_Int32 type, const OUString &rId)
 
void resolveFooter (const sal_Int32 type, const OUString &rId)
 
void resolveData (const OUString &rId)
 
OUString getTargetForId (const OUString &rId)
 
void setDocument (OOXMLDocumentImpl *pDocument)
 
OOXMLDocumentImplgetDocument ()
 
void setXNoteId (const OOXMLValue::Pointer_t &pValue)
 
void setXNoteId (const sal_Int32 nId)
 
sal_Int32 getXNoteId () const
 
void setForwardEvents (bool bForwardEvents)
 
bool isForwardEvents () const
 
virtual void setId (Id nId)
 
virtual Id getId () const
 
void setDefine (Id nDefine)
 
Id getDefine () const
 
const OOXMLParserState::Pointer_tgetParserState () const
 
void sendTableDepth () const
 
void setHandle ()
 
void startSectionGroup ()
 
void setLastParagraphInSection ()
 
void setLastSectionGroup ()
 
void endSectionGroup ()
 
void startParagraphGroup ()
 
void endParagraphGroup ()
 
void startCharacterGroup ()
 
void endCharacterGroup ()
 
virtual void pushBiDiEmbedLevel ()
 
virtual void popBiDiEmbedLevel ()
 
void startSdt ()
 
void endSdt ()
 
void startSdtRun ()
 
void endSdtRun ()
 
void startField ()
 
void fieldSeparator ()
 
void endField ()
 
void lockField ()
 
void ftnednref ()
 
void ftnedncont ()
 
void ftnednsep ()
 
void pgNum ()
 
void tab ()
 
void symbol ()
 
void cr ()
 
void noBreakHyphen ()
 
void softHyphen ()
 
void handleLastParagraphInSection ()
 
void endOfParagraph ()
 
void text (const OUString &sText)
 
void positionOffset (const OUString &sText)
 
void alignH (const OUString &sText)
 
void alignV (const OUString &sText)
 
void positivePercentage (const OUString &rText)
 
void startGlossaryEntry ()
 
void endGlossaryEntry ()
 
void startTxbxContent ()
 
void endTxbxContent ()
 
void propagateCharacterProperties ()
 
void propagateTableProperties ()
 
void propagateRowProperties ()
 
void propagateCellProperties ()
 
void sendPropertiesWithId (Id nId)
 
void sendPropertiesToParent ()
 
void sendCellProperties ()
 
void sendRowProperties ()
 
void sendTableProperties ()
 
void clearTableProps ()
 
void clearProps ()
 
virtual void setDefaultBooleanValue ()
 
virtual void setDefaultIntegerValue ()
 
virtual void setDefaultHexValue ()
 
virtual void setDefaultStringValue ()
 
void sendPropertyToParent ()
 
OOXMLFastContextHandlergetParent () const
 
void setGridAfter (const OOXMLValue::Pointer_t &pGridAfter)
 

Protected Member Functions

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
 
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_characters (const OUString &aChars) override
 
virtual void setId (Id nId) override
 
virtual Id getId () const override
 
virtual void setToken (Token_t nToken) override
 
virtual Token_t getToken () const override
 
- Protected Member Functions inherited from writerfilter::ooxml::OOXMLFastContextHandler
virtual void lcl_startFastElement (Token_t Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs)
 
virtual void lcl_endFastElement (Token_t Element)
 
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > lcl_createFastChildContext (Token_t Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs)
 
virtual void lcl_characters (const OUString &aChars)
 
void startAction ()
 
void endAction ()
 

Private Member Functions

OOXMLFastContextHandlergetFastContextHandler () const
 

Private Attributes

css::uno::Reference< css::xml::sax::XFastContextHandler > mxWrappedContext
 
rtl::Reference< OOXMLFastContextHandlerShapemxShapeHandler
 
std::set< IdmMyNamespaces
 
std::set< Token_tmMyTokens
 
OOXMLPropertySet::Pointer_t mpPropertySet
 

Additional Inherited Members

- Public Types inherited from writerfilter::ooxml::OOXMLFastContextHandler
enum  ResourceEnum_t {
  UNKNOWN ,
  STREAM ,
  PROPERTIES ,
  TABLE ,
  SHAPE
}
 
typedef tools::SvRef< OOXMLFastContextHandlerPointer_t
 
- Static Public Member Functions inherited from writerfilter::ooxml::OOXMLFastContextHandler
static void ignore ()
 
- Protected Types inherited from writerfilter::ooxml::OOXMLFastContextHandler
enum  eMathParaJc {
  INLINE ,
  CENTER ,
  LEFT ,
  RIGHT
}
 
- Protected Attributes inherited from writerfilter::ooxml::OOXMLFastContextHandler
OOXMLFastContextHandlermpParent
 
Id mId
 
Id mnDefine
 
Token_t mnToken
 
sal_Int8 mnMathJcVal
 
bool mbIsMathPara
 
StreammpStream
 
OOXMLParserState::Pointer_t mpParserState
 
unsigned int mnTableDepth
 
bool m_inPositionV
 
bool mbAllowInCell
 
bool mbIsVMLfound
 
OOXMLValue::Pointer_t mpGridAfter
 

Detailed Description

OOXMLFastContextHandlerWrapper wraps an OOXMLFastContextHandler.

The method calls for the interface css::xml::sax::XFastContextHandler are forwarded to the wrapped OOXMLFastContextHandler.

Definition at line 491 of file OOXMLFastContextHandler.hxx.

Constructor & Destructor Documentation

◆ OOXMLFastContextHandlerWrapper()

writerfilter::ooxml::OOXMLFastContextHandlerWrapper::OOXMLFastContextHandlerWrapper ( OOXMLFastContextHandler pParent,
css::uno::Reference< css::xml::sax::XFastContextHandler > const &  xContext,
rtl::Reference< OOXMLFastContextHandlerShape > const &  xShapeHandler 
)

◆ ~OOXMLFastContextHandlerWrapper()

writerfilter::ooxml::OOXMLFastContextHandlerWrapper::~OOXMLFastContextHandlerWrapper ( )
overridevirtual

Definition at line 1987 of file OOXMLFastContextHandler.cxx.

Member Function Documentation

◆ addNamespace()

void writerfilter::ooxml::OOXMLFastContextHandlerWrapper::addNamespace ( Id  nId)

Definition at line 2042 of file OOXMLFastContextHandler.cxx.

References mMyNamespaces, and nId.

◆ addToken()

void writerfilter::ooxml::OOXMLFastContextHandlerWrapper::addToken ( Token_t  Element)

Definition at line 2047 of file OOXMLFastContextHandler.cxx.

References mMyTokens.

◆ attributes()

void writerfilter::ooxml::OOXMLFastContextHandlerWrapper::attributes ( const css::uno::Reference< css::xml::sax::XFastAttributeList > &  Attribs)
overridevirtual
Exceptions
css::uno::RuntimeException
css::xml::sax::SAXException

Reimplemented from writerfilter::ooxml::OOXMLFastContextHandler.

Definition at line 2025 of file OOXMLFastContextHandler.cxx.

References writerfilter::ooxml::OOXMLFastContextHandler::attributes(), getFastContextHandler(), and mxWrappedContext.

◆ createUnknownChildContext()

uno::Reference< xml::sax::XFastContextHandler > SAL_CALL writerfilter::ooxml::OOXMLFastContextHandlerWrapper::createUnknownChildContext ( const OUString &  Namespace,
const OUString &  Name,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  Attribs 
)
overridevirtual

Reimplemented from writerfilter::ooxml::OOXMLFastContextHandler.

Definition at line 2009 of file OOXMLFastContextHandler.cxx.

References mxWrappedContext, and Name.

◆ endUnknownElement()

void SAL_CALL writerfilter::ooxml::OOXMLFastContextHandlerWrapper::endUnknownElement ( const OUString &  Namespace,
const OUString &  Name 
)
overridevirtual

Reimplemented from writerfilter::ooxml::OOXMLFastContextHandler.

Definition at line 2000 of file OOXMLFastContextHandler.cxx.

References mxWrappedContext, and Name.

◆ getFastContextHandler()

OOXMLFastContextHandler * writerfilter::ooxml::OOXMLFastContextHandlerWrapper::getFastContextHandler ( ) const
private

◆ getId()

Id writerfilter::ooxml::OOXMLFastContextHandlerWrapper::getId ( ) const
overrideprotectedvirtual

◆ getPropertySet()

OOXMLPropertySet::Pointer_t writerfilter::ooxml::OOXMLFastContextHandlerWrapper::getPropertySet ( ) const
overridevirtual

◆ getResource()

OOXMLFastContextHandler::ResourceEnum_t writerfilter::ooxml::OOXMLFastContextHandlerWrapper::getResource ( ) const
overridevirtual

◆ getToken()

Token_t writerfilter::ooxml::OOXMLFastContextHandlerWrapper::getToken ( ) const
overrideprotectedvirtual

◆ getType()

std::string writerfilter::ooxml::OOXMLFastContextHandlerWrapper::getType ( ) const
overridevirtual

Returns a string describing the type of the context.

This is the name of the define normally.

Returns
type string

Reimplemented from writerfilter::ooxml::OOXMLFastContextHandler.

Definition at line 2182 of file OOXMLFastContextHandler.cxx.

References getFastContextHandler(), writerfilter::ooxml::OOXMLFastContextHandler::getType(), and mxWrappedContext.

◆ lcl_characters()

void writerfilter::ooxml::OOXMLFastContextHandlerWrapper::lcl_characters ( const OUString &  aChars)
overrideprotectedvirtual
Exceptions
css::uno::RuntimeException
css::xml::sax::SAXException

Reimplemented from writerfilter::ooxml::OOXMLFastContextHandler.

Definition at line 2127 of file OOXMLFastContextHandler.cxx.

References mxWrappedContext.

◆ lcl_createFastChildContext()

uno::Reference< xml::sax::XFastContextHandler > writerfilter::ooxml::OOXMLFastContextHandlerWrapper::lcl_createFastChildContext ( Token_t  Element,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  Attribs 
)
overrideprotectedvirtual

◆ lcl_endFastElement()

void writerfilter::ooxml::OOXMLFastContextHandlerWrapper::lcl_endFastElement ( Token_t  Element)
overrideprotectedvirtual
Exceptions
css::uno::RuntimeException
css::xml::sax::SAXException

Reimplemented from writerfilter::ooxml::OOXMLFastContextHandler.

Definition at line 2067 of file OOXMLFastContextHandler.cxx.

References writerfilter::Stream::endTextBoxContent(), writerfilter::ooxml::OOXMLFastContextHandler::mpStream, mxShapeHandler, and mxWrappedContext.

◆ lcl_startFastElement()

void writerfilter::ooxml::OOXMLFastContextHandlerWrapper::lcl_startFastElement ( Token_t  Element,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  Attribs 
)
overrideprotectedvirtual
Exceptions
css::uno::RuntimeException
css::xml::sax::SAXException

Reimplemented from writerfilter::ooxml::OOXMLFastContextHandler.

Definition at line 2052 of file OOXMLFastContextHandler.cxx.

References writerfilter::ooxml::OOXMLFastContextHandler::mpStream, mxShapeHandler, mxWrappedContext, and writerfilter::Stream::startTextBoxContent().

◆ newProperty()

void writerfilter::ooxml::OOXMLFastContextHandlerWrapper::newProperty ( Id  nId,
const OOXMLValue::Pointer_t pVal 
)
overridevirtual

◆ setId()

void writerfilter::ooxml::OOXMLFastContextHandlerWrapper::setId ( Id  nId)
overrideprotectedvirtual

◆ setPropertySet()

void writerfilter::ooxml::OOXMLFastContextHandlerWrapper::setPropertySet ( const OOXMLPropertySet::Pointer_t pPropertySet)
overridevirtual

◆ setToken()

void writerfilter::ooxml::OOXMLFastContextHandlerWrapper::setToken ( Token_t  nToken)
overrideprotectedvirtual

◆ startUnknownElement()

void SAL_CALL writerfilter::ooxml::OOXMLFastContextHandlerWrapper::startUnknownElement ( const OUString &  Namespace,
const OUString &  Name,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  Attribs 
)
overridevirtual

Reimplemented from writerfilter::ooxml::OOXMLFastContextHandler.

Definition at line 1991 of file OOXMLFastContextHandler.cxx.

References mxWrappedContext, and Name.

Member Data Documentation

◆ mMyNamespaces

std::set<Id> writerfilter::ooxml::OOXMLFastContextHandlerWrapper::mMyNamespaces
private

Definition at line 538 of file OOXMLFastContextHandler.hxx.

Referenced by addNamespace(), and lcl_createFastChildContext().

◆ mMyTokens

std::set<Token_t> writerfilter::ooxml::OOXMLFastContextHandlerWrapper::mMyTokens
private

Definition at line 539 of file OOXMLFastContextHandler.hxx.

Referenced by addToken(), and lcl_createFastChildContext().

◆ mpPropertySet

OOXMLPropertySet::Pointer_t writerfilter::ooxml::OOXMLFastContextHandlerWrapper::mpPropertySet
private

Definition at line 540 of file OOXMLFastContextHandler.hxx.

Referenced by getPropertySet(), and setPropertySet().

◆ mxShapeHandler

rtl::Reference<OOXMLFastContextHandlerShape> writerfilter::ooxml::OOXMLFastContextHandlerWrapper::mxShapeHandler
private

◆ mxWrappedContext

css::uno::Reference<css::xml::sax::XFastContextHandler> writerfilter::ooxml::OOXMLFastContextHandlerWrapper::mxWrappedContext
private

The documentation for this class was generated from the following files: