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 (const 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

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

Definition at line 29 of file contexthandler.cxx.

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

Definition at line 40 of file contexthandler.cxx.

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

Helper constructor for the FragmentHandler.

Definition at line 35 of file contexthandler.cxx.

Member Function Documentation

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

Reimplemented in oox::core::ContextHandler2.

Definition at line 113 of file contexthandler.cxx.

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

Definition at line 103 of file contexthandler.cxx.

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

Reimplemented in oox::core::ContextHandler2.

Definition at line 119 of file contexthandler.cxx.

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 108 of file contexthandler.cxx.

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

Definition at line 95 of file contexthandler.cxx.

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

Reimplemented in oox::core::ContextHandler2.

Definition at line 128 of file contexthandler.cxx.

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

Definition at line 99 of file contexthandler.cxx.

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

Returns the filter instance.

Definition at line 44 of file contexthandler.cxx.

References mxBaseData.

Referenced by oox::drawingml::BlipContext::BlipContext(), oox::drawingml::chart::DoubleSequenceContext::getNumberFormatter(), oox::drawingml::HyperLinkContext::HyperLinkContext(), oox::drawingml::chart::DataLabelContext::onCreateContext(), oox::drawingml::chart::View3DContext::onCreateContext(), oox::drawingml::GraphicShapeContext::onCreateContext(), oox::ole::AxControlPropertyContext::onCreateContext(), oox::drawingml::chart::DataLabelsContext::onCreateContext(), oox::drawingml::chart::AxisContextBase::onCreateContext(), oox::drawingml::chart::WallFloorContext::onCreateContext(), oox::drawingml::chart::AreaTypeGroupContext::onCreateContext(), oox::drawingml::OleObjectGraphicDataContext::onCreateContext(), oox::drawingml::chart::CatAxisContext::onCreateContext(), oox::drawingml::chart::BarTypeGroupContext::onCreateContext(), oox::drawingml::chart::PictureOptionsContext::onCreateContext(), oox::drawingml::chart::DateAxisContext::onCreateContext(), oox::drawingml::chart::BubbleTypeGroupContext::onCreateContext(), oox::drawingml::DiagramGraphicDataContext::onCreateContext(), oox::drawingml::chart::PlotAreaContext::onCreateContext(), oox::drawingml::chart::ErrorBarContext::onCreateContext(), oox::drawingml::ArtisticEffectContext::onCreateContext(), oox::drawingml::chart::LineTypeGroupContext::onCreateContext(), oox::drawingml::chart::PieTypeGroupContext::onCreateContext(), oox::drawingml::chart::TrendlineContext::onCreateContext(), oox::drawingml::chart::RadarTypeGroupContext::onCreateContext(), oox::drawingml::chart::DataPointContext::onCreateContext(), oox::drawingml::chart::ScatterTypeGroupContext::onCreateContext(), oox::drawingml::chart::SurfaceTypeGroupContext::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::clrSchemeColorContext::~clrSchemeColorContext(), and oox::drawingml::OleObjectGraphicDataContext::~OleObjectGraphicDataContext().

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

Returns the full path of the current fragment.

Definition at line 54 of file contexthandler.cxx.

References mxBaseData.

Referenced by oox::shape::ShapeContextHandler::getDrawingShapeContext().

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 69 of file contexthandler.cxx.

References mxBaseData.

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

Definition at line 74 of file contexthandler.cxx.

References mxBaseData.

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

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

Definition at line 59 of file contexthandler.cxx.

References mxBaseData.

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

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

Definition at line 80 of file contexthandler.cxx.

References mxBaseData.

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

Definition at line 87 of file contexthandler.cxx.

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

Reimplemented in oox::core::ContextHandler2.

Definition at line 124 of file contexthandler.cxx.

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

Definition at line 91 of file contexthandler.cxx.

Member Data Documentation

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

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