LibreOffice Module oox (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
oox::core::ContextHandler Class Reference

#include <contexthandler.hxx>

Inheritance diagram for oox::core::ContextHandler:
[legend]
Collaboration diagram for oox::core::ContextHandler:
[legend]

Public Member Functions

 ContextHandler (const ContextHandler &rParent)
 
virtual ~ContextHandler () override
 
XmlFilterBasegetFilter () const
 Returns the filter instance. More...
 
const RelationsgetRelations () const
 Returns the relations of the current fragment. More...
 
const OUString & getFragmentPath () const
 Returns the full path of the current fragment. More...
 
OUString getFragmentPathFromRelation (const Relation &rRelation) const
 Returns the full fragment path for the target of the passed relation. More...
 
OUString getFragmentPathFromRelId (const OUString &rRelId) const
 Returns the full fragment path for the passed relation identifier. More...
 
OUString getFragmentPathFromFirstType (std::u16string_view rType) const
 Returns the full fragment path for the first relation of the passed type. More...
 
OUString getFragmentPathFromFirstTypeFromOfficeDoc (std::u16string_view rType) const
 
virtual void SAL_CALL startFastElement (::sal_Int32 Element, 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 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
 
virtual ContextHandlerRef createRecordContext (sal_Int32 nRecId, SequenceInputStream &rStrm)
 
virtual void startRecord (sal_Int32 nRecId, SequenceInputStream &rStrm)
 
virtual void endRecord (sal_Int32 nRecId)
 

Protected Member Functions

 ContextHandler (FragmentBaseDataRef rxBaseData)
 Helper constructor for the FragmentHandler. More...
 
void implSetLocator (const css::uno::Reference< css::xml::sax::XLocator > &rxLocator)
 

Private Member Functions

ContextHandleroperator= (const ContextHandler &)=delete
 

Private Attributes

FragmentBaseDataRef mxBaseData
 Base data of the fragment. More...
 

Detailed Description

Definition at line 57 of file contexthandler.hxx.

Constructor & Destructor Documentation

◆ ContextHandler() [1/2]

oox::core::ContextHandler::ContextHandler ( const ContextHandler rParent)
explicit

Definition at line 30 of file contexthandler.cxx.

◆ ~ContextHandler()

oox::core::ContextHandler::~ContextHandler ( )
overridevirtual

Definition at line 41 of file contexthandler.cxx.

◆ ContextHandler() [2/2]

oox::core::ContextHandler::ContextHandler ( FragmentBaseDataRef  rxBaseData)
explicitprotected

Helper constructor for the FragmentHandler.

Definition at line 36 of file contexthandler.cxx.

Member Function Documentation

◆ characters()

void oox::core::ContextHandler::characters ( const OUString &  aChars)
overridevirtual

Reimplemented in oox::core::ContextHandler2.

Definition at line 114 of file contexthandler.cxx.

◆ createFastChildContext()

Reference< XFastContextHandler > oox::core::ContextHandler::createFastChildContext ( ::sal_Int32  Element,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  Attribs 
)
overridevirtual

Definition at line 104 of file contexthandler.cxx.

◆ createRecordContext()

ContextHandlerRef oox::core::ContextHandler::createRecordContext ( sal_Int32  nRecId,
SequenceInputStream rStrm 
)
virtual

Reimplemented in oox::core::ContextHandler2.

Definition at line 120 of file contexthandler.cxx.

◆ createUnknownChildContext()

Reference< XFastContextHandler > oox::core::ContextHandler::createUnknownChildContext ( const OUString &  Namespace,
const OUString &  Name,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  Attribs 
)
overridevirtual

Definition at line 109 of file contexthandler.cxx.

◆ endFastElement()

void oox::core::ContextHandler::endFastElement ( ::sal_Int32  Element)
overridevirtual

Definition at line 96 of file contexthandler.cxx.

◆ endRecord()

void oox::core::ContextHandler::endRecord ( sal_Int32  nRecId)
virtual

Reimplemented in oox::core::ContextHandler2.

Definition at line 129 of file contexthandler.cxx.

◆ endUnknownElement()

void oox::core::ContextHandler::endUnknownElement ( const OUString &  Namespace,
const OUString &  Name 
)
overridevirtual

Definition at line 100 of file contexthandler.cxx.

◆ getFilter()

XmlFilterBase & oox::core::ContextHandler::getFilter ( ) const

Returns the filter instance.

Definition at line 45 of file contexthandler.cxx.

References mxBaseData.

Referenced by oox::drawingml::BlipContext::BlipContext(), oox::drawingml::chart::DoubleSequenceContext::getNumberFormatter(), oox::drawingml::HyperLinkContext::HyperLinkContext(), oox::drawingml::GraphicShapeContext::onCreateContext(), oox::drawingml::OleObjectGraphicDataContext::onCreateContext(), oox::drawingml::DiagramGraphicDataContext::onCreateContext(), oox::drawingml::ArtisticEffectContext::onCreateContext(), oox::ole::AxControlPropertyContext::onCreateContext(), oox::drawingml::chart::AxisContextBase::onCreateContext(), oox::drawingml::chart::CatAxisContext::onCreateContext(), oox::drawingml::chart::DateAxisContext::onCreateContext(), oox::drawingml::chart::View3DContext::onCreateContext(), oox::drawingml::chart::WallFloorContext::onCreateContext(), oox::drawingml::chart::PlotAreaContext::onCreateContext(), oox::drawingml::chart::DataLabelContext::onCreateContext(), oox::drawingml::chart::DataLabelsContext::onCreateContext(), oox::drawingml::chart::PictureOptionsContext::onCreateContext(), oox::drawingml::chart::ErrorBarContext::onCreateContext(), oox::drawingml::chart::TrendlineContext::onCreateContext(), oox::drawingml::chart::DataPointContext::onCreateContext(), oox::drawingml::chart::AreaSeriesContext::onCreateContext(), oox::drawingml::chart::BarSeriesContext::onCreateContext(), oox::drawingml::chart::BubbleSeriesContext::onCreateContext(), oox::drawingml::chart::LineSeriesContext::onCreateContext(), oox::drawingml::chart::PieSeriesContext::onCreateContext(), oox::drawingml::chart::RadarSeriesContext::onCreateContext(), oox::drawingml::chart::ScatterSeriesContext::onCreateContext(), oox::drawingml::chart::AreaTypeGroupContext::onCreateContext(), oox::drawingml::chart::BarTypeGroupContext::onCreateContext(), oox::drawingml::chart::BubbleTypeGroupContext::onCreateContext(), oox::drawingml::chart::LineTypeGroupContext::onCreateContext(), oox::drawingml::chart::PieTypeGroupContext::onCreateContext(), oox::drawingml::chart::RadarTypeGroupContext::onCreateContext(), oox::drawingml::chart::ScatterTypeGroupContext::onCreateContext(), oox::drawingml::chart::SurfaceTypeGroupContext::onCreateContext(), oox::shape::WpsContext::onEndElement(), oox::drawingml::clrSchemeColorContext::~clrSchemeColorContext(), and oox::drawingml::OleObjectGraphicDataContext::~OleObjectGraphicDataContext().

◆ getFragmentPath()

const OUString & oox::core::ContextHandler::getFragmentPath ( ) const

Returns the full path of the current fragment.

Definition at line 55 of file contexthandler.cxx.

References mxBaseData.

◆ getFragmentPathFromFirstType()

OUString oox::core::ContextHandler::getFragmentPathFromFirstType ( std::u16string_view  rType) const

Returns the full fragment path for the first relation of the passed type.

Definition at line 70 of file contexthandler.cxx.

References mxBaseData.

◆ getFragmentPathFromFirstTypeFromOfficeDoc()

OUString oox::core::ContextHandler::getFragmentPathFromFirstTypeFromOfficeDoc ( std::u16string_view  rType) const

Definition at line 75 of file contexthandler.cxx.

References mxBaseData.

◆ getFragmentPathFromRelation()

OUString oox::core::ContextHandler::getFragmentPathFromRelation ( const Relation rRelation) const

Returns the full fragment path for the target of the passed relation.

Definition at line 60 of file contexthandler.cxx.

References mxBaseData.

Referenced by oox::drawingml::OleObjectGraphicDataContext::onCreateContext().

◆ getFragmentPathFromRelId()

OUString oox::core::ContextHandler::getFragmentPathFromRelId ( const OUString &  rRelId) const

◆ getRelations()

const Relations & oox::core::ContextHandler::getRelations ( ) const

◆ implSetLocator()

void oox::core::ContextHandler::implSetLocator ( const css::uno::Reference< css::xml::sax::XLocator > &  rxLocator)
protected

Definition at line 81 of file contexthandler.cxx.

References mxBaseData.

◆ operator=()

ContextHandler & oox::core::ContextHandler::operator= ( const ContextHandler )
privatedelete

◆ startFastElement()

void oox::core::ContextHandler::startFastElement ( ::sal_Int32  Element,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  Attribs 
)
overridevirtual

Definition at line 88 of file contexthandler.cxx.

◆ startRecord()

void oox::core::ContextHandler::startRecord ( sal_Int32  nRecId,
SequenceInputStream rStrm 
)
virtual

Reimplemented in oox::core::ContextHandler2.

Definition at line 125 of file contexthandler.cxx.

◆ startUnknownElement()

void oox::core::ContextHandler::startUnknownElement ( const OUString &  Namespace,
const OUString &  Name,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  Attribs 
)
overridevirtual

Definition at line 92 of file contexthandler.cxx.

Member Data Documentation

◆ mxBaseData

FragmentBaseDataRef oox::core::ContextHandler::mxBaseData
private

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