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, css::uno::Reference< css::xml::sax::XFastAttributeList > xAttrList, css::uno::Reference< css::drawing::XShapes > xShapes, 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 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
 endFastElement is called before a context will be destructed, but after an elements context has been parsed. More...
 
virtual void SAL_CALL endUnknownElement (const OUString &Namespace, const OUString &Name) override
 
virtual css::uno::Reference< 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
 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
 
SvXMLImportGetImport ()
 
const SvXMLImportGetImport () 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::SdXMLShapeContext ( SvXMLImport rImport,
css::uno::Reference< css::xml::sax::XFastAttributeList >  xAttrList,
css::uno::Reference< css::drawing::XShapes >  xShapes,
bool  bTemporaryShape 
)

Definition at line 146 of file ximpshap.cxx.

References maPosition, maSize, mbVisible, and SD_GRAPHICS_ID.

◆ ~SdXMLShapeContext()

SdXMLShapeContext::~SdXMLShapeContext ( )
overridevirtual

Definition at line 171 of file ximpshap.cxx.

Member Function Documentation

◆ addGluePoint()

void SdXMLShapeContext::addGluePoint ( const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList)
protected

◆ AddShape() [1/2]

void SdXMLShapeContext::AddShape ( css::uno::Reference< css::drawing::XShape > &  xShape)
protected

◆ AddShape() [2/2]

void SdXMLShapeContext::AddShape ( OUString const &  serviceName)
protected

Definition at line 480 of file ximpshap.cxx.

References AddShape(), aSeq, GetImport(), XMLERROR_API, and XMLERROR_FLAG_ERROR.

◆ createFastChildContext()

css::uno::Reference< css::xml::sax::XFastContextHandler > SdXMLShapeContext::createFastChildContext ( sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  AttrList 
)
overridevirtual

◆ endFastElement()

void SdXMLShapeContext::endFastElement ( sal_Int32  Element)
overridevirtual

◆ GetImport() [1/2]

SvXMLImport & SvXMLImportContext::GetImport ( )
inlineprotected

Definition at line 60 of file xmlictxt.hxx.

Referenced by addGluePoint(), AddShape(), SdXML3DSceneShapeContext::createFastChildContext(), SdXMLGroupShapeContext::createFastChildContext(), createFastChildContext(), SdXMLObjectShapeContext::createFastChildContext(), SdXMLFrameShapeContext::createFastChildContext(), SdXMLCustomShapeContext::createFastChildContext(), SdXMLGraphicObjectShapeContext::createFastChildContext(), SdXMLAppletShapeContext::createFastChildContext(), SdXMLPluginShapeContext::createFastChildContext(), SdXMLFloatingFrameShapeContext::CreateFloatingFrameShape(), SdXML3DSceneShapeContext::endFastElement(), SdXMLGroupShapeContext::endFastElement(), endFastElement(), SdXMLGraphicObjectShapeContext::endFastElement(), SdXMLObjectShapeContext::endFastElement(), SdXMLAppletShapeContext::endFastElement(), SdXMLFrameShapeContext::endFastElement(), SdXMLCustomShapeContext::endFastElement(), isPresentationShape(), processAttribute(), SdXMLRectShapeContext::processAttribute(), SdXMLLineShapeContext::processAttribute(), SdXMLEllipseShapeContext::processAttribute(), SdXMLTextBoxShapeContext::processAttribute(), SdXMLConnectorShapeContext::processAttribute(), SdXMLMeasureShapeContext::processAttribute(), SdXMLCaptionShapeContext::processAttribute(), SdXMLAppletShapeContext::processAttribute(), SdXMLPluginShapeContext::processAttribute(), SdXMLFloatingFrameShapeContext::processAttribute(), SdXML3DObjectContext::SdXML3DObjectContext(), SdXMLCustomShapeContext::SdXMLCustomShapeContext(), SetStyle(), SetThumbnail(), SdXML3DPolygonBasedShapeContext::startFastElement(), SdXML3DSceneShapeContext::startFastElement(), SdXMLGroupShapeContext::startFastElement(), startFastElement(), SdXMLPolygonShapeContext::startFastElement(), SdXMLPathShapeContext::startFastElement(), SdXMLTextBoxShapeContext::startFastElement(), SdXMLControlShapeContext::startFastElement(), SdXMLConnectorShapeContext::startFastElement(), SdXMLPageShapeContext::startFastElement(), SdXMLGraphicObjectShapeContext::startFastElement(), SdXMLChartShapeContext::startFastElement(), SdXMLObjectShapeContext::startFastElement(), SdXMLAppletShapeContext::startFastElement(), SdXMLPluginShapeContext::startFastElement(), SdXMLFloatingFrameShapeContext::startFastElement(), and SdXMLTableShapeContext::startFastElement().

◆ GetImport() [2/2]

const SvXMLImport & SvXMLImportContext::GetImport ( ) const
inlineprotected

Definition at line 61 of file xmlictxt.hxx.

◆ isPresentationShape()

bool SdXMLShapeContext::isPresentationShape ( ) const
protected

◆ processAttribute()

bool SdXMLShapeContext::processAttribute ( const sax_fastparser::FastAttributeList::FastAttributeIter aIter)
virtual

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

Definition at line 799 of file ximpshap.cxx.

References sax::Converter::convertPercent(), DRAW, GetImport(), 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().

◆ SetLayer()

void SdXMLShapeContext::SetLayer ( )
protected

◆ SetStyle()

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

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

Definition at line 600 of file ximpshap.cxx.

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

Referenced by SdXML3DCubeObjectShapeContext::startFastElement(), SdXML3DSphereObjectShapeContext::startFastElement(), SdXML3DLatheObjectShapeContext::startFastElement(), SdXML3DExtrudeObjectShapeContext::startFastElement(), SdXML3DSceneShapeContext::startFastElement(), SdXMLGroupShapeContext::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(), SdXMLPluginShapeContext::startFastElement(), SdXMLFloatingFrameShapeContext::startFastElement(), SdXMLCustomShapeContext::startFastElement(), and SdXMLTableShapeContext::startFastElement().

◆ SetThumbnail()

void SdXMLShapeContext::SetThumbnail ( )
protected

◆ SetTransformation()

void SdXMLShapeContext::SetTransformation ( )
protected

◆ startFastElement()

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

Reimplemented from SvXMLImportContext.

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

Definition at line 323 of file ximpshap.cxx.

References GetImport(), 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

◆ maDrawStyleName

OUString SdXMLShapeContext::maDrawStyleName
protected

◆ maLayerName

OUString SdXMLShapeContext::maLayerName
protected

Definition at line 69 of file ximpshap.hxx.

Referenced by processAttribute(), and SetLayer().

◆ maPosition

css::awt::Point SdXMLShapeContext::maPosition
protected

◆ maPresentationClass

OUString SdXMLShapeContext::maPresentationClass
protected

◆ maShapeId

OUString SdXMLShapeContext::maShapeId
protected

◆ maShapeName

OUString SdXMLShapeContext::maShapeName
protected

Definition at line 57 of file ximpshap.hxx.

Referenced by processAttribute().

◆ maSize

css::awt::Size SdXMLShapeContext::maSize
protected

◆ maTextStyleName

OUString SdXMLShapeContext::maTextStyleName
protected

Definition at line 55 of file ximpshap.hxx.

Referenced by processAttribute(), and SetStyle().

◆ maThumbnailURL

OUString SdXMLShapeContext::maThumbnailURL
protected

Definition at line 58 of file ximpshap.hxx.

Referenced by createFastChildContext(), and SetThumbnail().

◆ maUsedTransformation

basegfx::B2DHomMatrix SdXMLShapeContext::maUsedTransformation
protected

◆ mbClearDefaultAttributes

bool SdXMLShapeContext::mbClearDefaultAttributes
protected

Definition at line 65 of file ximpshap.hxx.

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

◆ mbHaveXmlId

bool SdXMLShapeContext::mbHaveXmlId
protected

Definition at line 80 of file ximpshap.hxx.

Referenced by processAttribute().

◆ mbIsPlaceholder

bool SdXMLShapeContext::mbIsPlaceholder
protected

◆ mbIsUserTransformed

bool SdXMLShapeContext::mbIsUserTransformed
protected

◆ mbListContextPushed

bool SdXMLShapeContext::mbListContextPushed
protected

whether to restore list context (#91964#)

Definition at line 61 of file ximpshap.hxx.

Referenced by createFastChildContext(), and endFastElement().

◆ mbPrintable

bool SdXMLShapeContext::mbPrintable
protected

Definition at line 79 of file ximpshap.hxx.

Referenced by processAttribute().

◆ mbTextBox

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().

◆ mbVisible

bool SdXMLShapeContext::mbVisible
protected

Definition at line 78 of file ximpshap.hxx.

Referenced by processAttribute().

◆ mnRelHeight

sal_Int16 SdXMLShapeContext::mnRelHeight
protected

Definition at line 74 of file ximpshap.hxx.

Referenced by processAttribute().

◆ mnRelWidth

sal_Int16 SdXMLShapeContext::mnRelWidth
protected

Definition at line 73 of file ximpshap.hxx.

Referenced by processAttribute().

◆ mnStyleFamily

XmlStyleFamily SdXMLShapeContext::mnStyleFamily
protected

Definition at line 63 of file ximpshap.hxx.

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

◆ mnTransform

SdXMLImExTransform2D SdXMLShapeContext::mnTransform
protected

◆ mnZOrder

sal_Int32 SdXMLShapeContext::mnZOrder
protected

Definition at line 67 of file ximpshap.hxx.

Referenced by processAttribute().

◆ mxAttrList

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

◆ mxCursor

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

Definition at line 48 of file ximpshap.hxx.

Referenced by createFastChildContext(), and endFastElement().

◆ mxGluePoints

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

Definition at line 51 of file ximpshap.hxx.

Referenced by addGluePoint().

◆ mxLockable

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

Definition at line 52 of file ximpshap.hxx.

Referenced by endFastElement().

◆ mxOldCursor

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

Definition at line 49 of file ximpshap.hxx.

Referenced by createFastChildContext(), and endFastElement().

◆ mxShapes

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

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