LibreOffice Module oox (master) 1
|
#include <shapes.hxx>
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) |
ShapeExport & | WritePolyPolygonShape (const css::uno::Reference< css::drawing::XShape > &xShape, bool bClosed) |
ShapeExport & | WriteClosedPolyPolygonShape (const css::uno::Reference< css::drawing::XShape > &xShape) |
ShapeExport & | WriteConnectorShape (const css::uno::Reference< css::drawing::XShape > &xShape) |
ShapeExport & | WriteCustomShape (const css::uno::Reference< css::drawing::XShape > &xShape) |
ShapeExport & | WriteEllipseShape (const css::uno::Reference< css::drawing::XShape > &xShape) |
ShapeExport & | WriteGraphicObjectShape (const css::uno::Reference< css::drawing::XShape > &xShape) |
ShapeExport & | WriteGroupShape (const css::uno::Reference< css::drawing::XShape > &xShape) |
ShapeExport & | WriteLineShape (const css::uno::Reference< css::drawing::XShape > &xShape) |
ShapeExport & | WriteNonVisualDrawingProperties (const css::uno::Reference< css::drawing::XShape > &xShape, const char *sName) |
virtual ShapeExport & | WriteNonVisualProperties (const css::uno::Reference< css::drawing::XShape > &xShape) |
ShapeExport & | WriteOpenPolyPolygonShape (const css::uno::Reference< css::drawing::XShape > &xShape) |
ShapeExport & | WriteRectangleShape (const css::uno::Reference< css::drawing::XShape > &xShape) |
ShapeExport & | WriteShape (const css::uno::Reference< css::drawing::XShape > &xShape) |
Write the DrawingML for a particular shape. More... | |
ShapeExport & | WriteTextBox (const css::uno::Reference< css::uno::XInterface > &xIface, sal_Int32 nXmlNamespace, bool bWritePropertiesAsLstStyles=false) |
virtual ShapeExport & | WriteTextShape (const css::uno::Reference< css::drawing::XShape > &xShape) |
ShapeExport & | WriteTableShape (const css::uno::Reference< css::drawing::XShape > &xShape) |
void | WriteMathShape (css::uno::Reference< css::drawing::XShape > const &xShape) |
ShapeExport & | WriteOLE2Shape (const css::uno::Reference< css::drawing::XShape > &xShape) |
virtual ShapeExport & | WriteUnknownShape (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::FSHelperPtr & | GetFS () const |
::oox::core::XmlFilterBase * | GetFB () |
DocumentType | GetDocumentType () const |
DMLTextExport * | GetTextExport () |
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::XmlFilterBase * | mpFB |
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< URLTransformer > | mpURLTransformer |
ShapeHashMap | maShapeMap |
ShapeHashMap * | mpShapeMap |
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 |
Definition at line 81 of file shapes.hxx.
typedef std::unordered_map< css::uno::Reference< css::drawing::XShape>, sal_Int32> oox::drawingml::ShapeExport::ShapeHashMap |
Definition at line 87 of file shapes.hxx.
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.
|
inlinevirtual |
Definition at line 114 of file shapes.hxx.
sal_Int32 oox::drawingml::ShapeExport::GetNewShapeID | ( | const css::uno::Reference< css::drawing::XShape > & | rShape | ) |
Referenced by WriteConnectorShape(), WriteCustomShape(), WriteEllipseShape(), WriteGraphicObjectShapePart(), WriteGroupShape(), WriteLineShape(), WriteMathShape(), WriteNonVisualDrawingProperties(), WriteOLE2Shape(), WritePolyPolygonShape(), WriteRectangleShape(), WriteTableShape(), and WriteTextShape().
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(), and WriteCustomShape().
|
static |
|
protected |
Definition at line 2871 of file shapes.cxx.
References oox::drawingml::DrawingML::GetProperty(), oox::drawingml::DrawingML::mAny, and sName.
Referenced by WriteConnectorShape(), WriteCustomShape(), WriteEllipseShape(), WriteGraphicObjectShapePart(), WriteGroupShape(), WriteLineShape(), WriteMathShape(), WriteOLE2Shape(), WritePolyPolygonShape(), WriteRectangleShape(), WriteTableShape(), and WriteTextShape().
|
private |
Definition at line 342 of file shapes.cxx.
References Size::AdjustHeight(), Size::AdjustWidth(), Size::Height(), OutputDevice::LogicToLogic(), maMapModeDest, maMapModeSrc, and Size::Width().
Referenced by WritePolyPolygonShape(), and WriteRectangleShape().
|
static |
Definition at line 361 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 337 of file shapes.cxx.
References mpURLTransformer.
void oox::drawingml::ShapeExport::WriteBorderLine | ( | const sal_Int32 | XML_line, |
const css::table::BorderLine2 & | rBorderLine | ||
) |
Definition at line 2390 of file shapes.cxx.
References COL_AUTO(), ColorTransparency, oox::drawingml::convertHmmToEmu(), oox::drawingml::DrawingML::mAny, oox::drawingml::DrawingML::mpFS, nBorderWidth, and oox::drawingml::DrawingML::WriteSolidFill().
Referenced by WriteTableCellBorders().
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().
ShapeExport & oox::drawingml::ShapeExport::WriteConnectorShape | ( | const css::uno::Reference< css::drawing::XShape > & | xShape | ) |
Definition at line 1735 of file shapes.cxx.
References oox::drawingml::AddExtLst(), center, tools::PolyPolygon::Count(), oox::drawingml::DOCUMENT_DOCX, oox::drawingml::DOCUMENT_PPTX, oox::drawingml::DrawingML::GetDocumentType(), oox::drawingml::DrawingML::GetFS(), GetNewShapeID(), tools::PolyPolygon::GetObject(), tools::Rectangle::getOpenHeight(), tools::Rectangle::getOpenWidth(), EscherPropertyContainer::GetPolyPolygon(), oox::drawingml::DrawingML::GetProperty(), oox::drawingml::DrawingML::GetPropertyAndState(), GetShapeID(), GetShapeName(), oox::drawingml::lcl_FlipHFlipV(), oox::drawingml::lcl_GetAngle(), oox::drawingml::lcl_GetConnectorAdjustValue(), oox::drawingml::lcl_GetGluePointId(), oox::drawingml::lcl_Rotate(), oox::drawingml::DrawingML::m_xParent, oox::drawingml::DrawingML::mAny, mbUserShapes, mnXmlNamespace, SAL_INFO, tools::Rectangle::setHeight(), tools::Rectangle::SetLeft(), tools::Rectangle::SetTop(), tools::Rectangle::setWidth(), oox::drawingml::DrawingML::WriteConnectorConnections(), oox::drawingml::DrawingML::WriteOutline(), oox::drawingml::DrawingML::WritePresetShape(), WriteTextBox(), and oox::drawingml::DrawingML::WriteTransformation().
Referenced by oox::drawingml::lcl_GetConverters().
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().
ShapeExport & oox::drawingml::ShapeExport::WriteEllipseShape | ( | const css::uno::Reference< css::drawing::XShape > & | xShape | ) |
Definition at line 1169 of file shapes.cxx.
References oox::drawingml::AddExtLst(), oox::drawingml::DOCUMENT_DOCX, FillStyle, oox::drawingml::DrawingML::GetDocumentType(), oox::drawingml::DrawingML::GetFS(), GetNewShapeID(), GetShapeName(), oox::drawingml::lcl_AppendAdjustmentValue(), oox::drawingml::lcl_CircleAngle2CustomShapeEllipseAngleOOX(), mbUserShapes, mnXmlNamespace, SAL_INFO, oox::drawingml::DrawingML::WriteFill(), WriteNonVisualProperties(), oox::drawingml::DrawingML::WriteOutline(), oox::drawingml::DrawingML::WritePresetShape(), oox::drawingml::DrawingML::WriteShapeTransformation(), and WriteTextBox().
Referenced by oox::drawingml::lcl_GetConverters().
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().
|
protected |
Definition at line 1273 of file shapes.cxx.
References oox::drawingml::AddExtLst(), oox::core::XmlFilterBase::addRelation(), oox::drawingml::DOCUMENT_DOCX, oox::drawingml::DOCUMENT_PPTX, FSNS(), oox::drawingml::DrawingML::GetDocumentType(), oox::drawingml::DrawingML::GetFB(), oox::drawingml::DrawingML::GetFS(), oox::core::XmlFilterBase::getNamespaceURL(), GetNewShapeID(), oox::drawingml::DrawingML::GetProperty(), oox::getRelationship(), GetShapeName(), Graphic::GetXGraphic(), oox::HYPERLINK, oox::drawingml::URLTransformer::isExternalURL(), oox::drawingml::IsNonEmptySimpleText(), oox::drawingml::lcl_GetTarget(), oox::drawingml::DrawingML::mAny, mbUserShapes, mnXmlNamespace, oox::drawingml::DrawingML::mpFB, oox::drawingml::DrawingML::mpFS, mpURLTransformer, SAL_INFO, oox::SLIDE, sax_fastparser::UseIf(), oox::drawingml::DrawingML::Write3DEffects(), oox::drawingml::DrawingML::WriteMediaNonVisualProperties(), WriteNonVisualProperties(), oox::drawingml::DrawingML::WriteOutline(), oox::drawingml::DrawingML::WritePresetShape(), oox::drawingml::DrawingML::WriteShapeEffects(), oox::drawingml::DrawingML::WriteShapeTransformation(), oox::drawingml::DrawingML::WriteSrcRectXGraphic(), WriteTextShape(), and oox::drawingml::DrawingML::WriteXGraphicBlip().
Referenced by WriteGraphicObjectShape(), and WriteOLE2Shape().
ShapeExport & oox::drawingml::ShapeExport::WriteGroupShape | ( | const css::uno::Reference< css::drawing::XShape > & | xShape | ) |
Definition at line 488 of file shapes.cxx.
References oox::drawingml::AddExtLst(), oox::drawingml::DOCUMENT_DOCX, oox::drawingml::DrawingML::GetDocumentType(), oox::drawingml::DrawingML::GetFS(), GetNewShapeID(), GetShapeName(), namespaces::i, oox::drawingml::IsNonEmptySimpleText(), oox::drawingml::DrawingML::m_xParent, mbUserShapes, mnXmlNamespace, WriteNonVisualProperties(), WriteShape(), and oox::drawingml::DrawingML::WriteShapeTransformation().
Referenced by oox::drawingml::lcl_GetConverters().
ShapeExport & oox::drawingml::ShapeExport::WriteLineShape | ( | const css::uno::Reference< css::drawing::XShape > & | xShape | ) |
Definition at line 1894 of file shapes.cxx.
References oox::drawingml::AddExtLst(), tools::PolyPolygon::Count(), oox::drawingml::DOCUMENT_DOCX, oox::drawingml::DrawingML::GetDocumentType(), oox::drawingml::DrawingML::GetFS(), GetNewShapeID(), EscherPropertyContainer::GetPolyPolygon(), GetShapeName(), mbUserShapes, mnXmlNamespace, SAL_INFO, WriteNonVisualProperties(), oox::drawingml::DrawingML::WriteOutline(), oox::drawingml::DrawingML::WritePresetShape(), oox::drawingml::DrawingML::WriteShapeStyle(), oox::drawingml::DrawingML::WriteShapeTransformation(), and WriteTextBox().
Referenced by oox::drawingml::lcl_GetConverters().
void oox::drawingml::ShapeExport::WriteMathShape | ( | css::uno::Reference< css::drawing::XShape > const & | xShape | ) |
Definition at line 2545 of file shapes.cxx.
References oox::drawingml::AddExtLst(), oox::drawingml::DOCUMENT_DOCX, oox::drawingml::DOCUMENT_XLSX, FSNS(), oox::drawingml::DrawingML::GetDocumentType(), oox::drawingml::DrawingML::GetFB(), oox::drawingml::DrawingML::GetFS(), oox::core::XmlFilterBase::getNamespaceURL(), GetNewShapeID(), GetShapeName(), mnXmlNamespace, oox::drawingml::DrawingML::mpFB, oox::drawingml::DrawingML::mpFS, SAL_WARN_IF, oox::drawingml::DrawingML::WritePresetShape(), and oox::drawingml::DrawingML::WriteShapeTransformation().
Referenced by WriteOLE2Shape().
ShapeExport & oox::drawingml::ShapeExport::WriteNonVisualDrawingProperties | ( | const css::uno::Reference< css::drawing::XShape > & | xShape, |
const char * | sName | ||
) |
Definition at line 1953 of file shapes.cxx.
References oox::drawingml::AddExtLst(), oox::drawingml::DrawingML::GetFS(), GetNewShapeID(), mnXmlNamespace, and pName.
|
virtual |
Definition at line 1967 of file shapes.cxx.
Referenced by WriteCustomShape(), WriteEllipseShape(), WriteGraphicObjectShapePart(), WriteGroupShape(), WriteLineShape(), WritePolyPolygonShape(), WriteRectangleShape(), and WriteTextShape().
ShapeExport & oox::drawingml::ShapeExport::WriteOLE2Shape | ( | const css::uno::Reference< css::drawing::XShape > & | xShape | ) |
Definition at line 2598 of file shapes.cxx.
References aClassID, oox::drawingml::AddExtLst(), oox::core::XmlFilterBase::addRelation(), oox::CHART, comphelper::OStorageHelper::CopyInputToOutput(), oox::drawingml::DOCUMENT_PPTX, oox::core::ECMA_376_1ST_EDITION, eType, FSNS(), oox::core::FilterBase::getComponentContext(), oox::drawingml::DrawingML::GetComponentDir(), oox::drawingml::DrawingML::GetDocumentType(), oox::drawingml::DrawingML::GetFB(), oox::drawingml::DrawingML::GetFS(), GetNewShapeID(), oox::GetOLEObjectStream(), oox::drawingml::DrawingML::GetRelationCompPrefix(), oox::getRelationship(), SdrObject::getSdrObjectFromXShape(), GetShapeName(), oox::core::FilterBase::getVersion(), SotExchange::IsChart(), SotExchange::IsMath(), m_nEmbeddedObjects, MATH, oox::drawingml::DrawingML::mnChartCount, mnXmlNamespace, oox::drawingml::DrawingML::mpFB, oox::drawingml::DrawingML::mpFS, Name, oox::OLEOBJECT, oox::core::XmlFilterBase::openFragmentStream(), OTHER, OUStringToOString(), properties::props, SAL_WARN, sMediaType, sSuffix, TOOLS_WARN_EXCEPTION, sax_fastparser::UseIf(), oox::drawingml::ChartExport::WriteChartObj(), WriteGraphicObjectShapePart(), WriteMathShape(), and oox::drawingml::DrawingML::WriteShapeTransformation().
Referenced by oox::drawingml::lcl_GetConverters().
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().
ShapeExport & oox::drawingml::ShapeExport::WritePolyPolygonShape | ( | const css::uno::Reference< css::drawing::XShape > & | xShape, |
bool | bClosed | ||
) |
Definition at line 415 of file shapes.cxx.
References oox::drawingml::AddExtLst(), tools::PolyPolygon::Count(), oox::drawingml::DOCUMENT_DOCX, oox::drawingml::DrawingML::GetDocumentType(), oox::drawingml::DrawingML::GetFS(), tools::Rectangle::GetHeight(), GetNewShapeID(), EscherPropertyContainer::GetPolyPolygon(), GetShapeName(), tools::Rectangle::GetWidth(), oox::drawingml::DrawingML::m_xParent, MapSize(), mbUserShapes, mnXmlNamespace, SAL_INFO, size, oox::drawingml::DrawingML::WriteFill(), WriteNonVisualProperties(), oox::drawingml::DrawingML::WriteOutline(), oox::drawingml::DrawingML::WritePolyPolygon(), WriteTextBox(), and oox::drawingml::DrawingML::WriteTransformation().
Referenced by WriteClosedPolyPolygonShape(), and WriteOpenPolyPolygonShape().
ShapeExport & oox::drawingml::ShapeExport::WriteRectangleShape | ( | const css::uno::Reference< css::drawing::XShape > & | xShape | ) |
Definition at line 1973 of file shapes.cxx.
References oox::drawingml::AddExtLst(), oox::drawingml::DOCUMENT_DOCX, oox::drawingml::DrawingML::GetDocumentType(), oox::drawingml::DrawingML::GetFS(), GetNewShapeID(), GetShapeName(), MapSize(), mbUserShapes, mnXmlNamespace, SAL_INFO, oox::drawingml::DrawingML::WriteFill(), WriteNonVisualProperties(), oox::drawingml::DrawingML::WriteOutline(), oox::drawingml::DrawingML::WritePresetShape(), oox::drawingml::DrawingML::WriteShapeTransformation(), and WriteTextBox().
Referenced by oox::drawingml::lcl_GetConverters().
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 Type | Method |
---|---|
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.SlideNumberShape | ShapeExport::WriteTextShape |
com.sun.star.presentation.TitleTextShape | ShapeExport::WriteTextShape |
If the shape type is not recognized, then ShapeExport::WriteUnknownShape
is called.
xShape | The shape to export as DrawingML. |
*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().
void oox::drawingml::ShapeExport::WriteTable | ( | const css::uno::Reference< css::drawing::XShape > & | rXShape | ) |
Definition at line 2151 of file shapes.cxx.
References oox::drawingml::convertHmmToEmu(), oox::drawingml::DrawingML::mpFS, oox::drawingml::DrawingML::WriteShapeEffects(), WriteTableCellProperties(), WriteTextBox(), and x.
Referenced by WriteTableShape().
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().
void oox::drawingml::ShapeExport::WriteTableCellProperties | ( | const css::uno::Reference< css::beans::XPropertySet > & | rXPropSet | ) |
Definition at line 2342 of file shapes.cxx.
References Any, oox::drawingml::convertHmmToEmu(), oox::drawingml::GetTextVerticalAdjust(), oox::drawingml::GetTextVerticalType(), oox::drawingml::DrawingML::mpFS, nLeftMargin, nRightMargin, sax_fastparser::UseIf(), oox::drawingml::DrawingML::WriteFill(), and WriteTableCellBorders().
Referenced by WriteTable().
ShapeExport & oox::drawingml::ShapeExport::WriteTableShape | ( | const css::uno::Reference< css::drawing::XShape > & | xShape | ) |
Definition at line 2459 of file shapes.cxx.
References oox::drawingml::AddExtLst(), oox::drawingml::DOCUMENT_PPTX, oox::drawingml::DrawingML::GetDocumentType(), oox::drawingml::DrawingML::GetFS(), GetNewShapeID(), GetShapeName(), mnXmlNamespace, oox::drawingml::DrawingML::WriteShapeTransformation(), and WriteTable().
Referenced by oox::drawingml::lcl_GetConverters().
ShapeExport & oox::drawingml::ShapeExport::WriteTextBox | ( | const css::uno::Reference< css::uno::XInterface > & | xIface, |
sal_Int32 | nXmlNamespace, | ||
bool | bWritePropertiesAsLstStyles = false |
||
) |
Definition at line 2118 of file shapes.cxx.
References oox::drawingml::DOCUMENT_DOCX, oox::drawingml::DOCUMENT_PPTX, oox::drawingml::DrawingML::GetDocumentType(), oox::drawingml::DrawingML::GetFS(), oox::drawingml::DrawingML::GetTextExport(), oox::drawingml::lcl_isTextBox(), mbUserShapes, oox::drawingml::DrawingML::mpFS, NonEmptyText(), oox::drawingml::DrawingML::WriteText(), and oox::drawingml::DMLTextExport::WriteTextBox().
Referenced by WriteConnectorShape(), WriteCustomShape(), WriteEllipseShape(), WriteLineShape(), WritePolyPolygonShape(), WriteRectangleShape(), WriteTable(), and WriteTextShape().
|
virtual |
Definition at line 2488 of file shapes.cxx.
References oox::drawingml::AddExtLst(), oox::core::XmlFilterBase::addRelation(), oox::drawingml::DOCUMENT_DOCX, FSNS(), oox::drawingml::DrawingML::GetDocumentType(), oox::drawingml::DrawingML::GetFS(), GetNewShapeID(), oox::drawingml::DrawingML::GetProperty(), oox::getRelationship(), GetShapeName(), oox::HYPERLINK, oox::drawingml::DrawingML::IsFontworkShape(), oox::drawingml::DrawingML::mAny, mbUserShapes, mnXmlNamespace, oox::drawingml::DrawingML::mpFB, oox::drawingml::DrawingML::mpFS, mpURLTransformer, oox::drawingml::DrawingML::WriteBlipOrNormalFill(), WriteNonVisualProperties(), oox::drawingml::DrawingML::WriteOutline(), oox::drawingml::DrawingML::WritePresetShape(), oox::drawingml::DrawingML::WriteShapeEffects(), oox::drawingml::DrawingML::WriteShapeTransformation(), and WriteTextBox().
Referenced by oox::drawingml::lcl_GetConverters(), WriteCustomShape(), and WriteGraphicObjectShapePart().
|
virtual |
Definition at line 2830 of file shapes.cxx.
Referenced by WriteShape().
|
private |
Definition at line 84 of file shapes.hxx.
Referenced by WriteOLE2Shape().
|
private |
Definition at line 99 of file shapes.hxx.
Referenced by MapSize().
|
private |
Definition at line 99 of file shapes.hxx.
Referenced by MapSize().
|
private |
Definition at line 104 of file shapes.hxx.
|
protected |
Definition at line 91 of file shapes.hxx.
Referenced by WriteConnectorShape(), WriteCustomShape(), WriteEllipseShape(), WriteGraphicObjectShapePart(), WriteGroupShape(), WriteLineShape(), WritePolyPolygonShape(), WriteRectangleShape(), WriteTextBox(), and WriteTextShape().
|
protected |
Definition at line 90 of file shapes.hxx.
|
private |
Definition at line 98 of file shapes.hxx.
Referenced by WriteConnectorShape(), WriteCustomShape(), WriteEllipseShape(), WriteGraphicObjectShapePart(), WriteGroupShape(), WriteLineShape(), WriteMathShape(), WriteNonVisualDrawingProperties(), WriteOLE2Shape(), WritePolyPolygonShape(), WriteRectangleShape(), WriteTableShape(), and WriteTextShape().
|
private |
Definition at line 105 of file shapes.hxx.
|
private |
Definition at line 100 of file shapes.hxx.
Referenced by SetURLTranslator(), ShapeExport(), WriteCustomShape(), WriteGraphicObjectShapePart(), and WriteTextShape().