LibreOffice Module oox (master) 1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
oox::shape::ShapeContextHandler Class Referencefinal

#include <ShapeContextHandler.hxx>

Inheritance diagram for oox::shape::ShapeContextHandler:
[legend]
Collaboration diagram for oox::shape::ShapeContextHandler:
[legend]

Public Member Functions

 ShapeContextHandler (rtl::Reference< ShapeFilterBase > xFilterBase)
 
virtual ~ShapeContextHandler () override
 
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
 
css::uno::Reference< css::drawing::XShape > getShape ()
 
void setDrawPage (const css::uno::Reference< css::drawing::XDrawPage > &the_value)
 
void setModel (const css::uno::Reference< css::frame::XModel > &the_value)
 
void setRelationFragmentPath (const OUString &the_value)
 
sal_Int32 getStartToken () const
 
void popStartToken ()
 
void pushStartToken (sal_Int32 _starttoken)
 
void setPosition (const css::awt::Point &rPosition)
 
void setSize (const css::awt::Size &rSize)
 
const bool & getFullWPGSupport ()
 
void setFullWPGSupport (bool bUse)
 
bool isWordProcessingGroupShape () const
 
void setDocumentProperties (const css::uno::Reference< css::document::XDocumentProperties > &xDocProps)
 
void setMediaDescriptor (const css::uno::Sequence< css::beans::PropertyValue > &rMediaDescriptor)
 
void setGraphicMapper (css::uno::Reference< css::graphic::XGraphicMapper > const &rGraphicMapper)
 
void setTheme (const oox::drawingml::ThemePtr &pTheme)
 
const oox::drawingml::ThemePtrgetTheme () const
 

Private Types

typedef rtl::Reference< drawingml::GraphicShapeContextGraphicShapeContextPtr
 

Private Member Functions

 ShapeContextHandler (ShapeContextHandler const &)=delete
 
void operator= (ShapeContextHandler const &)=delete
 
css::uno::Reference< XFastContextHandler > const & getGraphicShapeContext (::sal_Int32 Element)
 
css::uno::Reference< XFastContextHandler > getChartShapeContext (::sal_Int32 Element)
 
css::uno::Reference< XFastContextHandler > getDrawingShapeContext ()
 
css::uno::Reference< XFastContextHandler > getDiagramShapeContext ()
 
css::uno::Reference< XFastContextHandler > getLockedCanvasContext (sal_Int32 nElement)
 
css::uno::Reference< XFastContextHandler > getWpsContext (sal_Int32 nStartElement, sal_Int32 nElement)
 
css::uno::Reference< XFastContextHandler > getWpgContext (sal_Int32 nElement)
 
css::uno::Reference< XFastContextHandler > getContextHandler (sal_Int32 nElement=0)
 
void applyFontRefColor (const oox::drawingml::ShapePtr &pShape, const oox::drawingml::Color &rFontRefColor)
 

Private Attributes

std::stack< sal_uInt32 > mnStartTokenStack
 
css::awt::Point maPosition
 
css::awt::Size maSize
 
bool m_bFullWPGSUpport
 
drawingml::ShapePtr mpShape
 
std::shared_ptr< vml::DrawingmpDrawing
 
rtl::Reference< vml::DrawingFragmentmxDrawingFragmentHandler
 
css::uno::Reference< XFastContextHandler > mxGraphicShapeContext
 
rtl::Reference< drawingml::DiagramGraphicDataContextmxDiagramShapeContext
 
rtl::Reference< LockedCanvasContextmxLockedCanvasContext
 
rtl::Reference< WpsContextmxWpsContext
 
css::uno::Reference< css::drawing::XShape > mxSavedShape
 
rtl::Reference< WpgContextmxWpgContext
 
rtl::Reference< drawingml::ChartGraphicDataContextmxChartShapeContext
 
css::uno::Reference< css::document::XDocumentProperties > mxDocumentProperties
 
css::uno::Sequence< css::beans::PropertyValue > maMediaDescriptor
 
::rtl::Reference< ShapeFilterBasemxShapeFilterBase
 
drawingml::ThemePtr mpThemePtr
 
css::uno::Reference< css::drawing::XDrawPage > mxDrawPage
 
OUString msRelationFragmentPath
 

Detailed Description

Definition at line 55 of file ShapeContextHandler.hxx.

Member Typedef Documentation

◆ GraphicShapeContextPtr

Definition at line 136 of file ShapeContextHandler.hxx.

Constructor & Destructor Documentation

◆ ShapeContextHandler() [1/2]

oox::shape::ShapeContextHandler::ShapeContextHandler ( rtl::Reference< ShapeFilterBase xFilterBase)
explicit

Definition at line 47 of file ShapeContextHandler.cxx.

◆ ~ShapeContextHandler()

oox::shape::ShapeContextHandler::~ShapeContextHandler ( )
overridevirtual

Definition at line 54 of file ShapeContextHandler.cxx.

◆ ShapeContextHandler() [2/2]

oox::shape::ShapeContextHandler::ShapeContextHandler ( ShapeContextHandler const &  )
privatedelete

Member Function Documentation

◆ applyFontRefColor()

void oox::shape::ShapeContextHandler::applyFontRefColor ( const oox::drawingml::ShapePtr pShape,
const oox::drawingml::Color rFontRefColor 
)
private

Definition at line 588 of file ShapeContextHandler.cxx.

References applyFontRefColor().

Referenced by applyFontRefColor(), and getShape().

◆ characters()

void SAL_CALL oox::shape::ShapeContextHandler::characters ( const OUString &  aChars)
overridevirtual

Definition at line 387 of file ShapeContextHandler.cxx.

References getContextHandler().

◆ createFastChildContext()

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

Definition at line 358 of file ShapeContextHandler.cxx.

References getContextHandler().

Referenced by startFastElement().

◆ createUnknownChildContext()

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

Definition at line 373 of file ShapeContextHandler.cxx.

References getContextHandler(), and Name.

◆ endFastElement()

void SAL_CALL oox::shape::ShapeContextHandler::endFastElement ( ::sal_Int32  Element)
overridevirtual

Definition at line 322 of file ShapeContextHandler.cxx.

References getContextHandler(), mxSavedShape, and mxWpsContext.

◆ endUnknownElement()

void SAL_CALL oox::shape::ShapeContextHandler::endUnknownElement ( const OUString &  Namespace,
const OUString &  Name 
)
overridevirtual

Definition at line 347 of file ShapeContextHandler.cxx.

References getContextHandler(), and Name.

◆ getChartShapeContext()

uno::Reference< xml::sax::XFastContextHandler > oox::shape::ShapeContextHandler::getChartShapeContext ( ::sal_Int32  Element)
private

◆ getContextHandler()

uno::Reference< xml::sax::XFastContextHandler > oox::shape::ShapeContextHandler::getContextHandler ( sal_Int32  nElement = 0)
private

◆ getDiagramShapeContext()

uno::Reference< xml::sax::XFastContextHandler > oox::shape::ShapeContextHandler::getDiagramShapeContext ( )
private

◆ getDrawingShapeContext()

uno::Reference< xml::sax::XFastContextHandler > oox::shape::ShapeContextHandler::getDrawingShapeContext ( )
private

◆ getFullWPGSupport()

const bool & oox::shape::ShapeContextHandler::getFullWPGSupport ( )
inline

Definition at line 107 of file ShapeContextHandler.hxx.

◆ getGraphicShapeContext()

uno::Reference< xml::sax::XFastContextHandler > const & oox::shape::ShapeContextHandler::getGraphicShapeContext ( ::sal_Int32  Element)
private

◆ getLockedCanvasContext()

uno::Reference< xml::sax::XFastContextHandler > oox::shape::ShapeContextHandler::getLockedCanvasContext ( sal_Int32  nElement)
private

◆ getShape()

uno::Reference< drawing::XShape > oox::shape::ShapeContextHandler::getShape ( )

◆ getStartToken()

sal_Int32 oox::shape::ShapeContextHandler::getStartToken ( ) const

Definition at line 545 of file ShapeContextHandler.cxx.

References mnStartTokenStack.

Referenced by getContextHandler(), and getShape().

◆ getTheme()

const oox::drawingml::ThemePtr & oox::shape::ShapeContextHandler::getTheme ( ) const
inline

Definition at line 118 of file ShapeContextHandler.hxx.

◆ getWpgContext()

uno::Reference< xml::sax::XFastContextHandler > oox::shape::ShapeContextHandler::getWpgContext ( sal_Int32  nElement)
private

◆ getWpsContext()

uno::Reference< xml::sax::XFastContextHandler > oox::shape::ShapeContextHandler::getWpsContext ( sal_Int32  nStartElement,
sal_Int32  nElement 
)
private

◆ isWordProcessingGroupShape()

bool oox::shape::ShapeContextHandler::isWordProcessingGroupShape ( ) const
inline

Definition at line 110 of file ShapeContextHandler.hxx.

◆ operator=()

void oox::shape::ShapeContextHandler::operator= ( ShapeContextHandler const &  )
privatedelete

◆ popStartToken()

void oox::shape::ShapeContextHandler::popStartToken ( )

Definition at line 551 of file ShapeContextHandler.cxx.

References mnStartTokenStack.

Referenced by getShape().

◆ pushStartToken()

void oox::shape::ShapeContextHandler::pushStartToken ( sal_Int32  _starttoken)

Definition at line 557 of file ShapeContextHandler.cxx.

References mnStartTokenStack.

◆ setDocumentProperties()

void oox::shape::ShapeContextHandler::setDocumentProperties ( const css::uno::Reference< css::document::XDocumentProperties > &  xDocProps)

Definition at line 572 of file ShapeContextHandler.cxx.

References mxDocumentProperties, and mxShapeFilterBase.

◆ setDrawPage()

void oox::shape::ShapeContextHandler::setDrawPage ( const css::uno::Reference< css::drawing::XDrawPage > &  the_value)

Definition at line 527 of file ShapeContextHandler.cxx.

References mxDrawPage.

◆ setFullWPGSupport()

void oox::shape::ShapeContextHandler::setFullWPGSupport ( bool  bUse)
inline

Definition at line 108 of file ShapeContextHandler.hxx.

◆ setGraphicMapper()

void oox::shape::ShapeContextHandler::setGraphicMapper ( css::uno::Reference< css::graphic::XGraphicMapper > const &  rGraphicMapper)

Definition at line 583 of file ShapeContextHandler.cxx.

References mxShapeFilterBase.

◆ setMediaDescriptor()

void oox::shape::ShapeContextHandler::setMediaDescriptor ( const css::uno::Sequence< css::beans::PropertyValue > &  rMediaDescriptor)

Definition at line 578 of file ShapeContextHandler.cxx.

References maMediaDescriptor.

◆ setModel()

void oox::shape::ShapeContextHandler::setModel ( const css::uno::Reference< css::frame::XModel > &  the_value)

Definition at line 532 of file ShapeContextHandler.cxx.

References mxShapeFilterBase.

◆ setPosition()

void oox::shape::ShapeContextHandler::setPosition ( const css::awt::Point &  rPosition)

Definition at line 562 of file ShapeContextHandler.cxx.

References maPosition.

◆ setRelationFragmentPath()

void oox::shape::ShapeContextHandler::setRelationFragmentPath ( const OUString &  the_value)

Definition at line 540 of file ShapeContextHandler.cxx.

References msRelationFragmentPath.

◆ setSize()

void oox::shape::ShapeContextHandler::setSize ( const css::awt::Size &  rSize)

Definition at line 567 of file ShapeContextHandler.cxx.

References maSize.

◆ setTheme()

void oox::shape::ShapeContextHandler::setTheme ( const oox::drawingml::ThemePtr pTheme)
inline

Definition at line 117 of file ShapeContextHandler.hxx.

◆ startFastElement()

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

◆ startUnknownElement()

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

Member Data Documentation

◆ m_bFullWPGSUpport

bool oox::shape::ShapeContextHandler::m_bFullWPGSUpport
private

Definition at line 130 of file ShapeContextHandler.hxx.

Referenced by getWpgContext().

◆ maMediaDescriptor

css::uno::Sequence<css::beans::PropertyValue> oox::shape::ShapeContextHandler::maMediaDescriptor
private

Definition at line 146 of file ShapeContextHandler.hxx.

Referenced by setMediaDescriptor(), and startFastElement().

◆ maPosition

css::awt::Point oox::shape::ShapeContextHandler::maPosition
private

Definition at line 128 of file ShapeContextHandler.hxx.

Referenced by getShape(), and setPosition().

◆ maSize

css::awt::Size oox::shape::ShapeContextHandler::maSize
private

Definition at line 129 of file ShapeContextHandler.hxx.

Referenced by getDiagramShapeContext(), and setSize().

◆ mnStartTokenStack

std::stack<sal_uInt32> oox::shape::ShapeContextHandler::mnStartTokenStack
private

Definition at line 126 of file ShapeContextHandler.hxx.

Referenced by getStartToken(), popStartToken(), and pushStartToken().

◆ mpDrawing

std::shared_ptr< vml::Drawing > oox::shape::ShapeContextHandler::mpDrawing
private

◆ mpShape

drawingml::ShapePtr oox::shape::ShapeContextHandler::mpShape
private

◆ mpThemePtr

drawingml::ThemePtr oox::shape::ShapeContextHandler::mpThemePtr
private

Definition at line 149 of file ShapeContextHandler.hxx.

Referenced by getShape(), and startFastElement().

◆ msRelationFragmentPath

OUString oox::shape::ShapeContextHandler::msRelationFragmentPath
private

◆ mxChartShapeContext

rtl::Reference<drawingml::ChartGraphicDataContext> oox::shape::ShapeContextHandler::mxChartShapeContext
private

Definition at line 144 of file ShapeContextHandler.hxx.

Referenced by getChartShapeContext(), and getShape().

◆ mxDiagramShapeContext

rtl::Reference<drawingml::DiagramGraphicDataContext> oox::shape::ShapeContextHandler::mxDiagramShapeContext
private

Definition at line 139 of file ShapeContextHandler.hxx.

Referenced by getDiagramShapeContext(), and getShape().

◆ mxDocumentProperties

css::uno::Reference<css::document::XDocumentProperties> oox::shape::ShapeContextHandler::mxDocumentProperties
private

Definition at line 145 of file ShapeContextHandler.hxx.

Referenced by setDocumentProperties().

◆ mxDrawingFragmentHandler

rtl::Reference<vml::DrawingFragment> oox::shape::ShapeContextHandler::mxDrawingFragmentHandler
private

Definition at line 137 of file ShapeContextHandler.hxx.

Referenced by getDrawingShapeContext().

◆ mxDrawPage

css::uno::Reference<css::drawing::XDrawPage> oox::shape::ShapeContextHandler::mxDrawPage
private

Definition at line 150 of file ShapeContextHandler.hxx.

Referenced by getDrawingShapeContext(), getShape(), and setDrawPage().

◆ mxGraphicShapeContext

css::uno::Reference<XFastContextHandler> oox::shape::ShapeContextHandler::mxGraphicShapeContext
private

Definition at line 138 of file ShapeContextHandler.hxx.

Referenced by getGraphicShapeContext(), and getShape().

◆ mxLockedCanvasContext

rtl::Reference<LockedCanvasContext> oox::shape::ShapeContextHandler::mxLockedCanvasContext
private

Definition at line 140 of file ShapeContextHandler.hxx.

Referenced by getLockedCanvasContext(), and getShape().

◆ mxSavedShape

css::uno::Reference<css::drawing::XShape> oox::shape::ShapeContextHandler::mxSavedShape
private

Definition at line 142 of file ShapeContextHandler.hxx.

Referenced by endFastElement(), getShape(), and getWpsContext().

◆ mxShapeFilterBase

::rtl::Reference< ShapeFilterBase > oox::shape::ShapeContextHandler::mxShapeFilterBase
private

◆ mxWpgContext

rtl::Reference<WpgContext> oox::shape::ShapeContextHandler::mxWpgContext
private

Definition at line 143 of file ShapeContextHandler.hxx.

Referenced by getShape(), and getWpgContext().

◆ mxWpsContext

rtl::Reference<WpsContext> oox::shape::ShapeContextHandler::mxWpsContext
private

Definition at line 141 of file ShapeContextHandler.hxx.

Referenced by endFastElement(), getShape(), and getWpsContext().


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