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, sal_uInt16 nPrfx, const OUString &rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape)
 
virtual ~SdXMLShapeContext () override
 
virtual void StartElement (const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
 StartElement is called after a context has been constructed and before an elements context is parsed. More...
 
virtual void EndElement () override
 EndElement is called before a context will be destructed, but after an elements context has been parsed. More...
 
virtual SvXMLImportContextRef CreateChildContext (sal_uInt16 nPrefix, const OUString &rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
 Create a children element context. More...
 
virtual void processAttribute (sal_uInt16 nPrefix, const OUString &rLocalName, const OUString &rValue)
 
- Public Member Functions inherited from SvXMLShapeContext
 SvXMLShapeContext (SvXMLImport &rImp, sal_uInt16 nPrfx, const OUString &rLName, bool bTemporaryShape)
 
const css::uno::Reference< css::drawing::XShape > & getShape () const
 
void setHyperlink (const OUString &rHyperlink)
 
- Public Member Functions inherited from SvXMLImportContext
bool IsPrefixFilledIn () const
 
sal_uInt16 GetPrefix () const
 
const OUString & GetLocalName () const
 
 SvXMLImportContext (SvXMLImport &rImport, sal_uInt16 nPrfx, const OUString &rLName)
 A contexts constructor does anything that is required if an element starts. More...
 
 SvXMLImportContext (SvXMLImport &rImport)
 
virtual ~SvXMLImportContext ()
 A contexts destructor does anything that is required if an element ends. More...
 
virtual void Characters (const OUString &rChars)
 This method is called for all characters that are contained in the current element. 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
 
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
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) final override
 
virtual void SAL_CALL acquire () final override throw ()
 
virtual void SAL_CALL release () final override throw ()
 
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::XAttributeList > &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::XAttributeList > 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 44 of file ximpshap.hxx.

Constructor & Destructor Documentation

SdXMLShapeContext::SdXMLShapeContext ( SvXMLImport rImport,
sal_uInt16  nPrfx,
const OUString &  rLocalName,
const css::uno::Reference< css::xml::sax::XAttributeList > &  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 170 of file ximpshap.cxx.

Member Function Documentation

void SdXMLShapeContext::addGluePoint ( const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttrList)
protected
void SdXMLShapeContext::AddShape ( css::uno::Reference< css::drawing::XShape > &  xShape)
protected
void SdXMLShapeContext::AddShape ( OUString const &  serviceName)
protected
SvXMLImportContextRef SdXMLShapeContext::CreateChildContext ( sal_uInt16  nPrefix,
const OUString &  rLocalName,
const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttrList 
)
overridevirtual
void SdXMLShapeContext::EndElement ( )
overridevirtual
bool SdXMLShapeContext::isPresentationShape ( ) const
protected
void SdXMLShapeContext::processAttribute ( sal_uInt16  nPrefix,
const OUString &  rLocalName,
const OUString &  rValue 
)
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 805 of file ximpshap.cxx.

References SvXMLUnitConverter::convertMeasureToCore(), sax::Converter::convertPercent(), SvXMLImportContext::GetImport(), SvXMLImport::GetMM100UnitConverter(), xmloff::token::IsXMLToken(), maDrawStyleName, maLayerName, maPosition, maPresentationClass, maShapeId, maShapeName, maSize, maTextStyleName, mbClearDefaultAttributes, mbHaveXmlId, mbIsPlaceholder, mbIsUserTransformed, mbPrintable, mbVisible, mnRelHeight, mnRelWidth, mnStyleFamily, mnTransform, mnZOrder, XMLImageStyle::rValue, SD_PRESENTATION_ID, SdXMLImExTransform2D::SetString(), xmloff::token::XML_ALWAYS, xmloff::token::XML_CLASS, xmloff::token::XML_DISPLAY, xmloff::token::XML_HEIGHT, xmloff::token::XML_ID, xmloff::token::XML_LAYER, xmloff::token::XML_NAME, XML_NAMESPACE_DRAW, XML_NAMESPACE_DRAW_EXT, XML_NAMESPACE_NONE, XML_NAMESPACE_PRESENTATION, XML_NAMESPACE_STYLE, XML_NAMESPACE_SVG, XML_NAMESPACE_XML, 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 611 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::StartElement(), SdXML3DSceneShapeContext::StartElement(), SdXML3DCubeObjectShapeContext::StartElement(), SdXML3DSphereObjectShapeContext::StartElement(), SdXML3DLatheObjectShapeContext::StartElement(), SdXML3DExtrudeObjectShapeContext::StartElement(), SdXMLRectShapeContext::StartElement(), SdXMLLineShapeContext::StartElement(), SdXMLEllipseShapeContext::StartElement(), SdXMLPolygonShapeContext::StartElement(), SdXMLPathShapeContext::StartElement(), SdXMLTextBoxShapeContext::StartElement(), SdXMLControlShapeContext::StartElement(), SdXMLConnectorShapeContext::StartElement(), SdXMLMeasureShapeContext::StartElement(), SdXMLPageShapeContext::StartElement(), SdXMLCaptionShapeContext::StartElement(), SdXMLGraphicObjectShapeContext::StartElement(), SdXMLChartShapeContext::StartElement(), SdXMLObjectShapeContext::StartElement(), SdXMLFloatingFrameShapeContext::StartElement(), SdXMLCustomShapeContext::StartElement(), and SdXMLTableShapeContext::StartElement().

void SdXMLShapeContext::SetThumbnail ( )
protected
void SdXMLShapeContext::SetTransformation ( )
protected
void SdXMLShapeContext::StartElement ( const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttrList)
overridevirtual

StartElement is called after a context has been constructed and before an elements context is parsed.

It may be used for actions that require virtual methods. The default is to do nothing.

Reimplemented from SvXMLImportContext.

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

Definition at line 341 of file ximpshap.cxx.

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

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

Member Data Documentation

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

Definition at line 70 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 58 of file ximpshap.hxx.

Referenced by processAttribute().

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

Definition at line 56 of file ximpshap.hxx.

Referenced by processAttribute(), and SetStyle().

OUString SdXMLShapeContext::maThumbnailURL
protected

Definition at line 59 of file ximpshap.hxx.

Referenced by CreateChildContext(), and SetThumbnail().

basegfx::B2DHomMatrix SdXMLShapeContext::maUsedTransformation
protected

Definition at line 77 of file ximpshap.hxx.

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

bool SdXMLShapeContext::mbClearDefaultAttributes
protected

Definition at line 66 of file ximpshap.hxx.

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

bool SdXMLShapeContext::mbHaveXmlId
protected

Definition at line 81 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 62 of file ximpshap.hxx.

Referenced by CreateChildContext(), and EndElement().

bool SdXMLShapeContext::mbPrintable
protected

Definition at line 80 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 82 of file ximpshap.hxx.

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

bool SdXMLShapeContext::mbVisible
protected

Definition at line 79 of file ximpshap.hxx.

Referenced by processAttribute().

sal_Int16 SdXMLShapeContext::mnRelHeight
protected

Definition at line 75 of file ximpshap.hxx.

Referenced by processAttribute().

sal_Int16 SdXMLShapeContext::mnRelWidth
protected

Definition at line 74 of file ximpshap.hxx.

Referenced by processAttribute().

XmlStyleFamily SdXMLShapeContext::mnStyleFamily
protected

Definition at line 64 of file ximpshap.hxx.

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

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

Definition at line 68 of file ximpshap.hxx.

Referenced by processAttribute().

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

Definition at line 49 of file ximpshap.hxx.

Referenced by CreateChildContext(), and EndElement().

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

Definition at line 52 of file ximpshap.hxx.

Referenced by addGluePoint().

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

Definition at line 53 of file ximpshap.hxx.

Referenced by EndElement().

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

Definition at line 50 of file ximpshap.hxx.

Referenced by CreateChildContext(), and EndElement().

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

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