LibreOffice Module oox (master)
1
|
#include <ShapeContextHandler.hxx>
Public Member Functions | |
ShapeContextHandler (const 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) |
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::ThemePtr & | getTheme () const |
Private Types | |
typedef rtl::Reference< drawingml::GraphicShapeContext > | GraphicShapeContextPtr |
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 > const & | getChartShapeContext (::sal_Int32 Element) |
css::uno::Reference< XFastContextHandler > const & | getDrawingShapeContext () |
css::uno::Reference< XFastContextHandler > const & | getDiagramShapeContext () |
css::uno::Reference< XFastContextHandler > const & | getLockedCanvasContext (sal_Int32 nElement) |
css::uno::Reference< XFastContextHandler > const & | getWpsContext (sal_Int32 nStartElement, sal_Int32 nElement) |
css::uno::Reference< XFastContextHandler > const & | getWpgContext (sal_Int32 nElement) |
css::uno::Reference< XFastContextHandler > | getContextHandler (sal_Int32 nElement=0) |
Private Attributes | |
std::stack< sal_uInt32 > | mnStartTokenStack |
css::awt::Point | maPosition |
bool | m_bFullWPGSUpport |
drawingml::ShapePtr | mpShape |
std::shared_ptr< vml::Drawing > | mpDrawing |
css::uno::Reference< XFastContextHandler > | mxDrawingFragmentHandler |
css::uno::Reference< XFastContextHandler > | mxGraphicShapeContext |
css::uno::Reference< XFastContextHandler > | mxDiagramShapeContext |
css::uno::Reference< XFastContextHandler > | mxLockedCanvasContext |
css::uno::Reference< XFastContextHandler > | mxWpsContext |
css::uno::Reference< css::drawing::XShape > | mxSavedShape |
css::uno::Reference< XFastContextHandler > | mxWpgContext |
css::uno::Reference< XFastContextHandler > | mxChartShapeContext |
css::uno::Reference< css::document::XDocumentProperties > | mxDocumentProperties |
css::uno::Sequence< css::beans::PropertyValue > | maMediaDescriptor |
::rtl::Reference< ShapeFilterBase > | mxShapeFilterBase |
drawingml::ThemePtr | mpThemePtr |
css::uno::Reference< css::drawing::XDrawPage > | mxDrawPage |
OUString | msRelationFragmentPath |
Definition at line 48 of file ShapeContextHandler.hxx.
|
private |
Definition at line 127 of file ShapeContextHandler.hxx.
|
explicit |
Definition at line 46 of file ShapeContextHandler.cxx.
References false.
|
overridevirtual |
Definition at line 53 of file ShapeContextHandler.cxx.
|
privatedelete |
|
overridevirtual |
Definition at line 382 of file ShapeContextHandler.cxx.
References getContextHandler().
|
overridevirtual |
Definition at line 354 of file ShapeContextHandler.cxx.
|
overridevirtual |
Definition at line 369 of file ShapeContextHandler.cxx.
|
overridevirtual |
Definition at line 317 of file ShapeContextHandler.cxx.
References getContextHandler(), mxSavedShape, and mxWpsContext.
|
overridevirtual |
Definition at line 343 of file ShapeContextHandler.cxx.
|
private |
Definition at line 79 of file ShapeContextHandler.cxx.
References mpShape, msRelationFragmentPath, mxChartShapeContext, and mxShapeFilterBase.
Referenced by getContextHandler().
|
private |
Definition at line 224 of file ShapeContextHandler.cxx.
References getChartShapeContext(), getDiagramShapeContext(), getDrawingShapeContext(), getGraphicShapeContext(), getLockedCanvasContext(), getStartToken(), getWpgContext(), and getWpsContext().
Referenced by characters(), endFastElement(), and getShape().
|
private |
Definition at line 211 of file ShapeContextHandler.cxx.
References mpShape, msRelationFragmentPath, mxDiagramShapeContext, and mxShapeFilterBase.
Referenced by getContextHandler().
|
private |
Definition at line 184 of file ShapeContextHandler.cxx.
References oox::core::ContextHandler::getFragmentPath(), mpDrawing, msRelationFragmentPath, mxDrawingFragmentHandler, mxDrawPage, mxShapeFilterBase, and oox::vml::VMLDRAWING_WORD.
Referenced by getContextHandler(), and getShape().
|
inline |
Definition at line 99 of file ShapeContextHandler.hxx.
|
private |
Definition at line 156 of file ShapeContextHandler.cxx.
References mpShape, msRelationFragmentPath, mxGraphicShapeContext, and mxShapeFilterBase.
Referenced by getContextHandler().
|
private |
Definition at line 57 of file ShapeContextHandler.cxx.
References msRelationFragmentPath, mxLockedCanvasContext, and mxShapeFilterBase.
Referenced by getContextHandler().
uno::Reference< drawing::XShape > oox::shape::ShapeContextHandler::getShape | ( | ) |
Definition at line 391 of file ShapeContextHandler.cxx.
References getContextHandler(), getDrawingShapeContext(), oox::core::ContextHandler::getFragmentPathFromRelId(), oox::shape::LockedCanvasContext::getShape(), oox::shape::WpgContext::getShape(), oox::drawingml::ShapeContext::getShape(), getStartToken(), maPosition, mpDrawing, mpShape, mpThemePtr, mxChartShapeContext, mxDiagramShapeContext, mxDrawPage, mxGraphicShapeContext, mxLockedCanvasContext, mxSavedShape, mxShapeFilterBase, mxWpgContext, mxWpsContext, and popStartToken().
sal_Int32 oox::shape::ShapeContextHandler::getStartToken | ( | ) | const |
Definition at line 544 of file ShapeContextHandler.cxx.
References mnStartTokenStack.
Referenced by getContextHandler(), and getShape().
|
inline |
Definition at line 110 of file ShapeContextHandler.hxx.
|
private |
Definition at line 132 of file ShapeContextHandler.cxx.
References m_bFullWPGSUpport, msRelationFragmentPath, mxShapeFilterBase, and mxWpgContext.
Referenced by getContextHandler().
|
private |
Definition at line 101 of file ShapeContextHandler.cxx.
References msRelationFragmentPath, mxSavedShape, mxShapeFilterBase, and mxWpsContext.
Referenced by getContextHandler().
|
inline |
Definition at line 102 of file ShapeContextHandler.hxx.
|
privatedelete |
void oox::shape::ShapeContextHandler::popStartToken | ( | ) |
Definition at line 550 of file ShapeContextHandler.cxx.
References mnStartTokenStack.
Referenced by getShape().
void oox::shape::ShapeContextHandler::pushStartToken | ( | sal_Int32 | _starttoken | ) |
Definition at line 556 of file ShapeContextHandler.cxx.
References mnStartTokenStack.
void oox::shape::ShapeContextHandler::setDocumentProperties | ( | const css::uno::Reference< css::document::XDocumentProperties > & | xDocProps | ) |
Definition at line 566 of file ShapeContextHandler.cxx.
References mxDocumentProperties, and mxShapeFilterBase.
void oox::shape::ShapeContextHandler::setDrawPage | ( | const css::uno::Reference< css::drawing::XDrawPage > & | the_value | ) |
Definition at line 526 of file ShapeContextHandler.cxx.
References mxDrawPage.
|
inline |
Definition at line 100 of file ShapeContextHandler.hxx.
void oox::shape::ShapeContextHandler::setGraphicMapper | ( | css::uno::Reference< css::graphic::XGraphicMapper > const & | rGraphicMapper | ) |
Definition at line 577 of file ShapeContextHandler.cxx.
References mxShapeFilterBase.
void oox::shape::ShapeContextHandler::setMediaDescriptor | ( | const css::uno::Sequence< css::beans::PropertyValue > & | rMediaDescriptor | ) |
Definition at line 572 of file ShapeContextHandler.cxx.
References maMediaDescriptor.
void oox::shape::ShapeContextHandler::setModel | ( | const css::uno::Reference< css::frame::XModel > & | the_value | ) |
Definition at line 531 of file ShapeContextHandler.cxx.
References mxShapeFilterBase.
void oox::shape::ShapeContextHandler::setPosition | ( | const css::awt::Point & | rPosition | ) |
Definition at line 561 of file ShapeContextHandler.cxx.
References maPosition.
void oox::shape::ShapeContextHandler::setRelationFragmentPath | ( | const OUString & | the_value | ) |
Definition at line 539 of file ShapeContextHandler.cxx.
References msRelationFragmentPath.
|
inline |
Definition at line 109 of file ShapeContextHandler.hxx.
|
overridevirtual |
Definition at line 260 of file ShapeContextHandler.cxx.
References u.
|
overridevirtual |
Definition at line 305 of file ShapeContextHandler.cxx.
|
private |
Definition at line 121 of file ShapeContextHandler.hxx.
Referenced by getWpgContext().
|
private |
Definition at line 137 of file ShapeContextHandler.hxx.
Referenced by setMediaDescriptor().
|
private |
Definition at line 120 of file ShapeContextHandler.hxx.
Referenced by getShape(), and setPosition().
|
private |
Definition at line 118 of file ShapeContextHandler.hxx.
Referenced by getStartToken(), popStartToken(), and pushStartToken().
|
private |
Definition at line 124 of file ShapeContextHandler.hxx.
Referenced by getDrawingShapeContext(), and getShape().
|
private |
Definition at line 123 of file ShapeContextHandler.hxx.
Referenced by getChartShapeContext(), getDiagramShapeContext(), getGraphicShapeContext(), and getShape().
|
private |
Definition at line 140 of file ShapeContextHandler.hxx.
Referenced by getShape().
|
private |
Definition at line 142 of file ShapeContextHandler.hxx.
Referenced by getChartShapeContext(), getDiagramShapeContext(), getDrawingShapeContext(), getGraphicShapeContext(), getLockedCanvasContext(), getWpgContext(), getWpsContext(), and setRelationFragmentPath().
|
private |
Definition at line 135 of file ShapeContextHandler.hxx.
Referenced by getChartShapeContext(), and getShape().
|
private |
Definition at line 130 of file ShapeContextHandler.hxx.
Referenced by getDiagramShapeContext(), and getShape().
|
private |
Definition at line 136 of file ShapeContextHandler.hxx.
Referenced by setDocumentProperties().
|
private |
Definition at line 128 of file ShapeContextHandler.hxx.
Referenced by getDrawingShapeContext().
|
private |
Definition at line 141 of file ShapeContextHandler.hxx.
Referenced by getDrawingShapeContext(), getShape(), and setDrawPage().
|
private |
Definition at line 129 of file ShapeContextHandler.hxx.
Referenced by getGraphicShapeContext(), and getShape().
|
private |
Definition at line 131 of file ShapeContextHandler.hxx.
Referenced by getLockedCanvasContext(), and getShape().
|
private |
Definition at line 133 of file ShapeContextHandler.hxx.
Referenced by endFastElement(), getShape(), and getWpsContext().
|
private |
Definition at line 139 of file ShapeContextHandler.hxx.
Referenced by getChartShapeContext(), getDiagramShapeContext(), getDrawingShapeContext(), getGraphicShapeContext(), getLockedCanvasContext(), getShape(), getWpgContext(), getWpsContext(), setDocumentProperties(), setGraphicMapper(), and setModel().
|
private |
Definition at line 134 of file ShapeContextHandler.hxx.
Referenced by getShape(), and getWpgContext().
|
private |
Definition at line 132 of file ShapeContextHandler.hxx.
Referenced by endFastElement(), getShape(), and getWpsContext().