LibreOffice Module oox (master) 1
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
oox::drawingml::ShapeExport Class Reference

#include <shapes.hxx>

Inheritance diagram for oox::drawingml::ShapeExport:
[legend]
Collaboration diagram for oox::drawingml::ShapeExport:
[legend]

Public Types

typedef std::unordered_map< css::uno::Reference< css::drawing::XShape >, sal_Int32 > ShapeHashMap
 

Public Member Functions

 ShapeExport (sal_Int32 nXmlNamespace, ::sax_fastparser::FSHelperPtr pFS, ShapeHashMap *pShapeMap, ::oox::core::XmlFilterBase *pFB, DocumentType eDocumentType=DOCUMENT_PPTX, DMLTextExport *pTextExport=nullptr, bool bUserShapes=false)
 
virtual ~ShapeExport ()
 
void SetURLTranslator (const std::shared_ptr< URLTransformer > &pTransformer)
 
ShapeExportWritePolyPolygonShape (const css::uno::Reference< css::drawing::XShape > &xShape, bool bClosed)
 
ShapeExportWriteClosedPolyPolygonShape (const css::uno::Reference< css::drawing::XShape > &xShape)
 
ShapeExportWriteConnectorShape (const css::uno::Reference< css::drawing::XShape > &xShape)
 
ShapeExportWriteCustomShape (const css::uno::Reference< css::drawing::XShape > &xShape)
 
ShapeExportWriteEllipseShape (const css::uno::Reference< css::drawing::XShape > &xShape)
 
ShapeExportWriteGraphicObjectShape (const css::uno::Reference< css::drawing::XShape > &xShape)
 
ShapeExportWriteGroupShape (const css::uno::Reference< css::drawing::XShape > &xShape)
 
ShapeExportWriteLineShape (const css::uno::Reference< css::drawing::XShape > &xShape)
 
ShapeExportWriteNonVisualDrawingProperties (const css::uno::Reference< css::drawing::XShape > &xShape, const char *sName)
 
virtual ShapeExportWriteNonVisualProperties (const css::uno::Reference< css::drawing::XShape > &xShape)
 
ShapeExportWriteOpenPolyPolygonShape (const css::uno::Reference< css::drawing::XShape > &xShape)
 
ShapeExportWriteRectangleShape (const css::uno::Reference< css::drawing::XShape > &xShape)
 
ShapeExportWriteShape (const css::uno::Reference< css::drawing::XShape > &xShape)
 Write the DrawingML for a particular shape. More...
 
ShapeExportWriteTextBox (const css::uno::Reference< css::uno::XInterface > &xIface, sal_Int32 nXmlNamespace, bool bWritePropertiesAsLstStyles=false)
 
virtual ShapeExportWriteTextShape (const css::uno::Reference< css::drawing::XShape > &xShape)
 
ShapeExportWriteTableShape (const css::uno::Reference< css::drawing::XShape > &xShape)
 
void WriteMathShape (css::uno::Reference< css::drawing::XShape > const &xShape)
 
ShapeExportWriteOLE2Shape (const css::uno::Reference< css::drawing::XShape > &xShape)
 
virtual ShapeExportWriteUnknownShape (const css::uno::Reference< css::drawing::XShape > &xShape)
 
void WriteTable (const css::uno::Reference< css::drawing::XShape > &rXShape)
 
void WriteTableCellProperties (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet)
 
void WriteBorderLine (const sal_Int32 XML_line, const css::table::BorderLine2 &rBorderLine)
 
void WriteTableCellBorders (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet)
 
sal_Int32 GetNewShapeID (const css::uno::Reference< css::drawing::XShape > &rShape)
 
sal_Int32 GetNewShapeID (const css::uno::Reference< css::drawing::XShape > &rShape, ::oox::core::XmlFilterBase *pFB)
 
sal_Int32 GetShapeID (const css::uno::Reference< css::drawing::XShape > &rShape)
 
- Public Member Functions inherited from oox::drawingml::DrawingML
 DrawingML (::sax_fastparser::FSHelperPtr pFS, ::oox::core::XmlFilterBase *pFB, DocumentType eDocumentType=DOCUMENT_PPTX, DMLTextExport *pTextExport=nullptr)
 
void SetFS (::sax_fastparser::FSHelperPtr pFS)
 
const ::sax_fastparser::FSHelperPtrGetFS () const
 
::oox::core::XmlFilterBaseGetFB ()
 
DocumentType GetDocumentType () const
 
DMLTextExportGetTextExport ()
 The application-specific text exporter callback, if there is one. More...
 
void SetBackgroundDark (bool bIsDark)
 
OUString WriteImage (const Graphic &rGraphic, bool bRelPathToMedia=false)
 If bRelPathToMedia is true add "../" to image folder path while adding the image relationship. More...
 
void WriteColor (::Color nColor, sal_Int32 nAlpha=MAX_PERCENT)
 
void WriteColor (const OUString &sColorSchemeName, const css::uno::Sequence< css::beans::PropertyValue > &aTransformations, sal_Int32 nAlpha=MAX_PERCENT)
 
void WriteColor (const ::Color nColor, const css::uno::Sequence< css::beans::PropertyValue > &aTransformations, sal_Int32 nAlpha=MAX_PERCENT)
 
void WriteColorTransformations (const css::uno::Sequence< css::beans::PropertyValue > &aTransformations, sal_Int32 nAlpha=MAX_PERCENT)
 
void WriteGradientStop (double fOffset, const basegfx::BColor &rColor, const basegfx::BColor &rAlpha)
 
void WriteLineArrow (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet, bool bLineStart)
 
void WriteConnectorConnections (sal_Int32 nStartGlueId, sal_Int32 nEndGlueId, sal_Int32 nStartID, sal_Int32 nEndID)
 
bool WriteCharColor (const css::uno::Reference< css::beans::XPropertySet > &xPropertySet)
 
bool WriteSchemeColor (OUString const &rPropertyName, const css::uno::Reference< css::beans::XPropertySet > &xPropertySet)
 
void WriteSolidFill (::Color nColor, sal_Int32 nAlpha=MAX_PERCENT)
 
void WriteSolidFill (const OUString &sSchemeName, const css::uno::Sequence< css::beans::PropertyValue > &aTransformations, sal_Int32 nAlpha=MAX_PERCENT)
 
void WriteSolidFill (const ::Color nColor, const css::uno::Sequence< css::beans::PropertyValue > &aTransformations, sal_Int32 nAlpha=MAX_PERCENT)
 
void WriteSolidFill (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet)
 
void WriteGradientFill (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet)
 
void WriteGradientFill (const basegfx::BGradient *pColorGradient, sal_Int32 nFixColor, const basegfx::BGradient *pTransparenceGradient, double fFixTransparence=0.0)
 
void WriteGrabBagGradientFill (const css::uno::Sequence< css::beans::PropertyValue > &aGradientStops, const basegfx::BGradient &rGradient)
 
void WriteBlipOrNormalFill (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet, const OUString &rURLPropName, const css::awt::Size &rSize={})
 
void WriteBlipFill (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet, const OUString &sURLPropName, const css::awt::Size &rSize={})
 
void WriteBlipFill (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet, const css::awt::Size &rSize, const OUString &sURLPropName, sal_Int32 nXmlNamespace)
 
void WriteXGraphicBlipFill (css::uno::Reference< css::beans::XPropertySet > const &rXPropSet, css::uno::Reference< css::graphic::XGraphic > const &rxGraphic, sal_Int32 nXmlNamespace, bool bWriteMode, bool bRelPathToMedia=false, css::awt::Size const &rSize={})
 
void WritePattFill (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet)
 
void WritePattFill (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet, const css::drawing::Hatch &rHatch)
 
void WriteGraphicCropProperties (css::uno::Reference< css::beans::XPropertySet > const &rxPropertySet, Size const &rOriginalSize, MapMode const &rMapMode)
 
void WriteSrcRectXGraphic (css::uno::Reference< css::beans::XPropertySet > const &rxPropertySet, css::uno::Reference< css::graphic::XGraphic > const &rxGraphic)
 
void WriteOutline (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet, css::uno::Reference< css::frame::XModel > const &xModel=nullptr)
 
void WriteXGraphicStretch (css::uno::Reference< css::beans::XPropertySet > const &rXPropSet, css::uno::Reference< css::graphic::XGraphic > const &rxGraphic)
 
void WriteXGraphicTile (css::uno::Reference< css::beans::XPropertySet > const &rXPropSet, css::uno::Reference< css::graphic::XGraphic > const &rxGraphic, css::awt::Size const &rSize)
 
void WriteXGraphicCustomPosition (css::uno::Reference< css::beans::XPropertySet > const &rXPropSet, css::uno::Reference< css::graphic::XGraphic > const &rxGraphic, css::awt::Size const &rSize)
 
void WriteLinespacing (const css::style::LineSpacing &rLineSpacing, float fFirstCharHeight)
 
OUString WriteXGraphicBlip (css::uno::Reference< css::beans::XPropertySet > const &rXPropSet, css::uno::Reference< css::graphic::XGraphic > const &rxGraphic, bool bRelPathToMedia)
 
void WriteImageBrightnessContrastTransparence (css::uno::Reference< css::beans::XPropertySet > const &rXPropSet)
 
void WriteXGraphicBlipMode (css::uno::Reference< css::beans::XPropertySet > const &rXPropSet, css::uno::Reference< css::graphic::XGraphic > const &rxGraphic, css::awt::Size const &rSize)
 
void WriteShapeTransformation (const css::uno::Reference< css::drawing::XShape > &rXShape, sal_Int32 nXmlNamespace, bool bFlipH=false, bool bFlipV=false, bool bSuppressRotation=false, bool bSuppressFlipping=false, bool bFlippedBeforeRotation=false)
 
void WriteTransformation (const css::uno::Reference< css::drawing::XShape > &xShape, const tools::Rectangle &rRectangle, sal_Int32 nXmlNamespace, bool bFlipH=false, bool bFlipV=false, sal_Int32 nRotation=0, bool bIsGroupShape=false)
 
void WriteText (const css::uno::Reference< css::uno::XInterface > &rXIface, bool bBodyPr, bool bText=true, sal_Int32 nXmlNamespace=0, bool bWritePropertiesAsLstStyles=false)
 
void WriteLstStyles (const css::uno::Reference< css::text::XTextContent > &rParagraph, bool &rbOverridingCharHeight, sal_Int32 &rnCharHeight, const css::uno::Reference< css::beans::XPropertySet > &rXShapePropSet)
 Populates the lstStyle with the shape's text run and paragraph properties. More...
 
void WriteParagraph (const css::uno::Reference< css::text::XTextContent > &rParagraph, bool &rbOverridingCharHeight, sal_Int32 &rnCharHeight, const css::uno::Reference< css::beans::XPropertySet > &rXShapePropSet)
 
bool WriteParagraphProperties (const css::uno::Reference< css::text::XTextContent > &rParagraph, float fFirstCharHeight, sal_Int32 nElement)
 Writes paragraph properties. More...
 
void WriteParagraphNumbering (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet, float fFirstCharHeight, sal_Int16 nLevel)
 
void WriteParagraphTabStops (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet)
 
void WriteRun (const css::uno::Reference< css::text::XTextRange > &rRun, bool &rbOverridingCharHeight, sal_Int32 &rnCharHeight, const css::uno::Reference< css::beans::XPropertySet > &rXShapePropSet)
 
void WriteRunProperties (const css::uno::Reference< css::beans::XPropertySet > &rRun, bool bIsField, sal_Int32 nElement, bool bCheckDirect, bool &rbOverridingCharHeight, sal_Int32 &rnCharHeight, sal_Int16 nScriptType=css::i18n::ScriptType::LATIN, const css::uno::Reference< css::beans::XPropertySet > &rXShapePropSet={})
 
void WritePresetShape (const OString &pShape, std::vector< std::pair< sal_Int32, sal_Int32 > > &rAvList)
 
void WritePresetShape (const OString &pShape)
 
void WritePresetShape (const OString &pShape, MSO_SPT eShapeType, bool bPredefinedHandlesUsed, const css::beans::PropertyValue &rProp)
 
bool WriteCustomGeometry (const css::uno::Reference< css::drawing::XShape > &rXShape, const SdrObjCustomShape &rSdrObjCustomShape)
 
void WriteEmptyCustomGeometry ()
 
void WritePolyPolygon (const css::uno::Reference< css::drawing::XShape > &rXShape, const bool bClosed)
 
void WriteFill (const css::uno::Reference< css::beans::XPropertySet > &xPropSet, const css::awt::Size &rSize={})
 
void WriteShapeStyle (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet)
 
void WriteShapeEffects (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet)
 
void WriteShapeEffect (std::u16string_view sName, const css::uno::Sequence< css::beans::PropertyValue > &aEffectProps)
 
void Write3DEffects (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet, bool bIsText)
 Populates scene3d tag. More...
 
void WriteArtisticEffect (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet)
 
OString WriteWdpPicture (const OUString &rFileId, const css::uno::Sequence< sal_Int8 > &rPictureData)
 
void WriteDiagram (const css::uno::Reference< css::drawing::XShape > &rXShape, int nDiagramId)
 
void writeDiagramRels (const css::uno::Sequence< css::uno::Sequence< css::uno::Any > > &xRelSeq, const css::uno::Reference< css::io::XOutputStream > &xOutStream, std::u16string_view sGrabBagProperyName, int nDiagramId)
 
sal_Int32 getBulletMarginIndentation (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet, sal_Int16 nLevel, std::u16string_view propName)
 
sax_fastparser::FSHelperPtr CreateOutputStream (const OUString &sFullStream, std::u16string_view sRelativeStream, const css::uno::Reference< css::io::XOutputStream > &xParentRelation, const OUString &sContentType, const OUString &sRelationshipType, OUString *pRelationshipId)
 

Static Public Member Functions

static bool NonEmptyText (const css::uno::Reference< css::uno::XInterface > &xIface)
 
static sal_Int32 GetShapeID (const css::uno::Reference< css::drawing::XShape > &rShape, ShapeHashMap *pShapeMap)
 
- Static Public Member Functions inherited from oox::drawingml::DrawingML
static void WriteFromTo (const css::uno::Reference< css::drawing::XShape > &rXShape, const css::awt::Size &aPageSize, const sax_fastparser::FSHelperPtr &pDrawing)
 
static bool IsGroupShape (const css::uno::Reference< css::drawing::XShape > &rXShape)
 
static void ResetMlCounters ()
 
static sal_Int32 getNewDrawingUniqueId ()
 
static sal_Int32 getNewVMLUniqueId ()
 
static sal_Int32 getNewChartUniqueId ()
 
static sal_Int16 GetScriptType (const OUString &rStr)
 
static sal_Unicode SubstituteBullet (sal_Unicode cBulletId, css::awt::FontDescriptor &rFontDesc)
 
::Color ColorWithIntensity (sal_uInt32 nColor, sal_uInt32 nIntensity)
 
static const char * GetAlignment (css::style::ParagraphAdjust nAlignment)
 

Protected Member Functions

void WriteGraphicObjectShapePart (const css::uno::Reference< css::drawing::XShape > &xShape, const Graphic *pGraphic=nullptr)
 
OUString GetShapeName (const css::uno::Reference< css::drawing::XShape > &xShape)
 
- Protected Member Functions inherited from oox::drawingml::DrawingML
bool GetProperty (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet, const OUString &aName)
 
bool GetPropertyAndState (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet, const css::uno::Reference< css::beans::XPropertyState > &rXPropState, const OUString &aName, css::beans::PropertyState &eState)
 
OUString GetFieldValue (const css::uno::Reference< css::text::XTextRange > &rRun, bool &bIsURLField)
 
void WriteMediaNonVisualProperties (const css::uno::Reference< css::drawing::XShape > &xShape)
 Output the media (including copying a video from vnd.sun.star.Package: to the output if necessary). More...
 
void WriteStyleProperties (sal_Int32 nTokenId, const css::uno::Sequence< css::beans::PropertyValue > &aProperties)
 
const char * GetComponentDir () const
 
const char * GetRelationCompPrefix () const
 
bool IsFontworkShape (const css::uno::Reference< css::beans::XPropertySet > &rXShapePropSet)
 
void WriteGlowEffect (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet)
 
void WriteSoftEdgeEffect (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet)
 
void WriteCustomGeometryPoint (const css::drawing::EnhancedCustomShapeParameterPair &rParamPair, const EnhancedCustomShape2d &rCustomShape2d, const bool bReplaceGeoWidth, const bool bReplaceGeoHeight)
 
bool WriteCustomGeometrySegment (const sal_Int16 eCommand, const sal_Int32 nCount, const css::uno::Sequence< css::drawing::EnhancedCustomShapeParameterPair > &rPairs, sal_Int32 &rnPairIndex, double &rfCurrentX, double &rfCurrentY, bool &rbCurrentValid, const EnhancedCustomShape2d &rCustomShape2d, const bool bReplaceGeoWidth, const bool bReplaceGeoHeight)
 

Protected Attributes

sal_Int32 mnShapeIdMax
 
bool mbUserShapes
 
- Protected Attributes inherited from oox::drawingml::DrawingML
css::uno::Any mAny
 
::sax_fastparser::FSHelperPtr mpFS
 
::oox::core::XmlFilterBasempFB
 
css::uno::Reference< css::drawing::XShape > m_xParent
 If set, this is the parent of the currently handled shape. More...
 
bool mbIsBackgroundDark
 
bool mbPlaceholder
 True when exporting presentation placeholder shape. More...
 

Private Member Functions

css::awt::Size MapSize (const css::awt::Size &) const
 

Private Attributes

int m_nEmbeddedObjects
 
sal_Int32 mnXmlNamespace
 
MapMode maMapModeSrc
 
MapMode maMapModeDest
 
std::shared_ptr< URLTransformermpURLTransformer
 
ShapeHashMap maShapeMap
 
ShapeHashMapmpShapeMap
 

Additional Inherited Members

- Static Protected Member Functions inherited from oox::drawingml::DrawingML
static OUString GetDatetimeTypeFromDate (SvxDateFormat eDate)
 Gets OOXML datetime field type from LO Date format. More...
 
static OUString GetDatetimeTypeFromTime (SvxTimeFormat eTime)
 Gets OOXML datetime field type from LO Time format. More...
 
static OUString GetDatetimeTypeFromDateTime (SvxDateFormat eDate, SvxTimeFormat eTime)
 Gets OOXML datetime field type from combination of LO Time and Date formats. More...
 
static bool EqualGradients (const css::awt::Gradient2 &rGradient1, const css::awt::Gradient2 &rGradient2)
 
- Static Protected Attributes inherited from oox::drawingml::DrawingML
static sal_Int32 mnChartCount = 0
 

Detailed Description

Definition at line 81 of file shapes.hxx.

Member Typedef Documentation

◆ ShapeHashMap

typedef std::unordered_map< css::uno::Reference< css::drawing::XShape>, sal_Int32> oox::drawingml::ShapeExport::ShapeHashMap

Definition at line 87 of file shapes.hxx.

Constructor & Destructor Documentation

◆ ShapeExport()

oox::drawingml::ShapeExport::ShapeExport ( sal_Int32  nXmlNamespace,
::sax_fastparser::FSHelperPtr  pFS,
ShapeHashMap pShapeMap,
::oox::core::XmlFilterBase pFB,
DocumentType  eDocumentType = DOCUMENT_PPTX,
DMLTextExport pTextExport = nullptr,
bool  bUserShapes = false 
)

Definition at line 324 of file shapes.cxx.

References Map100thMM, MapInch, and mpURLTransformer.

◆ ~ShapeExport()

virtual oox::drawingml::ShapeExport::~ShapeExport ( )
inlinevirtual

Definition at line 114 of file shapes.hxx.

Member Function Documentation

◆ GetNewShapeID() [1/2]

sal_Int32 oox::drawingml::ShapeExport::GetNewShapeID ( const css::uno::Reference< css::drawing::XShape > &  rShape)

◆ GetNewShapeID() [2/2]

sal_Int32 oox::drawingml::ShapeExport::GetNewShapeID ( const css::uno::Reference< css::drawing::XShape > &  rShape,
::oox::core::XmlFilterBase pFB 
)

◆ GetShapeID() [1/2]

sal_Int32 oox::drawingml::ShapeExport::GetShapeID ( const css::uno::Reference< css::drawing::XShape > &  rShape)

◆ GetShapeID() [2/2]

static sal_Int32 oox::drawingml::ShapeExport::GetShapeID ( const css::uno::Reference< css::drawing::XShape > &  rShape,
ShapeHashMap pShapeMap 
)
static

◆ GetShapeName()

OUString oox::drawingml::ShapeExport::GetShapeName ( const css::uno::Reference< css::drawing::XShape > &  xShape)
protected

◆ MapSize()

awt::Size oox::drawingml::ShapeExport::MapSize ( const css::awt::Size &  ) const
private

◆ NonEmptyText()

bool oox::drawingml::ShapeExport::NonEmptyText ( const css::uno::Reference< css::uno::XInterface > &  xIface)
static

Definition at line 361 of file shapes.cxx.

References oox::drawingml::IsNonEmptySimpleText(), and SAL_INFO.

Referenced by WriteTextBox().

◆ SetURLTranslator()

void oox::drawingml::ShapeExport::SetURLTranslator ( const std::shared_ptr< URLTransformer > &  pTransformer)

Definition at line 337 of file shapes.cxx.

References mpURLTransformer.

◆ WriteBorderLine()

void oox::drawingml::ShapeExport::WriteBorderLine ( const sal_Int32  XML_line,
const css::table::BorderLine2 &  rBorderLine 
)

◆ WriteClosedPolyPolygonShape()

ShapeExport & oox::drawingml::ShapeExport::WriteClosedPolyPolygonShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)

Definition at line 478 of file shapes.cxx.

References WritePolyPolygonShape().

Referenced by oox::drawingml::lcl_GetConverters().

◆ WriteConnectorShape()

ShapeExport & oox::drawingml::ShapeExport::WriteConnectorShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)

◆ WriteCustomShape()

ShapeExport & oox::drawingml::ShapeExport::WriteCustomShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)

Definition at line 747 of file shapes.cxx.

References oox::drawingml::AddExtLst(), oox::core::XmlFilterBase::addRelation(), oox::drawingml::DOCUMENT_DOCX, FSNS(), EscherPropertyContainer::GetCustomShapeType(), oox::drawingml::DrawingML::GetDocumentType(), oox::drawingml::DrawingML::GetFB(), oox::drawingml::DrawingML::GetFS(), GetNewShapeID(), msfilter::util::GetOOXMLPresetGeometry(), oox::drawingml::DrawingML::GetProperty(), oox::getRelationship(), SdrObject::getSdrObjectFromXShape(), GetShapeID(), GetShapeName(), oox::HYPERLINK, namespaces::i, EscherPropertyContainer::IsDefaultObject(), oox::drawingml::URLTransformer::isExternalURL(), oox::drawingml::DrawingML::IsFontworkShape(), oox::drawingml::lcl_AnalyzeHandles(), oox::drawingml::lcl_AppendAdjustmentValue(), oox::drawingml::lcl_GetTarget(), oox::drawingml::lcl_IsOnAllowlist(), oox::drawingml::lcl_IsOnDenylist(), oox::drawingml::lcl_NormalizeAngle(), oox::drawingml::DrawingML::m_xParent, oox::drawingml::DrawingML::mAny, mbUserShapes, mnXmlNamespace, oox::drawingml::DrawingML::mpFB, oox::drawingml::DrawingML::mpFS, mpURLTransformer, mso_sptBevel, mso_sptBlockArc, mso_sptBorderCallout1, mso_sptBorderCallout2, mso_sptBracePair, mso_sptBracketPair, mso_sptCan, mso_sptCloudCallout, mso_sptCube, mso_sptDonut, mso_sptFoldedCorner, mso_sptHorizontalScroll, mso_sptMoon, mso_sptNoSmoking, mso_sptSmileyFace, mso_sptSun, mso_sptVerticalScroll, mso_sptWedgeEllipseCallout, mso_sptWedgeRectCallout, mso_sptWedgeRRectCallout, SAL_INFO, oox::SLIDE, sax_fastparser::UseIf(), oox::drawingml::DrawingML::Write3DEffects(), oox::drawingml::DrawingML::WriteCustomGeometry(), oox::drawingml::DrawingML::WriteEmptyCustomGeometry(), oox::drawingml::DrawingML::WriteFill(), WriteNonVisualProperties(), oox::drawingml::DrawingML::WriteOutline(), oox::drawingml::DrawingML::WritePresetShape(), oox::drawingml::DMLPresetShapeExporter::WriteShape(), oox::drawingml::DrawingML::WriteShapeEffects(), oox::drawingml::DrawingML::WriteShapeStyle(), oox::drawingml::DrawingML::WriteShapeTransformation(), WriteTextBox(), and WriteTextShape().

Referenced by oox::drawingml::lcl_GetConverters().

◆ WriteEllipseShape()

ShapeExport & oox::drawingml::ShapeExport::WriteEllipseShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)

◆ WriteGraphicObjectShape()

ShapeExport & oox::drawingml::ShapeExport::WriteGraphicObjectShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)

Definition at line 1266 of file shapes.cxx.

References WriteGraphicObjectShapePart().

Referenced by oox::drawingml::lcl_GetConverters().

◆ WriteGraphicObjectShapePart()

void oox::drawingml::ShapeExport::WriteGraphicObjectShapePart ( const css::uno::Reference< css::drawing::XShape > &  xShape,
const Graphic pGraphic = nullptr 
)
protected

◆ WriteGroupShape()

ShapeExport & oox::drawingml::ShapeExport::WriteGroupShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)

◆ WriteLineShape()

ShapeExport & oox::drawingml::ShapeExport::WriteLineShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)

◆ WriteMathShape()

void oox::drawingml::ShapeExport::WriteMathShape ( css::uno::Reference< css::drawing::XShape > const &  xShape)

◆ WriteNonVisualDrawingProperties()

ShapeExport & oox::drawingml::ShapeExport::WriteNonVisualDrawingProperties ( const css::uno::Reference< css::drawing::XShape > &  xShape,
const char *  sName 
)

◆ WriteNonVisualProperties()

ShapeExport & oox::drawingml::ShapeExport::WriteNonVisualProperties ( const css::uno::Reference< css::drawing::XShape > &  xShape)
virtual

◆ WriteOLE2Shape()

ShapeExport & oox::drawingml::ShapeExport::WriteOLE2Shape ( const css::uno::Reference< css::drawing::XShape > &  xShape)

◆ WriteOpenPolyPolygonShape()

ShapeExport & oox::drawingml::ShapeExport::WriteOpenPolyPolygonShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)

Definition at line 483 of file shapes.cxx.

References WritePolyPolygonShape().

Referenced by oox::drawingml::lcl_GetConverters().

◆ WritePolyPolygonShape()

ShapeExport & oox::drawingml::ShapeExport::WritePolyPolygonShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
bool  bClosed 
)

◆ WriteRectangleShape()

ShapeExport & oox::drawingml::ShapeExport::WriteRectangleShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)

◆ WriteShape()

ShapeExport & oox::drawingml::ShapeExport::WriteShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)

Write the DrawingML for a particular shape.

This is the member function you want. It performs the type lookup and invokes the appropriate corresponding Write*() method for the specific type.

To write an XShape, XShape::getShapeType() is called to determine the shape type, and the corresponding method in this table is invoked:

Shape TypeMethod
com.sun.star.drawing.ClosedBezierShape ShapeExport::WriteClosedPolyPolygonShape
com.sun.star.drawing.CustomShape ShapeExport::WriteCustomShape
com.sun.star.drawing.EllipseShape ShapeExport::WriteEllipseShape
com.sun.star.drawing.GraphicObjectShape ShapeExport::WriteGraphicObjectShape
com.sun.star.drawing.LineShape ShapeExport::WriteLineShape
com.sun.star.drawing.OpenBezierShape ShapeExport::WriteOpenPolyPolygonShape
com.sun.star.drawing.PolyPolygonShape ShapeExport::WriteClosedPolyPolygonShape
com.sun.star.drawing.PolyLineShape ShapeExport::WriteOpenPolyPolygonShape
com.sun.star.drawing.RectangleShape ShapeExport::WriteRectangleShape
com.sun.star.drawing.TableShape ShapeExport::WriteTableShape
com.sun.star.drawing.TextShape ShapeExport::WriteTextShape
com.sun.star.presentation.DateTimeShape ShapeExport::WriteTextShape
com.sun.star.presentation.FooterShape ShapeExport::WriteTextShape
com.sun.star.presentation.HeaderShape ShapeExport::WriteTextShape
com.sun.star.presentation.NotesShape ShapeExport::WriteTextShape
com.sun.star.presentation.OutlinerShape ShapeExport::WriteTextShape
com.sun.star.presentation.SlideNumberShapeShapeExport::WriteTextShape
com.sun.star.presentation.TitleTextShape ShapeExport::WriteTextShape

If the shape type is not recognized, then ShapeExport::WriteUnknownShape is called.

Parameters
xShapeThe shape to export as DrawingML.
Returns
*this

Definition at line 2075 of file shapes.cxx.

References oox::drawingml::DOCUMENT_PPTX, end, oox::drawingml::DrawingML::GetDocumentType(), oox::drawingml::lcl_GetConverters(), oox::drawingml::DrawingML::mbPlaceholder, SAL_INFO, and WriteUnknownShape().

Referenced by oox::drawingml::ChartExport::exportAdditionalShapes(), and WriteGroupShape().

◆ WriteTable()

void oox::drawingml::ShapeExport::WriteTable ( const css::uno::Reference< css::drawing::XShape > &  rXShape)

◆ WriteTableCellBorders()

void oox::drawingml::ShapeExport::WriteTableCellBorders ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet)

Definition at line 2438 of file shapes.cxx.

References WriteBorderLine().

Referenced by WriteTableCellProperties().

◆ WriteTableCellProperties()

void oox::drawingml::ShapeExport::WriteTableCellProperties ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet)

◆ WriteTableShape()

ShapeExport & oox::drawingml::ShapeExport::WriteTableShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)

◆ WriteTextBox()

ShapeExport & oox::drawingml::ShapeExport::WriteTextBox ( const css::uno::Reference< css::uno::XInterface > &  xIface,
sal_Int32  nXmlNamespace,
bool  bWritePropertiesAsLstStyles = false 
)

◆ WriteTextShape()

ShapeExport & oox::drawingml::ShapeExport::WriteTextShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)
virtual

◆ WriteUnknownShape()

ShapeExport & oox::drawingml::ShapeExport::WriteUnknownShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)
virtual

Definition at line 2830 of file shapes.cxx.

Referenced by WriteShape().

Member Data Documentation

◆ m_nEmbeddedObjects

int oox::drawingml::ShapeExport::m_nEmbeddedObjects
private

Definition at line 84 of file shapes.hxx.

Referenced by WriteOLE2Shape().

◆ maMapModeDest

MapMode oox::drawingml::ShapeExport::maMapModeDest
private

Definition at line 99 of file shapes.hxx.

Referenced by MapSize().

◆ maMapModeSrc

MapMode oox::drawingml::ShapeExport::maMapModeSrc
private

Definition at line 99 of file shapes.hxx.

Referenced by MapSize().

◆ maShapeMap

ShapeHashMap oox::drawingml::ShapeExport::maShapeMap
private

Definition at line 104 of file shapes.hxx.

◆ mbUserShapes

bool oox::drawingml::ShapeExport::mbUserShapes
protected

◆ mnShapeIdMax

sal_Int32 oox::drawingml::ShapeExport::mnShapeIdMax
protected

Definition at line 90 of file shapes.hxx.

◆ mnXmlNamespace

sal_Int32 oox::drawingml::ShapeExport::mnXmlNamespace
private

◆ mpShapeMap

ShapeHashMap* oox::drawingml::ShapeExport::mpShapeMap
private

Definition at line 105 of file shapes.hxx.

◆ mpURLTransformer

std::shared_ptr<URLTransformer> oox::drawingml::ShapeExport::mpURLTransformer
private

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