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, OUString *pFileName=nullptr)
 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 (sal_uInt16 nStop,::Color nColor, sal_Int32 nAlpha=MAX_PERCENT)
 
void WriteLineArrow (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet, bool bLineStart)
 
void WriteConnectorConnections (EscherConnectorListEntry &rConnectorEntry, sal_Int32 nStartID, sal_Int32 nEndID)
 
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 (css::awt::Gradient rGradient, css::awt::Gradient rTransparenceGradient, const css::uno::Reference< css::beans::XPropertySet > &rXPropSet=css::uno::Reference< css::beans::XPropertySet >())
 
void WriteGrabBagGradientFill (const css::uno::Sequence< css::beans::PropertyValue > &aGradientStops, css::awt::Gradient rGradient)
 
void WriteBlipOrNormalFill (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet, const OUString &rURLPropName)
 
void WriteBlipFill (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet, const OUString &sURLPropName)
 
void WriteBlipFill (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet, 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)
 
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 WriteLinespacing (const css::style::LineSpacing &rLineSpacing)
 
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)
 
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 char *pShape, std::vector< std::pair< sal_Int32, sal_Int32 >> &rAvList)
 
void WritePresetShape (const char *pShape)
 
void WritePresetShape (const char *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 WriteCustomGeometryPoint (const css::drawing::EnhancedCustomShapeParameterPair &rParamPair, const SdrObjCustomShape &rSdrObjCustomShape)
 
void WritePolyPolygon (const css::uno::Reference< css::drawing::XShape > &rXShape, const tools::PolyPolygon &rPolyPolygon, const bool bClosed)
 
void WritePolyPolygon (const css::uno::Reference< css::drawing::XShape > &rXShape, const bool bClosed)
 
void WriteFill (const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
 
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 WriteShape3DEffects (const css::uno::Reference< css::beans::XPropertySet > &rXPropSet)
 
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 char *sContentType, const char *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 sal_Int32 GetCustomGeometryPointValue (const css::drawing::EnhancedCustomShapeParameter &rParam, const SdrObjCustomShape &rSdrObjCustomShape)
 
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 bool IsDiagram (const css::uno::Reference< css::drawing::XShape > &rXShape)
 
static void ResetCounters ()
 
static void ResetMlCounters ()
 
static sal_Int32 getNewDrawingUniqueId ()
 
static sal_Int32 getNewVMLUniqueId ()
 
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)
 
bool HasEnhancedCustomShapeSegmentCommand (const css::uno::Reference< css::drawing::XShape > &rXShape, const sal_Int16 nCommand)
 

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
 

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 (css::awt::Gradient aGradient1, css::awt::Gradient aGradient2)
 

Detailed Description

Definition at line 81 of file shapes.hxx.

Member Typedef Documentation

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

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 329 of file shapes.cxx.

References Map100thMM, MapInch, maShapeMap, mpURLTransformer, and Point.

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

Definition at line 114 of file shapes.hxx.

Member Function Documentation

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

Referenced by WriteConnectorShape().

static sal_Int32 oox::drawingml::ShapeExport::GetShapeID ( const css::uno::Reference< css::drawing::XShape > &  rShape,
ShapeHashMap pShapeMap 
)
static
OUString oox::drawingml::ShapeExport::GetShapeName ( const css::uno::Reference< css::drawing::XShape > &  xShape)
protected
awt::Size oox::drawingml::ShapeExport::MapSize ( const css::awt::Size &  ) const
private
bool oox::drawingml::ShapeExport::NonEmptyText ( const css::uno::Reference< css::uno::XInterface > &  xIface)
static

Definition at line 366 of file shapes.cxx.

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

Referenced by WriteTextBox().

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

Definition at line 342 of file shapes.cxx.

References mpURLTransformer.

void oox::drawingml::ShapeExport::WriteBorderLine ( const sal_Int32  XML_line,
const css::table::BorderLine2 &  rBorderLine 
)
ShapeExport & oox::drawingml::ShapeExport::WriteClosedPolyPolygonShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)

Definition at line 463 of file shapes.cxx.

References WritePolyPolygonShape().

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

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

Definition at line 729 of file shapes.cxx.

References oox::core::XmlFilterBase::addRelation(), oox::drawingml::DOCUMENT_DOCX, FSNS(), GETA, EscherPropertyContainer::GetCustomShapeType(), oox::drawingml::DrawingML::GetDocumentType(), oox::drawingml::DrawingML::GetFB(), oox::drawingml::DrawingML::GetFS(), SdrObjCustomShape::GetLineGeometry(), GetNewShapeID(), msfilter::util::GetOOXMLPresetGeometry(), oox::getRelationship(), SdrObject::getSdrObjectFromXShape(), 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::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, OnClick, Point, SAL_INFO, oox::SLIDE, URL, sax_fastparser::UseIf(), Visible, oox::drawingml::DrawingML::WriteCustomGeometry(), oox::drawingml::DrawingML::WriteFill(), WriteNonVisualProperties(), oox::drawingml::DrawingML::WriteOutline(), oox::drawingml::DrawingML::WritePolyPolygon(), oox::drawingml::DrawingML::WritePresetShape(), oox::drawingml::DMLPresetShapeExporter::WriteShape(), oox::drawingml::DrawingML::WriteShape3DEffects(), oox::drawingml::DrawingML::WriteShapeEffects(), oox::drawingml::DrawingML::WriteShapeStyle(), oox::drawingml::DrawingML::WriteShapeTransformation(), WriteTextBox(), and WriteTextShape().

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

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

Definition at line 1229 of file shapes.cxx.

References WriteGraphicObjectShapePart().

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

void oox::drawingml::ShapeExport::WriteGraphicObjectShapePart ( const css::uno::Reference< css::drawing::XShape > &  xShape,
const Graphic pGraphic = nullptr 
)
protected
ShapeExport & oox::drawingml::ShapeExport::WriteGroupShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)
ShapeExport & oox::drawingml::ShapeExport::WriteLineShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)
void oox::drawingml::ShapeExport::WriteMathShape ( css::uno::Reference< css::drawing::XShape > const &  xShape)
ShapeExport & oox::drawingml::ShapeExport::WriteNonVisualDrawingProperties ( const css::uno::Reference< css::drawing::XShape > &  xShape,
const char *  sName 
)

Definition at line 1595 of file shapes.cxx.

References oox::drawingml::DrawingML::GetFS(), GetNewShapeID(), and mnXmlNamespace.

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

Definition at line 468 of file shapes.cxx.

References WritePolyPolygonShape().

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

ShapeExport & oox::drawingml::ShapeExport::WritePolyPolygonShape ( const css::uno::Reference< css::drawing::XShape > &  xShape,
bool  bClosed 
)
ShapeExport & oox::drawingml::ShapeExport::WriteRectangleShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)
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 1704 of file shapes.cxx.

References oox::drawingml::lcl_GetConverters(), SAL_INFO, and WriteUnknownShape().

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

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

Definition at line 1995 of file shapes.cxx.

References WriteBorderLine().

Referenced by WriteTableCellProperties().

void oox::drawingml::ShapeExport::WriteTableCellProperties ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet)
ShapeExport & oox::drawingml::ShapeExport::WriteTableShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)
ShapeExport & oox::drawingml::ShapeExport::WriteTextBox ( const css::uno::Reference< css::uno::XInterface > &  xIface,
sal_Int32  nXmlNamespace,
bool  bWritePropertiesAsLstStyles = false 
)
ShapeExport & oox::drawingml::ShapeExport::WriteTextShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)
virtual
ShapeExport & oox::drawingml::ShapeExport::WriteUnknownShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)
virtual

Definition at line 2344 of file shapes.cxx.

Referenced by WriteShape().

Member Data Documentation

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

Definition at line 84 of file shapes.hxx.

Referenced by WriteOLE2Shape().

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

Definition at line 99 of file shapes.hxx.

Referenced by MapSize().

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

Definition at line 99 of file shapes.hxx.

Referenced by MapSize().

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

Definition at line 104 of file shapes.hxx.

bool oox::drawingml::ShapeExport::mbUserShapes
protected
sal_Int32 oox::drawingml::ShapeExport::mnShapeIdMax
protected

Definition at line 90 of file shapes.hxx.

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

Definition at line 105 of file shapes.hxx.

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

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