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

#include <drawingml.hxx>

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

Public Member Functions

 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 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 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

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)
 

Static Protected Member Functions

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)
 

Protected Attributes

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 Attributes

DocumentType meDocumentType
 To specify where write eg. the images to (like 'ppt', or 'word' - according to the OPC). More...
 
DMLTextExportmpTextExport
 Parent exporter, used for text callback. More...
 

Static Private Attributes

static int mnImageCounter = 1
 
static int mnWdpImageCounter = 1
 
static std::map< OUString, OUString > maWdpCache
 
static sal_Int32 mnDrawingMLCount = 0
 
static sal_Int32 mnVmlCount = 0
 

Detailed Description

Definition at line 142 of file drawingml.hxx.

Constructor & Destructor Documentation

oox::drawingml::DrawingML::DrawingML ( ::sax_fastparser::FSHelperPtr  pFS,
::oox::core::XmlFilterBase pFB,
DocumentType  eDocumentType = DOCUMENT_PPTX,
DMLTextExport pTextExport = nullptr 
)
inline

Definition at line 204 of file drawingml.hxx.

Member Function Documentation

Color oox::drawingml::DrawingML::ColorWithIntensity ( sal_uInt32  nColor,
sal_uInt32  nIntensity 
)
static

Definition at line 515 of file drawingml.cxx.

References ColorTransparency.

sax_fastparser::FSHelperPtr oox::drawingml::DrawingML::CreateOutputStream ( const OUString &  sFullStream,
std::u16string_view  sRelativeStream,
const css::uno::Reference< css::io::XOutputStream > &  xParentRelation,
const char *  sContentType,
const char *  sRelationshipType,
OUString *  pRelationshipId 
)
bool oox::drawingml::DrawingML::EqualGradients ( css::awt::Gradient  aGradient1,
css::awt::Gradient  aGradient2 
)
staticprotected

Definition at line 522 of file drawingml.cxx.

const char * oox::drawingml::DrawingML::GetAlignment ( css::style::ParagraphAdjust  nAlignment)
static

Definition at line 2805 of file drawingml.cxx.

Referenced by WriteParagraphProperties().

sal_Int32 oox::drawingml::DrawingML::getBulletMarginIndentation ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet,
sal_Int16  nLevel,
std::u16string_view  propName 
)

Definition at line 2776 of file drawingml.cxx.

References GetProperty(), mAny, and SAL_INFO.

Referenced by WriteParagraphProperties().

const char * oox::drawingml::DrawingML::GetComponentDir ( ) const
protected
sal_Int32 oox::drawingml::DrawingML::GetCustomGeometryPointValue ( const css::drawing::EnhancedCustomShapeParameter &  rParam,
const SdrObjCustomShape rSdrObjCustomShape 
)
static
OUString oox::drawingml::DrawingML::GetDatetimeTypeFromDate ( SvxDateFormat  eDate)
staticprotected

Gets OOXML datetime field type from LO Date format.

Parameters
eDateLO Date format

Definition at line 2336 of file drawingml.cxx.

References GetDatetimeTypeFromDateTime().

Referenced by GetFieldValue().

OUString oox::drawingml::DrawingML::GetDatetimeTypeFromDateTime ( SvxDateFormat  eDate,
SvxTimeFormat  eTime 
)
staticprotected

Gets OOXML datetime field type from combination of LO Time and Date formats.

Parameters
eDateLO Date format
eTimeLO Time format

Definition at line 2346 of file drawingml.cxx.

Referenced by GetDatetimeTypeFromDate(), and GetDatetimeTypeFromTime().

OUString oox::drawingml::DrawingML::GetDatetimeTypeFromTime ( SvxTimeFormat  eTime)
staticprotected

Gets OOXML datetime field type from LO Time format.

Parameters
eTimeLO Time format

Definition at line 2341 of file drawingml.cxx.

References GetDatetimeTypeFromDateTime().

Referenced by GetFieldValue().

DocumentType oox::drawingml::DrawingML::GetDocumentType ( ) const
inline
::oox::core::XmlFilterBase* oox::drawingml::DrawingML::GetFB ( )
inline
OUString oox::drawingml::DrawingML::GetFieldValue ( const css::uno::Reference< css::text::XTextRange > &  rRun,
bool &  bIsURLField 
)
protected
const ::sax_fastparser::FSHelperPtr& oox::drawingml::DrawingML::GetFS ( ) const
inline

Definition at line 207 of file drawingml.hxx.

Referenced by oox::drawingml::ChartExport::_exportAxis(), oox::drawingml::DMLPresetShapeExporter::EndAVListWriting(), oox::drawingml::ChartExport::exportAdditionalShapes(), oox::drawingml::ChartExport::exportAreaChart(), oox::drawingml::ChartExport::exportAxesId(), oox::drawingml::ChartExport::exportBarChart(), oox::drawingml::ChartExport::exportBubbleChart(), oox::drawingml::ChartExport::exportCandleStickSeries(), oox::drawingml::ChartExport::exportChart(), oox::drawingml::ChartExport::exportChartSpace(), oox::drawingml::ChartExport::exportDataLabels(), oox::drawingml::ChartExport::exportDataPoints(), oox::drawingml::ChartExport::exportDataTable(), oox::drawingml::ChartExport::exportDoughnutChart(), oox::drawingml::ChartExport::exportErrorBar(), oox::drawingml::ChartExport::exportExternalData(), oox::drawingml::ChartExport::exportFirstSliceAng(), oox::drawingml::ChartExport::exportGrouping(), oox::drawingml::ChartExport::exportHiLowLines(), oox::drawingml::ChartExport::exportLegend(), oox::drawingml::ChartExport::exportLineChart(), oox::drawingml::ChartExport::exportManualLayout(), oox::drawingml::ChartExport::exportMarker(), oox::drawingml::ChartExport::exportMissingValueTreatment(), oox::drawingml::ChartExport::exportPieChart(), oox::drawingml::ChartExport::exportPlotArea(), oox::drawingml::ChartExport::exportRadarChart(), oox::drawingml::ChartExport::exportScatterChartSeries(), oox::drawingml::ChartExport::exportSeries(), oox::drawingml::ChartExport::exportSeriesCategory(), oox::drawingml::ChartExport::exportSeriesText(), oox::drawingml::ChartExport::exportSeriesValues(), oox::drawingml::ChartExport::exportShapeProps(), oox::drawingml::ChartExport::exportSmooth(), oox::drawingml::ChartExport::exportStockChart(), oox::drawingml::ChartExport::exportSurfaceChart(), oox::drawingml::ChartExport::exportTextProps(), oox::drawingml::ChartExport::exportTitle(), oox::drawingml::ChartExport::exportTrendlines(), oox::drawingml::ChartExport::exportUpDownBars(), oox::drawingml::ChartExport::exportVaryColors(), oox::drawingml::ChartExport::exportView3D(), oox::drawingml::DMLPresetShapeExporter::StartAVListWriting(), oox::drawingml::DMLPresetShapeExporter::WriteAV(), oox::drawingml::ChartExport::WriteChartObj(), oox::drawingml::ShapeExport::WriteConnectorShape(), oox::drawingml::ShapeExport::WriteCustomShape(), oox::drawingml::ShapeExport::WriteEllipseShape(), oox::drawingml::ShapeExport::WriteGraphicObjectShapePart(), oox::drawingml::ShapeExport::WriteGroupShape(), oox::drawingml::ShapeExport::WriteLineShape(), oox::drawingml::ShapeExport::WriteMathShape(), WriteMediaNonVisualProperties(), oox::drawingml::ShapeExport::WriteNonVisualDrawingProperties(), oox::drawingml::ShapeExport::WriteOLE2Shape(), oox::drawingml::ShapeExport::WritePolyPolygonShape(), oox::drawingml::ShapeExport::WriteRectangleShape(), oox::drawingml::ShapeExport::WriteTableShape(), oox::drawingml::ShapeExport::WriteTextBox(), and oox::drawingml::ShapeExport::WriteTextShape().

static sal_Int32 oox::drawingml::DrawingML::getNewDrawingUniqueId ( )
inlinestatic

Definition at line 339 of file drawingml.hxx.

Referenced by oox::drawingml::ChartExport::exportAdditionalShapes().

static sal_Int32 oox::drawingml::DrawingML::getNewVMLUniqueId ( )
inlinestatic

Definition at line 340 of file drawingml.hxx.

bool oox::drawingml::DrawingML::GetProperty ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet,
const OUString &  aName 
)
protected

Definition at line 261 of file drawingml.cxx.

References Exception, and mAny.

Referenced by oox::drawingml::ChartExport::_exportAxis(), oox::drawingml::ChartExport::exportBarChart(), oox::drawingml::ChartExport::exportDataLabels(), oox::drawingml::ChartExport::exportDataPoints(), oox::drawingml::ChartExport::exportDataTable(), oox::drawingml::ChartExport::exportFill(), oox::drawingml::ChartExport::exportFirstSliceAng(), oox::drawingml::ChartExport::exportGrouping(), oox::drawingml::ChartExport::exportHatch(), oox::drawingml::ChartExport::exportLineChart(), oox::drawingml::ChartExport::exportMarker(), oox::drawingml::ChartExport::exportScatterChartSeries(), oox::drawingml::ChartExport::exportSeries(), oox::drawingml::ChartExport::exportSmooth(), oox::drawingml::ChartExport::exportSolidFill(), oox::drawingml::ChartExport::exportView3D(), getBulletMarginIndentation(), GetFieldValue(), oox::drawingml::ShapeExport::GetShapeName(), HasEnhancedCustomShapeSegmentCommand(), oox::drawingml::ChartExport::isDeep3dChart(), IsFontworkShape(), WriteArtisticEffect(), WriteBlipOrNormalFill(), oox::drawingml::ChartExport::WriteChartObj(), WriteFill(), WriteGraphicCropProperties(), oox::drawingml::ShapeExport::WriteGraphicObjectShapePart(), WriteImageBrightnessContrastTransparence(), WriteOutline(), WriteParagraphNumbering(), WriteParagraphProperties(), WriteParagraphTabStops(), WriteRun(), WriteRunProperties(), WriteShape3DEffects(), WriteShapeEffects(), WriteShapeStyle(), WriteText(), oox::drawingml::ShapeExport::WriteTextShape(), WriteXGraphicBlipFill(), WriteXGraphicBlipMode(), and WriteXGraphicStretch().

bool oox::drawingml::DrawingML::GetPropertyAndState ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet,
const css::uno::Reference< css::beans::XPropertyState > &  rXPropState,
const OUString &  aName,
css::beans::PropertyState &  eState 
)
protected

Definition at line 276 of file drawingml.cxx.

References Exception, and mAny.

Referenced by WriteParagraphProperties(), and WriteRunProperties().

const char * oox::drawingml::DrawingML::GetRelationCompPrefix ( ) const
protected
sal_Int16 oox::drawingml::DrawingML::GetScriptType ( const OUString &  rStr)
static

Definition at line 224 of file drawingml.cxx.

References comphelper::getProcessComponentContext(), and nPos.

Referenced by WriteLstStyles(), and WriteRun().

DMLTextExport* oox::drawingml::DrawingML::GetTextExport ( )
inline

The application-specific text exporter callback, if there is one.

Definition at line 211 of file drawingml.hxx.

Referenced by oox::vml::VMLExport::EndShape(), and oox::drawingml::ShapeExport::WriteTextBox().

bool oox::drawingml::DrawingML::HasEnhancedCustomShapeSegmentCommand ( const css::uno::Reference< css::drawing::XShape > &  rXShape,
const sal_Int16  nCommand 
)
protected

Definition at line 4508 of file drawingml.cxx.

References aSegments, GetProperty(), and mAny.

Referenced by WritePolyPolygon().

bool oox::drawingml::DrawingML::IsDiagram ( const css::uno::Reference< css::drawing::XShape > &  rXShape)
static

Definition at line 2753 of file drawingml.cxx.

References aName, and UNO_NAME_MISC_OBJ_INTEROPGRABBAG.

bool oox::drawingml::DrawingML::IsFontworkShape ( const css::uno::Reference< css::beans::XPropertySet > &  rXShapePropSet)
protected
bool oox::drawingml::DrawingML::IsGroupShape ( const css::uno::Reference< css::drawing::XShape > &  rXShape)
static

Definition at line 2742 of file drawingml.cxx.

Referenced by WriteShapeTransformation().

void oox::drawingml::DrawingML::ResetCounters ( )
static

Definition at line 248 of file drawingml.cxx.

References maWdpCache, mnImageCounter, and mnWdpImageCounter.

void oox::drawingml::DrawingML::ResetMlCounters ( )
static

Definition at line 255 of file drawingml.cxx.

References mnDrawingMLCount, and mnVmlCount.

void oox::drawingml::DrawingML::SetBackgroundDark ( bool  bIsDark)
inline

Definition at line 213 of file drawingml.hxx.

void oox::drawingml::DrawingML::SetFS ( ::sax_fastparser::FSHelperPtr  pFS)
inline

Definition at line 206 of file drawingml.hxx.

Referenced by oox::drawingml::ChartExport::WriteChartObj().

sal_Unicode oox::drawingml::DrawingML::SubstituteBullet ( sal_Unicode  cBulletId,
css::awt::FontDescriptor &  rFontDesc 
)
static

Definition at line 3982 of file drawingml.cxx.

References msfilter::util::bestFitOpenSymbolToMSFont(), and IsStarSymbol().

Referenced by WriteParagraphNumbering().

void oox::drawingml::DrawingML::WriteArtisticEffect ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet)
void oox::drawingml::DrawingML::WriteBlipFill ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet,
const OUString &  sURLPropName 
)

Referenced by WriteBlipOrNormalFill(), and WriteFill().

void oox::drawingml::DrawingML::WriteBlipFill ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet,
const OUString &  sURLPropName,
sal_Int32  nXmlNamespace 
)
void oox::drawingml::DrawingML::WriteBlipOrNormalFill ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet,
const OUString &  rURLPropName 
)
void oox::drawingml::DrawingML::WriteColor ( ::Color  nColor,
sal_Int32  nAlpha = MAX_PERCENT 
)
void oox::drawingml::DrawingML::WriteColor ( const OUString &  sColorSchemeName,
const css::uno::Sequence< css::beans::PropertyValue > &  aTransformations,
sal_Int32  nAlpha = MAX_PERCENT 
)
void oox::drawingml::DrawingML::WriteColor ( const ::Color  nColor,
const css::uno::Sequence< css::beans::PropertyValue > &  aTransformations,
sal_Int32  nAlpha = MAX_PERCENT 
)
void oox::drawingml::DrawingML::WriteColorTransformations ( const css::uno::Sequence< css::beans::PropertyValue > &  aTransformations,
sal_Int32  nAlpha = MAX_PERCENT 
)
void oox::drawingml::DrawingML::WriteConnectorConnections ( EscherConnectorListEntry rConnectorEntry,
sal_Int32  nStartID,
sal_Int32  nEndID 
)
bool oox::drawingml::DrawingML::WriteCustomGeometry ( const css::uno::Reference< css::drawing::XShape > &  rXShape,
const SdrObjCustomShape rSdrObjCustomShape 
)
void oox::drawingml::DrawingML::WriteCustomGeometryPoint ( const css::drawing::EnhancedCustomShapeParameterPair &  rParamPair,
const SdrObjCustomShape rSdrObjCustomShape 
)

Definition at line 3858 of file drawingml.cxx.

References GetCustomGeometryPointValue(), and mpFS.

Referenced by WriteCustomGeometry().

void oox::drawingml::DrawingML::WriteDiagram ( const css::uno::Reference< css::drawing::XShape > &  rXShape,
int  nDiagramId 
)
void oox::drawingml::DrawingML::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 
)
void oox::drawingml::DrawingML::WriteFill ( const css::uno::Reference< css::beans::XPropertySet > &  xPropSet)
void oox::drawingml::DrawingML::WriteFromTo ( const css::uno::Reference< css::drawing::XShape > &  rXShape,
const css::awt::Size &  aPageSize,
const sax_fastparser::FSHelperPtr pDrawing 
)
static
void oox::drawingml::DrawingML::WriteGlowEffect ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet)
protected

Definition at line 4459 of file drawingml.cxx.

References oox::drawingml::convertHmmToEmu(), u, and WriteShapeEffect().

Referenced by WriteShapeEffects().

void oox::drawingml::DrawingML::WriteGrabBagGradientFill ( const css::uno::Sequence< css::beans::PropertyValue > &  aGradientStops,
css::awt::Gradient  rGradient 
)

Definition at line 599 of file drawingml.cxx.

References oox::drawingml::MAX_PERCENT, mpFS, nPos, and WriteColor().

void oox::drawingml::DrawingML::WriteGradientFill ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet)
void oox::drawingml::DrawingML::WriteGradientFill ( css::awt::Gradient  rGradient,
css::awt::Gradient  rTransparenceGradient,
const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet = css::uno::Reference< css::beans::XPropertySet >() 
)
void oox::drawingml::DrawingML::WriteGradientStop ( sal_uInt16  nStop,
::Color  nColor,
sal_Int32  nAlpha = MAX_PERCENT 
)

Definition at line 508 of file drawingml.cxx.

References mpFS, and WriteColor().

void oox::drawingml::DrawingML::WriteGraphicCropProperties ( css::uno::Reference< css::beans::XPropertySet > const &  rxPropertySet,
Size const &  rOriginalSize,
MapMode const &  rMapMode 
)
OUString oox::drawingml::DrawingML::WriteImage ( const Graphic rGraphic,
bool  bRelPathToMedia = false,
OUString *  pFileName = nullptr 
)
void oox::drawingml::DrawingML::WriteImageBrightnessContrastTransparence ( css::uno::Reference< css::beans::XPropertySet > const &  rXPropSet)

Definition at line 1394 of file drawingml.cxx.

References GetProperty(), mAny, mpFS, and sax_fastparser::UseIf().

Referenced by WriteXGraphicBlip().

void oox::drawingml::DrawingML::WriteLineArrow ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet,
bool  bLineStart 
)
void oox::drawingml::DrawingML::WriteLinespacing ( const css::style::LineSpacing &  rLineSpacing)

Definition at line 2827 of file drawingml.cxx.

References mpFS.

Referenced by WriteParagraphProperties().

void oox::drawingml::DrawingML::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.

Definition at line 2953 of file drawingml.cxx.

References Any, GetScriptType(), mpFS, WriteParagraphProperties(), and WriteRunProperties().

Referenced by WriteText().

void oox::drawingml::DrawingML::WriteMediaNonVisualProperties ( const css::uno::Reference< css::drawing::XShape > &  xShape)
protected
void oox::drawingml::DrawingML::WriteOutline ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet,
css::uno::Reference< css::frame::XModel > const &  xModel = nullptr 
)
void oox::drawingml::DrawingML::WriteParagraph ( const css::uno::Reference< css::text::XTextContent > &  rParagraph,
bool &  rbOverridingCharHeight,
sal_Int32 &  rnCharHeight,
const css::uno::Reference< css::beans::XPropertySet > &  rXShapePropSet 
)

Definition at line 2992 of file drawingml.cxx.

References Any, any, mpFS, run(), WriteParagraphProperties(), WriteRun(), and WriteRunProperties().

Referenced by WriteText().

void oox::drawingml::DrawingML::WriteParagraphNumbering ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet,
float  fFirstCharHeight,
sal_Int16  nLevel 
)
bool oox::drawingml::DrawingML::WriteParagraphProperties ( const css::uno::Reference< css::text::XTextContent > &  rParagraph,
float  fFirstCharHeight,
sal_Int32  nElement 
)
void oox::drawingml::DrawingML::WriteParagraphTabStops ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet)

Definition at line 2708 of file drawingml.cxx.

References oox::drawingml::GetPointFromCoordinate(), GetProperty(), mAny, and mpFS.

Referenced by WriteParagraphProperties().

void oox::drawingml::DrawingML::WritePattFill ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet)
void oox::drawingml::DrawingML::WritePattFill ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet,
const css::drawing::Hatch &  rHatch 
)
void oox::drawingml::DrawingML::WritePolyPolygon ( const css::uno::Reference< css::drawing::XShape > &  rXShape,
const tools::PolyPolygon rPolyPolygon,
const bool  bClosed 
)
void oox::drawingml::DrawingML::WritePresetShape ( const char *  pShape,
std::vector< std::pair< sal_Int32, sal_Int32 >> &  rAvList 
)
void oox::drawingml::DrawingML::WritePresetShape ( const char *  pShape)

Definition at line 3528 of file drawingml.cxx.

References mpFS.

void oox::drawingml::DrawingML::WritePresetShape ( const char *  pShape,
MSO_SPT  eShapeType,
bool  bPredefinedHandlesUsed,
const css::beans::PropertyValue &  rProp 
)
void oox::drawingml::DrawingML::WriteRun ( const css::uno::Reference< css::text::XTextRange > &  rRun,
bool &  rbOverridingCharHeight,
sal_Int32 &  rnCharHeight,
const css::uno::Reference< css::beans::XPropertySet > &  rXShapePropSet 
)
void oox::drawingml::DrawingML::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 oox::drawingml::DrawingML::WriteShape3DEffects ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet)
void oox::drawingml::DrawingML::WriteShapeEffect ( std::u16string_view  sName,
const css::uno::Sequence< css::beans::PropertyValue > &  aEffectProps 
)
void oox::drawingml::DrawingML::WriteShapeEffects ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet)
void oox::drawingml::DrawingML::WriteShapeStyle ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet)
void oox::drawingml::DrawingML::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 oox::drawingml::DrawingML::WriteSoftEdgeEffect ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet)
protected

Definition at line 4486 of file drawingml.cxx.

References oox::drawingml::convertHmmToEmu(), u, and WriteShapeEffect().

Referenced by WriteShapeEffects().

void oox::drawingml::DrawingML::WriteSolidFill ( ::Color  nColor,
sal_Int32  nAlpha = MAX_PERCENT 
)
void oox::drawingml::DrawingML::WriteSolidFill ( const OUString &  sSchemeName,
const css::uno::Sequence< css::beans::PropertyValue > &  aTransformations,
sal_Int32  nAlpha = MAX_PERCENT 
)
void oox::drawingml::DrawingML::WriteSolidFill ( const ::Color  nColor,
const css::uno::Sequence< css::beans::PropertyValue > &  aTransformations,
sal_Int32  nAlpha = MAX_PERCENT 
)
void oox::drawingml::DrawingML::WriteSolidFill ( const css::uno::Reference< css::beans::XPropertySet > &  rXPropSet)
void oox::drawingml::DrawingML::WriteSrcRectXGraphic ( css::uno::Reference< css::beans::XPropertySet > const &  rxPropertySet,
css::uno::Reference< css::graphic::XGraphic > const &  rxGraphic 
)
void oox::drawingml::DrawingML::WriteStyleProperties ( sal_Int32  nTokenId,
const css::uno::Sequence< css::beans::PropertyValue > &  aProperties 
)
protected

Definition at line 4061 of file drawingml.cxx.

References mpFS, and WriteColor().

Referenced by WriteShapeStyle().

void oox::drawingml::DrawingML::WriteText ( const css::uno::Reference< css::uno::XInterface > &  rXIface,
bool  bBodyPr,
bool  bText = true,
sal_Int32  nXmlNamespace = 0,
bool  bWritePropertiesAsLstStyles = false 
)
void oox::drawingml::DrawingML::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 
)
OString oox::drawingml::DrawingML::WriteWdpPicture ( const OUString &  rFileId,
const css::uno::Sequence< sal_Int8 > &  rPictureData 
)
OUString oox::drawingml::DrawingML::WriteXGraphicBlip ( css::uno::Reference< css::beans::XPropertySet > const &  rXPropSet,
css::uno::Reference< css::graphic::XGraphic > const &  rxGraphic,
bool  bRelPathToMedia 
)
void oox::drawingml::DrawingML::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 oox::drawingml::DrawingML::WriteXGraphicBlipMode ( css::uno::Reference< css::beans::XPropertySet > const &  rXPropSet,
css::uno::Reference< css::graphic::XGraphic > const &  rxGraphic 
)

Definition at line 1489 of file drawingml.cxx.

References GetProperty(), mAny, mpFS, SAL_INFO, and WriteXGraphicStretch().

Referenced by WriteXGraphicBlipFill().

void oox::drawingml::DrawingML::WriteXGraphicStretch ( css::uno::Reference< css::beans::XPropertySet > const &  rXPropSet,
css::uno::Reference< css::graphic::XGraphic > const &  rxGraphic 
)

Member Data Documentation

css::uno::Reference<css::drawing::XShape> oox::drawingml::DrawingML::m_xParent
protected
css::uno::Any oox::drawingml::DrawingML::mAny
protected

Definition at line 159 of file drawingml.hxx.

Referenced by oox::drawingml::ChartExport::_exportAxis(), oox::drawingml::ChartExport::exportBarChart(), oox::drawingml::ChartExport::exportDataLabels(), oox::drawingml::ChartExport::exportDataPoints(), oox::drawingml::ChartExport::exportDataTable(), oox::drawingml::ChartExport::exportFill(), oox::drawingml::ChartExport::exportFirstSliceAng(), oox::drawingml::ChartExport::exportGrouping(), oox::drawingml::ChartExport::exportHatch(), oox::drawingml::ChartExport::exportLineChart(), oox::drawingml::ChartExport::exportMarker(), oox::drawingml::ChartExport::exportScatterChartSeries(), oox::drawingml::ChartExport::exportSeries(), oox::drawingml::ChartExport::exportSmooth(), oox::drawingml::ChartExport::exportSolidFill(), oox::drawingml::ChartExport::exportView3D(), getBulletMarginIndentation(), GetFieldValue(), GetProperty(), GetPropertyAndState(), oox::drawingml::ShapeExport::GetShapeName(), HasEnhancedCustomShapeSegmentCommand(), oox::drawingml::ChartExport::isDeep3dChart(), IsFontworkShape(), WriteArtisticEffect(), oox::drawingml::ChartExport::WriteChartObj(), oox::drawingml::ShapeExport::WriteConnectorShape(), oox::drawingml::ShapeExport::WriteCustomShape(), WriteFill(), WriteGraphicCropProperties(), oox::drawingml::ShapeExport::WriteGraphicObjectShapePart(), WriteImageBrightnessContrastTransparence(), WriteOutline(), WriteParagraphNumbering(), WriteParagraphProperties(), WriteParagraphTabStops(), WriteRun(), WriteRunProperties(), WriteShape3DEffects(), WriteShapeEffects(), WriteShapeStyle(), WriteText(), oox::drawingml::ShapeExport::WriteTextShape(), WriteXGraphicBlipFill(), WriteXGraphicBlipMode(), and WriteXGraphicStretch().

std::map< OUString, OUString > oox::drawingml::DrawingML::maWdpCache
staticprivate

Definition at line 148 of file drawingml.hxx.

Referenced by ResetCounters(), and WriteWdpPicture().

bool oox::drawingml::DrawingML::mbIsBackgroundDark
protected

Definition at line 164 of file drawingml.hxx.

Referenced by WriteParagraphNumbering().

DocumentType oox::drawingml::DrawingML::meDocumentType
private

To specify where write eg. the images to (like 'ppt', or 'word' - according to the OPC).

Definition at line 153 of file drawingml.hxx.

Referenced by GetComponentDir(), and GetRelationCompPrefix().

sal_Int32 oox::drawingml::DrawingML::mnDrawingMLCount = 0
staticprivate

Definition at line 149 of file drawingml.hxx.

Referenced by ResetMlCounters().

int oox::drawingml::DrawingML::mnImageCounter = 1
staticprivate

Definition at line 146 of file drawingml.hxx.

Referenced by ResetCounters(), WriteImage(), and WriteMediaNonVisualProperties().

sal_Int32 oox::drawingml::DrawingML::mnVmlCount = 0
staticprivate

Definition at line 150 of file drawingml.hxx.

Referenced by ResetMlCounters().

int oox::drawingml::DrawingML::mnWdpImageCounter = 1
staticprivate

Definition at line 147 of file drawingml.hxx.

Referenced by ResetCounters(), and WriteWdpPicture().

::oox::core::XmlFilterBase* oox::drawingml::DrawingML::mpFB
protected
::sax_fastparser::FSHelperPtr oox::drawingml::DrawingML::mpFS
protected

Definition at line 160 of file drawingml.hxx.

Referenced by oox::drawingml::ChartExport::exportFill(), oox::drawingml::ChartExport::exportGradientFill(), oox::drawingml::ChartExport::exportSolidFill(), WriteArtisticEffect(), oox::drawingml::ShapeExport::WriteBorderLine(), oox::drawingml::ChartExport::WriteChartObj(), WriteColor(), WriteColorTransformations(), WriteConnectorConnections(), WriteCustomGeometry(), WriteCustomGeometryPoint(), oox::drawingml::ShapeExport::WriteCustomShape(), WriteDiagram(), WriteFill(), WriteGrabBagGradientFill(), WriteGradientStop(), WriteGraphicCropProperties(), oox::drawingml::ShapeExport::WriteGraphicObjectShapePart(), WriteImage(), WriteImageBrightnessContrastTransparence(), WriteLineArrow(), WriteLinespacing(), WriteLstStyles(), oox::drawingml::ShapeExport::WriteMathShape(), WriteMediaNonVisualProperties(), oox::drawingml::ShapeExport::WriteOLE2Shape(), WriteOutline(), WriteParagraph(), WriteParagraphNumbering(), WriteParagraphProperties(), WriteParagraphTabStops(), WritePolyPolygon(), WritePresetShape(), WriteRun(), WriteRunProperties(), WriteShape3DEffects(), WriteShapeEffect(), WriteShapeEffects(), WriteShapeStyle(), WriteSolidFill(), WriteStyleProperties(), oox::drawingml::ShapeExport::WriteTable(), oox::drawingml::ShapeExport::WriteTableCellProperties(), WriteText(), oox::drawingml::ShapeExport::WriteTextBox(), oox::drawingml::ShapeExport::WriteTextShape(), WriteTransformation(), WriteWdpPicture(), WriteXGraphicBlip(), WriteXGraphicBlipFill(), WriteXGraphicBlipMode(), and WriteXGraphicStretch().

DMLTextExport* oox::drawingml::DrawingML::mpTextExport
private

Parent exporter, used for text callback.

Definition at line 155 of file drawingml.hxx.

Referenced by WriteText(), and WriteXGraphicBlip().


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