LibreOffice Module xmloff (master)  1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SdXMLShapeContext Class Reference

#include <ximpshap.hxx>

Inheritance diagram for SdXMLShapeContext:
[legend]
Collaboration diagram for SdXMLShapeContext:
[legend]

Public Member Functions

 SdXMLShapeContext (SvXMLImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
 
virtual ~SdXMLShapeContext () override
 
virtual void SAL_CALL startFastElement (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
 
virtual void SAL_CALL endFastElement (sal_Int32 nElement) override
 endFastElement is called before a context will be destructed, but after an elements context has been parsed. More...
 
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
 
virtual bool processAttribute (const sax_fastparser::FastAttributeList::FastAttributeIter &)
 
- Public Member Functions inherited from SvXMLShapeContext
 SvXMLShapeContext (SvXMLImport &rImp, bool bTemporaryShape)
 
const css::uno::Reference< css::drawing::XShape > & getShape () const
 
void setHyperlink (const OUString &rHyperlink)
 
- Public Member Functions inherited from SvXMLImportContext
 SvXMLImportContext (SvXMLImport &rImport)
 A contexts constructor does anything that is required if an element starts. More...
 
virtual ~SvXMLImportContext ()
 A contexts destructor does anything that is required if an element ends. More...
 
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 SAL_CALL characters (const OUString &aChars) override
 This method is called for all characters that are contained in the current element. More...
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) final override
 
virtual void SAL_CALL acquire () noexcept final override
 
virtual void SAL_CALL release () noexcept final override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () final override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () final override
 

Protected Member Functions

void SetStyle (bool bSupportsStyle=true)
 if bSupportsStyle is false, auto styles will be set but not a style More...
 
void SetLayer ()
 
void SetThumbnail ()
 
void AddShape (css::uno::Reference< css::drawing::XShape > &xShape)
 
void AddShape (OUString const &serviceName)
 
void SetTransformation ()
 
void addGluePoint (const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
 
bool isPresentationShape () const
 
- Protected Member Functions inherited from SvXMLImportContext
SvXMLImportGetImport ()
 
const SvXMLImportGetImport () const
 

Protected Attributes

css::uno::Reference< css::drawing::XShapes > mxShapes
 
css::uno::Reference< css::text::XTextCursor > mxCursor
 
css::uno::Reference< css::text::XTextCursor > mxOldCursor
 
css::uno::Reference< css::xml::sax::XFastAttributeList > mxAttrList
 
css::uno::Reference< css::container::XIdentifierContainer > mxGluePoints
 
css::uno::Reference< css::document::XActionLockable > mxLockable
 
OUString maDrawStyleName
 
OUString maTextStyleName
 
OUString maPresentationClass
 
OUString maShapeName
 
OUString maThumbnailURL
 
bool mbListContextPushed
 whether to restore list context (#91964#) More...
 
XmlStyleFamily mnStyleFamily
 
bool mbIsPlaceholder
 
bool mbClearDefaultAttributes
 
bool mbIsUserTransformed
 
sal_Int32 mnZOrder
 
OUString maShapeId
 
OUString maLayerName
 
SdXMLImExTransform2D mnTransform
 
css::awt::Size maSize
 
sal_Int16 mnRelWidth
 
sal_Int16 mnRelHeight
 
css::awt::Point maPosition
 
basegfx::B2DHomMatrix maUsedTransformation
 
bool mbVisible
 
bool mbPrintable
 
bool mbHaveXmlId
 
bool mbTextBox
 If the text of this shape is handled by a Writer TextFrame. More...
 
- Protected Attributes inherited from SvXMLShapeContext
css::uno::Reference< css::drawing::XShape > mxShape
 
bool mbTemporaryShape
 
OUString msHyperlink
 

Detailed Description

Definition at line 43 of file ximpshap.hxx.

Constructor & Destructor Documentation

SdXMLShapeContext::SdXMLShapeContext ( SvXMLImport rImport,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList,
css::uno::Reference< css::drawing::XShapes > const &  rShapes,
bool  bTemporaryShape 
)

Definition at line 142 of file ximpshap.cxx.

References maPosition, maSize, mbVisible, and SD_GRAPHICS_ID.

SdXMLShapeContext::~SdXMLShapeContext ( )
overridevirtual

Definition at line 167 of file ximpshap.cxx.

Member Function Documentation

void SdXMLShapeContext::addGluePoint ( const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList)
protected
void SdXMLShapeContext::AddShape ( css::uno::Reference< css::drawing::XShape > &  xShape)
protected
void SdXMLShapeContext::AddShape ( OUString const &  serviceName)
protected
css::uno::Reference< css::xml::sax::XFastContextHandler > SdXMLShapeContext::createFastChildContext ( sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  AttrList 
)
overridevirtual
void SdXMLShapeContext::endFastElement ( sal_Int32  Element)
overridevirtual
bool SdXMLShapeContext::isPresentationShape ( ) const
protected
bool SdXMLShapeContext::processAttribute ( const sax_fastparser::FastAttributeList::FastAttributeIter aIter)
virtual

Reimplemented in SdXMLTableShapeContext, SdXMLCustomShapeContext, SdXMLFrameShapeContext, SdXMLFloatingFrameShapeContext, SdXMLPluginShapeContext, SdXMLAppletShapeContext, SdXMLObjectShapeContext, SdXMLGraphicObjectShapeContext, SdXMLCaptionShapeContext, SdXMLPageShapeContext, SdXMLMeasureShapeContext, SdXMLConnectorShapeContext, SdXMLControlShapeContext, SdXMLTextBoxShapeContext, SdXMLPathShapeContext, SdXMLPolygonShapeContext, SdXMLEllipseShapeContext, SdXMLLineShapeContext, and SdXMLRectShapeContext.

Definition at line 783 of file ximpshap.cxx.

References SvXMLUnitConverter::convertMeasureToCore(), sax::Converter::convertPercent(), DRAW, SvXMLImportContext::GetImport(), SvXMLImport::GetMM100UnitConverter(), sax_fastparser::FastAttributeList::FastAttributeIter::getToken(), xmloff::token::IsXMLToken(), maDrawStyleName, maLayerName, maPosition, maPresentationClass, maShapeId, maShapeName, maSize, maTextStyleName, mbClearDefaultAttributes, mbHaveXmlId, mbIsPlaceholder, mbIsUserTransformed, mbPrintable, mbVisible, mnRelHeight, mnRelWidth, mnStyleFamily, mnTransform, mnZOrder, NONE, SD_PRESENTATION_ID, SdXMLImExTransform2D::SetString(), STYLE, SVG, sax_fastparser::FastAttributeList::FastAttributeIter::toInt32(), sax_fastparser::FastAttributeList::FastAttributeIter::toString(), sax_fastparser::FastAttributeList::FastAttributeIter::toView(), xmloff::token::XML_ALWAYS, xmloff::token::XML_CLASS, xmloff::token::XML_DISPLAY, XML_ELEMENT, xmloff::token::XML_HEIGHT, xmloff::token::XML_ID, xmloff::token::XML_LAYER, xmloff::token::XML_NAME, xmloff::token::XML_PLACEHOLDER, xmloff::token::XML_PRINTER, xmloff::token::XML_REL_HEIGHT, xmloff::token::XML_REL_WIDTH, xmloff::token::XML_SCREEN, xmloff::token::XML_STYLE_NAME, xmloff::token::XML_TEXT_STYLE_NAME, xmloff::token::XML_TRANSFORM, xmloff::token::XML_TRUE, xmloff::token::XML_USER_TRANSFORMED, xmloff::token::XML_WIDTH, xmloff::token::XML_X, xmloff::token::XML_Y, and xmloff::token::XML_ZINDEX.

Referenced by XMLShapeImportHelper::Create3DSceneChildContext(), XMLShapeImportHelper::CreateGroupChildContext(), SdXMLRectShapeContext::processAttribute(), SdXMLLineShapeContext::processAttribute(), SdXMLEllipseShapeContext::processAttribute(), SdXMLPolygonShapeContext::processAttribute(), SdXMLPathShapeContext::processAttribute(), SdXMLTextBoxShapeContext::processAttribute(), SdXMLControlShapeContext::processAttribute(), SdXMLConnectorShapeContext::processAttribute(), SdXMLMeasureShapeContext::processAttribute(), SdXMLPageShapeContext::processAttribute(), SdXMLCaptionShapeContext::processAttribute(), SdXMLGraphicObjectShapeContext::processAttribute(), SdXMLObjectShapeContext::processAttribute(), SdXMLAppletShapeContext::processAttribute(), SdXMLPluginShapeContext::processAttribute(), SdXMLFloatingFrameShapeContext::processAttribute(), SdXMLFrameShapeContext::processAttribute(), SdXMLCustomShapeContext::processAttribute(), and SdXMLTableShapeContext::processAttribute().

void SdXMLShapeContext::SetLayer ( )
protected
void SdXMLShapeContext::SetStyle ( bool  bSupportsStyle = true)
protected

if bSupportsStyle is false, auto styles will be set but not a style

Definition at line 589 of file ximpshap.cxx.

References Any, DBG_UNHANDLED_EXCEPTION, XMLPropStyleContext::FillPropertySet(), SvXMLImportContext::GetImport(), SvXMLStyleContext::GetParentName(), SvXMLImport::GetShapeImport(), XMLPropStyleContext::GetStyle(), SvXMLImport::GetStyleDisplayName(), maDrawStyleName, maTextStyleName, mbTextBox, mnStyleFamily, SvXMLShapeContext::mxShape, nPos, SD_GRAPHICS_ID, SD_PRESENTATION_ID, and TEXT_PARAGRAPH.

Referenced by SdXMLGroupShapeContext::startFastElement(), SdXML3DSceneShapeContext::startFastElement(), SdXML3DCubeObjectShapeContext::startFastElement(), SdXML3DSphereObjectShapeContext::startFastElement(), SdXML3DLatheObjectShapeContext::startFastElement(), SdXML3DExtrudeObjectShapeContext::startFastElement(), SdXMLRectShapeContext::startFastElement(), SdXMLLineShapeContext::startFastElement(), SdXMLEllipseShapeContext::startFastElement(), SdXMLPolygonShapeContext::startFastElement(), SdXMLPathShapeContext::startFastElement(), SdXMLTextBoxShapeContext::startFastElement(), SdXMLControlShapeContext::startFastElement(), SdXMLConnectorShapeContext::startFastElement(), SdXMLMeasureShapeContext::startFastElement(), SdXMLPageShapeContext::startFastElement(), SdXMLCaptionShapeContext::startFastElement(), SdXMLGraphicObjectShapeContext::startFastElement(), SdXMLChartShapeContext::startFastElement(), SdXMLObjectShapeContext::startFastElement(), SdXMLFloatingFrameShapeContext::startFastElement(), SdXMLCustomShapeContext::startFastElement(), and SdXMLTableShapeContext::startFastElement().

void SdXMLShapeContext::SetThumbnail ( )
protected
void SdXMLShapeContext::SetTransformation ( )
protected
void SdXMLShapeContext::startFastElement ( sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList 
)
overridevirtual

Reimplemented from SvXMLImportContext.

Reimplemented in SdXMLTableShapeContext, SdXMLCustomShapeContext, SdXMLFrameShapeContext, SdXMLFloatingFrameShapeContext, SdXMLPluginShapeContext, SdXMLAppletShapeContext, SdXMLObjectShapeContext, SdXMLChartShapeContext, SdXMLGraphicObjectShapeContext, SdXMLCaptionShapeContext, SdXMLPageShapeContext, SdXMLMeasureShapeContext, SdXMLConnectorShapeContext, SdXMLControlShapeContext, SdXMLTextBoxShapeContext, SdXMLPathShapeContext, SdXMLPolygonShapeContext, SdXMLEllipseShapeContext, SdXMLLineShapeContext, SdXML3DExtrudeObjectShapeContext, SdXMLRectShapeContext, SdXML3DLatheObjectShapeContext, SdXML3DPolygonBasedShapeContext, SdXML3DSphereObjectShapeContext, SdXML3DCubeObjectShapeContext, SdXML3DSceneShapeContext, SdXML3DObjectContext, and SdXMLGroupShapeContext.

Definition at line 319 of file ximpshap.cxx.

References SvXMLImportContext::GetImport(), SvXMLImport::GetShapeImport(), mxAttrList, SvXMLShapeContext::mxShape, and mxShapes.

Referenced by SdXML3DObjectContext::startFastElement(), SdXML3DSceneShapeContext::startFastElement(), SdXMLRectShapeContext::startFastElement(), SdXMLLineShapeContext::startFastElement(), SdXMLEllipseShapeContext::startFastElement(), SdXMLPolygonShapeContext::startFastElement(), SdXMLPathShapeContext::startFastElement(), SdXMLTextBoxShapeContext::startFastElement(), SdXMLControlShapeContext::startFastElement(), SdXMLConnectorShapeContext::startFastElement(), SdXMLMeasureShapeContext::startFastElement(), SdXMLPageShapeContext::startFastElement(), SdXMLCaptionShapeContext::startFastElement(), SdXMLGraphicObjectShapeContext::startFastElement(), SdXMLChartShapeContext::startFastElement(), and SdXMLCustomShapeContext::startFastElement().

Member Data Documentation

OUString SdXMLShapeContext::maDrawStyleName
protected
OUString SdXMLShapeContext::maLayerName
protected

Definition at line 69 of file ximpshap.hxx.

Referenced by processAttribute(), and SetLayer().

css::awt::Point SdXMLShapeContext::maPosition
protected
OUString SdXMLShapeContext::maPresentationClass
protected
OUString SdXMLShapeContext::maShapeId
protected
OUString SdXMLShapeContext::maShapeName
protected

Definition at line 57 of file ximpshap.hxx.

Referenced by processAttribute().

css::awt::Size SdXMLShapeContext::maSize
protected
OUString SdXMLShapeContext::maTextStyleName
protected

Definition at line 55 of file ximpshap.hxx.

Referenced by processAttribute(), and SetStyle().

OUString SdXMLShapeContext::maThumbnailURL
protected

Definition at line 58 of file ximpshap.hxx.

Referenced by createFastChildContext(), and SetThumbnail().

basegfx::B2DHomMatrix SdXMLShapeContext::maUsedTransformation
protected

Definition at line 76 of file ximpshap.hxx.

Referenced by SdXMLCustomShapeContext::endFastElement(), and SetTransformation().

bool SdXMLShapeContext::mbClearDefaultAttributes
protected

Definition at line 65 of file ximpshap.hxx.

Referenced by processAttribute(), and SdXMLPageShapeContext::SdXMLPageShapeContext().

bool SdXMLShapeContext::mbHaveXmlId
protected

Definition at line 80 of file ximpshap.hxx.

Referenced by processAttribute().

bool SdXMLShapeContext::mbIsPlaceholder
protected
bool SdXMLShapeContext::mbIsUserTransformed
protected
bool SdXMLShapeContext::mbListContextPushed
protected

whether to restore list context (#91964#)

Definition at line 61 of file ximpshap.hxx.

Referenced by createFastChildContext(), and endFastElement().

bool SdXMLShapeContext::mbPrintable
protected

Definition at line 79 of file ximpshap.hxx.

Referenced by processAttribute().

bool SdXMLShapeContext::mbTextBox
protected

If the text of this shape is handled by a Writer TextFrame.

Definition at line 81 of file ximpshap.hxx.

Referenced by createFastChildContext(), SdXMLCustomShapeContext::SdXMLCustomShapeContext(), and SetStyle().

bool SdXMLShapeContext::mbVisible
protected

Definition at line 78 of file ximpshap.hxx.

Referenced by processAttribute().

sal_Int16 SdXMLShapeContext::mnRelHeight
protected

Definition at line 74 of file ximpshap.hxx.

Referenced by processAttribute().

sal_Int16 SdXMLShapeContext::mnRelWidth
protected

Definition at line 73 of file ximpshap.hxx.

Referenced by processAttribute().

XmlStyleFamily SdXMLShapeContext::mnStyleFamily
protected

Definition at line 63 of file ximpshap.hxx.

Referenced by isPresentationShape(), processAttribute(), and SetStyle().

SdXMLImExTransform2D SdXMLShapeContext::mnTransform
protected
sal_Int32 SdXMLShapeContext::mnZOrder
protected

Definition at line 67 of file ximpshap.hxx.

Referenced by processAttribute().

css::uno::Reference< css::xml::sax::XFastAttributeList> SdXMLShapeContext::mxAttrList
protected
css::uno::Reference< css::text::XTextCursor > SdXMLShapeContext::mxCursor
protected

Definition at line 48 of file ximpshap.hxx.

Referenced by createFastChildContext(), and endFastElement().

css::uno::Reference< css::container::XIdentifierContainer > SdXMLShapeContext::mxGluePoints
protected

Definition at line 51 of file ximpshap.hxx.

Referenced by addGluePoint().

css::uno::Reference< css::document::XActionLockable > SdXMLShapeContext::mxLockable
protected

Definition at line 52 of file ximpshap.hxx.

Referenced by endFastElement().

css::uno::Reference< css::text::XTextCursor > SdXMLShapeContext::mxOldCursor
protected

Definition at line 49 of file ximpshap.hxx.

Referenced by createFastChildContext(), and endFastElement().

css::uno::Reference< css::drawing::XShapes > SdXMLShapeContext::mxShapes
protected

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