LibreOffice Module oox (master)
1
|
#include <drawingml.hxx>
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::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 (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) |
bool | WriteCharColor (const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) |
bool | WriteFillColor (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 (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, 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) |
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) |
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 char *sContentType, const char *sRelationshipType, OUString *pRelationshipId) |
Static Public Member Functions | |
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 | ResetCounters () |
static void | ResetMlCounters () |
static void | PushExportGraphics () |
static void | PopExportGraphics () |
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) |
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) |
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::XmlFilterBase * | mpFB |
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... | |
DMLTextExport * | mpTextExport |
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 |
static std::stack< std::unordered_map< BitmapChecksum, OUString > > | maExportGraphics |
Definition at line 141 of file drawingml.hxx.
|
inline |
Definition at line 212 of file drawingml.hxx.
References false.
|
static |
Definition at line 631 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 | ||
) |
Definition at line 4677 of file drawingml.cxx.
References oox::core::XmlFilterBase::addRelation(), GetFB(), oox::core::XmlFilterBase::openFragmentStreamWithSerializer(), and p.
Referenced by oox::drawingml::ChartExport::exportAdditionalShapes(), and oox::drawingml::ChartExport::WriteChartObj().
|
staticprotected |
Definition at line 638 of file drawingml.cxx.
|
static |
Definition at line 2962 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 2933 of file drawingml.cxx.
References aPropName, GetProperty(), mAny, and SAL_INFO.
Referenced by WriteParagraphProperties().
|
protected |
Definition at line 1267 of file drawingml.cxx.
References oox::drawingml::DOCUMENT_DOCX, oox::drawingml::DOCUMENT_PPTX, oox::drawingml::DOCUMENT_XLSX, and meDocumentType.
Referenced by WriteDiagram(), writeDiagramRels(), WriteImage(), WriteMediaNonVisualProperties(), oox::drawingml::ShapeExport::WriteOLE2Shape(), and WriteWdpPicture().
|
staticprotected |
Gets OOXML datetime field type from LO Date format.
eDate | LO Date format |
Definition at line 2497 of file drawingml.cxx.
References GetDatetimeTypeFromDateTime().
Referenced by GetFieldValue().
|
staticprotected |
Gets OOXML datetime field type from combination of LO Time and Date formats.
eDate | LO Date format |
eTime | LO Time format |
Definition at line 2507 of file drawingml.cxx.
Referenced by GetDatetimeTypeFromDate(), and GetDatetimeTypeFromTime().
|
staticprotected |
Gets OOXML datetime field type from LO Time format.
eTime | LO Time format |
Definition at line 2502 of file drawingml.cxx.
References GetDatetimeTypeFromDateTime().
Referenced by GetFieldValue().
|
inline |
Definition at line 217 of file drawingml.hxx.
Referenced by oox::drawingml::ChartExport::exportAdditionalShapes(), oox::drawingml::ChartExport::exportExternalData(), oox::drawingml::ChartExport::WriteChartObj(), oox::drawingml::ShapeExport::WriteConnectorShape(), oox::drawingml::ShapeExport::WriteCustomShape(), WriteDiagram(), oox::drawingml::ShapeExport::WriteEllipseShape(), oox::drawingml::ShapeExport::WriteGraphicObjectShapePart(), oox::drawingml::ShapeExport::WriteGroupShape(), oox::drawingml::ShapeExport::WriteLineShape(), oox::drawingml::ShapeExport::WriteMathShape(), oox::drawingml::ShapeExport::WriteOLE2Shape(), WriteParagraphNumbering(), WritePolyPolygon(), oox::drawingml::ShapeExport::WritePolyPolygonShape(), oox::drawingml::ShapeExport::WriteRectangleShape(), WriteRun(), WriteRunProperties(), WriteShapeTransformation(), oox::drawingml::ShapeExport::WriteTableShape(), WriteText(), oox::drawingml::ShapeExport::WriteTextBox(), oox::drawingml::ShapeExport::WriteTextShape(), WriteTransformation(), WriteXGraphicBlipFill(), and WriteXGraphicStretch().
|
inline |
Definition at line 216 of file drawingml.hxx.
Referenced by CreateOutputStream(), oox::drawingml::ChartExport::exportAdditionalShapes(), oox::drawingml::ChartExport::exportChartSpace(), oox::drawingml::ChartExport::exportDataLabels(), oox::drawingml::ChartExport::exportExternalData(), oox::drawingml::ChartExport::exportSeries(), oox::drawingml::ChartExport::parseFormula(), oox::drawingml::ChartExport::WriteChartObj(), oox::drawingml::ShapeExport::WriteCustomShape(), oox::drawingml::ShapeExport::WriteGraphicObjectShapePart(), oox::drawingml::ShapeExport::WriteMathShape(), oox::drawingml::ShapeExport::WriteOLE2Shape(), and WriteRunProperties().
|
protected |
Definition at line 2418 of file drawingml.cxx.
References GetDatetimeTypeFromDate(), GetDatetimeTypeFromTime(), GetProperty(), mAny, SAL_INFO, UNO_TC_PROP_FILE_FORMAT, and UNO_TC_PROP_NUMFORMAT.
Referenced by WriteRun().
|
inline |
Definition at line 215 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().
|
inlinestatic |
Definition at line 350 of file drawingml.hxx.
Referenced by oox::drawingml::ChartExport::exportAdditionalShapes().
|
inlinestatic |
Definition at line 351 of file drawingml.hxx.
|
protected |
Definition at line 289 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::exportSeriesCategory(), oox::drawingml::ChartExport::exportSmooth(), oox::drawingml::ChartExport::exportSolidFill(), oox::drawingml::ChartExport::exportView3D(), getBulletMarginIndentation(), GetFieldValue(), oox::drawingml::ShapeExport::GetShapeName(), oox::drawingml::ChartExport::isDeep3dChart(), IsFontworkShape(), Write3DEffects(), WriteArtisticEffect(), WriteBlipOrNormalFill(), oox::drawingml::ChartExport::WriteChartObj(), WriteFill(), WriteGraphicCropProperties(), oox::drawingml::ShapeExport::WriteGraphicObjectShapePart(), WriteImageBrightnessContrastTransparence(), WriteOutline(), WriteParagraphNumbering(), WriteParagraphProperties(), WriteParagraphTabStops(), WriteRun(), WriteRunProperties(), WriteShapeEffects(), WriteShapeStyle(), WriteText(), oox::drawingml::ShapeExport::WriteTextShape(), WriteXGraphicBlipFill(), WriteXGraphicBlipMode(), and WriteXGraphicStretch().
|
protected |
Definition at line 304 of file drawingml.cxx.
References Exception, and mAny.
Referenced by WriteParagraphProperties(), and WriteRunProperties().
|
protected |
Definition at line 1279 of file drawingml.cxx.
References oox::drawingml::DOCUMENT_DOCX, oox::drawingml::DOCUMENT_PPTX, oox::drawingml::DOCUMENT_XLSX, and meDocumentType.
Referenced by WriteDiagram(), WriteImage(), WriteMediaNonVisualProperties(), oox::drawingml::ShapeExport::WriteOLE2Shape(), and WriteWdpPicture().
|
static |
Definition at line 242 of file drawingml.cxx.
References comphelper::getProcessComponentContext(), and nPos.
Referenced by WriteLstStyles(), and WriteRun().
|
inline |
The application-specific text exporter callback, if there is one.
Definition at line 219 of file drawingml.hxx.
Referenced by oox::vml::VMLExport::EndShape(), and oox::drawingml::ShapeExport::WriteTextBox().
|
protected |
Definition at line 3206 of file drawingml.cxx.
References GetProperty(), and mAny.
Referenced by oox::drawingml::ShapeExport::WriteCustomShape(), WriteRunProperties(), WriteText(), and oox::drawingml::ShapeExport::WriteTextShape().
|
static |
Definition at line 2922 of file drawingml.cxx.
Referenced by WriteShapeTransformation().
|
static |
Definition at line 284 of file drawingml.cxx.
References maExportGraphics.
|
static |
Definition at line 279 of file drawingml.cxx.
References maExportGraphics.
|
static |
Definition at line 266 of file drawingml.cxx.
References maWdpCache, mnImageCounter, and mnWdpImageCounter.
|
static |
Definition at line 273 of file drawingml.cxx.
References mnDrawingMLCount, and mnVmlCount.
|
inline |
Definition at line 221 of file drawingml.hxx.
|
inline |
Definition at line 214 of file drawingml.hxx.
Referenced by oox::drawingml::ChartExport::WriteChartObj().
|
static |
Definition at line 4665 of file drawingml.cxx.
References msfilter::util::bestFitOpenSymbolToMSFont(), and IsStarSymbol().
Referenced by WriteParagraphNumbering().
void oox::drawingml::DrawingML::Write3DEffects | ( | const css::uno::Reference< css::beans::XPropertySet > & | rXPropSet, |
bool | bIsText | ||
) |
Populates scene3d tag.
rXPropSet | Prop set |
bIsText | True if the 3D effects are for a text body, false if it is for a shape |
Definition at line 5180 of file drawingml.cxx.
References GetProperty(), mAny, oox::drawingml::MAX_PERCENT, mpFS, nToken, u, WriteColor(), and XML_none.
Referenced by oox::drawingml::ShapeExport::WriteCustomShape(), oox::drawingml::ShapeExport::WriteGraphicObjectShapePart(), and WriteText().
void oox::drawingml::DrawingML::WriteArtisticEffect | ( | const css::uno::Reference< css::beans::XPropertySet > & | rXPropSet | ) |
Definition at line 5459 of file drawingml.cxx.
References FSNS(), oox::drawingml::ArtisticEffectProperties::getEffectToken(), oox::core::XmlFilterBase::getNamespaceURL(), GetProperty(), mAny, mpFB, mpFS, nToken, WriteWdpPicture(), and XML_none.
Referenced by WriteXGraphicBlip().
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 | ||
) |
Definition at line 1624 of file drawingml.cxx.
References GetProperty(), WriteBlipFill(), and WriteFill().
Referenced by WriteRunProperties(), and oox::drawingml::ShapeExport::WriteTextShape().
bool oox::drawingml::DrawingML::WriteCharColor | ( | const css::uno::Reference< css::beans::XPropertySet > & | xPropertySet | ) |
void oox::drawingml::DrawingML::WriteColor | ( | ::Color | nColor, |
sal_Int32 | nAlpha = MAX_PERCENT |
||
) |
Definition at line 348 of file drawingml.cxx.
References oox::drawingml::MAX_PERCENT, and mpFS.
Referenced by Write3DEffects(), WriteGrabBagGradientFill(), WriteGradientStop(), WriteParagraphNumbering(), WriteRunProperties(), WriteShapeEffect(), WriteSolidFill(), and WriteStyleProperties().
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 |
||
) |
Definition at line 409 of file drawingml.cxx.
References oox::drawingml::Color::getColorTransformationToken(), oox::drawingml::MAX_PERCENT, mpFS, nToken, nValue, and XML_TOKEN_INVALID.
void oox::drawingml::DrawingML::WriteConnectorConnections | ( | EscherConnectorListEntry & | rConnectorEntry, |
sal_Int32 | nStartID, | ||
sal_Int32 | nEndID | ||
) |
Definition at line 4649 of file drawingml.cxx.
References EscherConnectorListEntry::GetConnectorRule(), and mpFS.
Referenced by oox::drawingml::ShapeExport::WriteConnectorShape().
bool oox::drawingml::DrawingML::WriteCustomGeometry | ( | const css::uno::Reference< css::drawing::XShape > & | rXShape, |
const SdrObjCustomShape & | rSdrObjCustomShape | ||
) |
Definition at line 3932 of file drawingml.cxx.
References aSegments, basegfx::fround(), EnhancedCustomShape2d::GetLuminanceChange(), EnhancedCustomShape2d::GetParameter(), Height, mpFS, SAL_WARN, uno::Any::Value, Width, and WriteCustomGeometrySegment().
Referenced by oox::drawingml::ShapeExport::WriteCustomShape().
|
protected |
Definition at line 4532 of file drawingml.cxx.
References mpFS.
Referenced by WriteCustomGeometrySegment().
|
protected |
Definition at line 4197 of file drawingml.cxx.
References ARC, basegfx::fTools::equalZero(), First, FSNS(), EnhancedCustomShape2d::GetParameter(), namespaces::i, mpFS, and WriteCustomGeometryPoint().
Referenced by WriteCustomGeometry().
void oox::drawingml::DrawingML::WriteDiagram | ( | const css::uno::Reference< css::drawing::XShape > & | rXShape, |
int | nDiagramId | ||
) |
Definition at line 5548 of file drawingml.cxx.
References oox::core::XmlFilterBase::addRelation(), sax_fastparser::FastSerializerHelper::createAttrList(), oox::DIAGRAMCOLORS, oox::DIAGRAMDATA, oox::DIAGRAMDRAWING, oox::DIAGRAMLAYOUT, oox::DIAGRAMQUICKSTYLE, oox::drawingml::DOCUMENT_DOCX, FSNS(), GetComponentDir(), GetDocumentType(), oox::core::XmlFilterBase::getNamespaceURL(), comphelper::getProcessComponentContext(), GetRelationCompPrefix(), oox::getRelationship(), mpFB, mpFS, oox::core::XmlFilterBase::openFragmentStream(), Point, SAL_MAX_UINT32, sName, u, comphelper::rng::uniform_uint_distribution(), UNO_NAME_MISC_OBJ_INTEROPGRABBAG, writeDiagramRels(), and WriteTransformation().
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 | ||
) |
Definition at line 5767 of file drawingml.cxx.
References oox::core::XmlFilterBase::addRelation(), comphelper::OStorageHelper::CopyInputToOutput(), GetComponentDir(), comphelper::getProcessComponentContext(), oox::getRelationship(), oox::IMAGE, mpFB, oox::core::XmlFilterBase::openFragmentStream(), oox::PropertySet::setAnyProperty(), sType, and TOOLS_WARN_EXCEPTION.
Referenced by WriteDiagram().
void oox::drawingml::DrawingML::WriteEmptyCustomGeometry | ( | ) |
Definition at line 4545 of file drawingml.cxx.
References mpFS.
Referenced by oox::drawingml::ShapeExport::WriteCustomShape().
void oox::drawingml::DrawingML::WriteFill | ( | const css::uno::Reference< css::beans::XPropertySet > & | xPropSet | ) |
Definition at line 4699 of file drawingml.cxx.
References oox::drawingml::FillStyle, GetProperty(), mAny, mpFS, WriteBlipFill(), WriteGradientFill(), WritePattFill(), and WriteSolidFill().
Referenced by WriteBlipOrNormalFill(), oox::drawingml::ShapeExport::WriteCustomShape(), oox::drawingml::ShapeExport::WriteEllipseShape(), oox::drawingml::ShapeExport::WritePolyPolygonShape(), oox::drawingml::ShapeExport::WriteRectangleShape(), and oox::drawingml::ShapeExport::WriteTableCellProperties().
bool oox::drawingml::DrawingML::WriteFillColor | ( | const css::uno::Reference< css::beans::XPropertySet > & | xPropertySet | ) |
Definition at line 585 of file drawingml.cxx.
References mpFS.
|
static |
Definition at line 5827 of file drawingml.cxx.
References tools::Rectangle::BottomRight(), tools::Rectangle::Center(), FSNS(), SdrObject::GetObjIdentifier(), SdrObject::GetRotateAngle(), SdrObject::getSdrObjectFromXShape(), SdrObject::GetSnapRect(), and tools::Rectangle::TopLeft().
Referenced by oox::drawingml::ChartExport::exportAdditionalShapes().
|
protected |
Definition at line 5136 of file drawingml.cxx.
References oox::drawingml::convertHmmToEmu(), comphelper::makePropertyValue(), 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 715 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 624 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 | ||
) |
Definition at line 1749 of file drawingml.cxx.
References Application::GetDefaultDevice(), MapMode::GetMapUnit(), GetProperty(), Size::Height(), mAny, mpFS, OutputDevice::PixelToLogic(), and Size::Width().
Referenced by WriteSrcRectXGraphic().
OUString oox::drawingml::DrawingML::WriteImage | ( | const Graphic & | rGraphic, |
bool | bRelPathToMedia = false |
||
) |
If bRelPathToMedia is true add "../" to image folder path while adding the image relationship.
Definition at line 1291 of file drawingml.cxx.
References aData, oox::core::XmlFilterBase::addRelation(), GraphicConverter::Export(), Graphic::GetChecksum(), GetComponentDir(), GfxLink::GetData(), SvMemoryStream::GetData(), GfxLink::GetDataSize(), SvMemoryStream::GetEndOfData(), Graphic::GetGfxLink(), GetRelationCompPrefix(), oox::getRelationship(), GfxLink::GetType(), Graphic::GetType(), oox::IMAGE, maExportGraphics, mnImageCounter, mpFB, mpFS, oox::core::XmlFilterBase::openFragmentStream(), SAL_WARN, sMediaType, and void().
Referenced by oox::vml::VMLExport::Commit(), WriteParagraphNumbering(), and WriteXGraphicBlip().
void oox::drawingml::DrawingML::WriteImageBrightnessContrastTransparence | ( | css::uno::Reference< css::beans::XPropertySet > const & | rXPropSet | ) |
Definition at line 1530 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 | ||
) |
Definition at line 862 of file drawingml.cxx.
References ESCHER_LineArrowDiamondEnd, ESCHER_LineArrowEnd, ESCHER_LineArrowOpenEnd, ESCHER_LineArrowOvalEnd, ESCHER_LineArrowStealthEnd, ESCHER_LineLongArrow, ESCHER_LineMediumLenArrow, ESCHER_LineMediumWidthArrow, ESCHER_LineNarrowArrow, ESCHER_LineNoEnd, ESCHER_LineShortArrow, ESCHER_LineWideArrow, EscherPropertyContainer::GetLineArrow(), mpFS, type, and XML_type.
Referenced by WriteOutline().
void oox::drawingml::DrawingML::WriteLinespacing | ( | const css::style::LineSpacing & | rLineSpacing, |
float | fFirstCharHeight | ||
) |
Definition at line 2984 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 3120 of file drawingml.cxx.
References Any, GetScriptType(), mpFS, WriteParagraphProperties(), and WriteRunProperties().
Referenced by WriteText().
|
protected |
Output the media (including copying a video from vnd.sun.star.Package: to the output if necessary).
Definition at line 1425 of file drawingml.cxx.
References oox::core::XmlFilterBase::addRelation(), aMimeType, oox::AUDIO, comphelper::OStorageHelper::CopyInputToOutput(), FSNS(), GetComponentDir(), GetFS(), SdrMediaObj::GetInputStream(), SdrMediaObj::getMediaProperties(), avmedia::MediaItem::getMimeType(), GetRelationCompPrefix(), oox::getRelationship(), SdrObject::getSdrObjectFromXShape(), SdrMediaObj::getURL(), oox::MEDIA, mnImageCounter, mpFB, mpFS, oox::core::XmlFilterBase::openFragmentStream(), and oox::VIDEO.
Referenced by oox::drawingml::ShapeExport::WriteGraphicObjectShapePart().
void oox::drawingml::DrawingML::WriteOutline | ( | const css::uno::Reference< css::beans::XPropertySet > & | rXPropSet, |
css::uno::Reference< css::frame::XModel > const & | xModel = nullptr |
||
) |
Definition at line 932 of file drawingml.cxx.
References ColorTransparency, oox::drawingml::convertEmuToHmm(), oox::drawingml::convertHmmToEmu(), oox::drawingml::getLineDash(), GetProperty(), namespaces::i, oox::drawingml::LineCap, oox::drawingml::LineDash, oox::drawingml::LineJoint, oox::drawingml::LineStyle, mAny, oox::drawingml::MAX_PERCENT, mpFS, nLineWidth, SAL_INFO, SAL_WARN_IF, sax_fastparser::UseIf(), write1000thOfAPercent(), WriteLineArrow(), and WriteSolidFill().
Referenced by oox::drawingml::ChartExport::exportShapeProps(), oox::drawingml::ShapeExport::WriteConnectorShape(), oox::drawingml::ShapeExport::WriteCustomShape(), oox::drawingml::ShapeExport::WriteEllipseShape(), oox::drawingml::ShapeExport::WriteGraphicObjectShapePart(), oox::drawingml::ShapeExport::WriteLineShape(), oox::drawingml::ShapeExport::WritePolyPolygonShape(), oox::drawingml::ShapeExport::WriteRectangleShape(), WriteRunProperties(), and oox::drawingml::ShapeExport::WriteTextShape().
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 3159 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 | ||
) |
Definition at line 2705 of file drawingml.cxx.
References aPropName, COL_AUTO(), ColorTransparency, oox::drawingml::DOCUMENT_PPTX, f, FSNS(), oox::drawingml::GetAutoNumType(), Graphic::GetBitmapEx(), GetDocumentType(), GetProperty(), Graphic::GetType(), Size::Height(), mAny, mbIsBackgroundDark, mpFS, vcl::N24_BPP, OOX_BULLET_LIST_SCALE_FACTOR, Point, SAL_INFO, BitmapEx::Scale(), SubstituteBullet(), SVX_NUM_CHAR_SPECIAL, SVX_NUM_NUMBER_NONE, TransformMetric(), sax_fastparser::UseIf(), Size::Width(), WriteColor(), WriteImage(), and XML_type.
Referenced by WriteParagraphProperties().
bool oox::drawingml::DrawingML::WriteParagraphProperties | ( | const css::uno::Reference< css::text::XTextContent > & | rParagraph, |
float | fFirstCharHeight, | ||
sal_Int32 | nElement | ||
) |
Writes paragraph properties.
Definition at line 3005 of file drawingml.cxx.
References oox::drawingml::convertHmmToEmu(), GetAlignment(), getBulletMarginIndentation(), GetProperty(), GetPropertyAndState(), mAny, mpFS, nLeftMargin, ToPsz10(), u, sax_fastparser::UseIf(), WriteLinespacing(), WriteParagraphNumbering(), and WriteParagraphTabStops().
Referenced by WriteLstStyles(), and WriteParagraph().
void oox::drawingml::DrawingML::WriteParagraphTabStops | ( | const css::uno::Reference< css::beans::XPropertySet > & | rXPropSet | ) |
Definition at line 2888 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 | ) |
Referenced by oox::drawingml::ChartExport::exportHatch(), and WriteFill().
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 bool | bClosed | ||
) |
Definition at line 4558 of file drawingml.cxx.
References tools::PolyPolygon::Count(), oox::drawingml::DOCUMENT_DOCX, GetDocumentType(), tools::Polygon::GetFlags(), EscherPropertyContainer::GetPolyPolygon(), tools::Polygon::GetSize(), namespaces::i, mpFS, and X.
Referenced by oox::drawingml::ShapeExport::WritePolyPolygonShape().
void oox::drawingml::DrawingML::WritePresetShape | ( | const OString & | pShape, |
std::vector< std::pair< sal_Int32, sal_Int32 >> & | rAvList | ||
) |
Definition at line 3673 of file drawingml.cxx.
Referenced by oox::drawingml::ShapeExport::WriteConnectorShape(), oox::drawingml::ShapeExport::WriteCustomShape(), oox::drawingml::ShapeExport::WriteEllipseShape(), oox::drawingml::ShapeExport::WriteGraphicObjectShapePart(), oox::drawingml::ShapeExport::WriteLineShape(), oox::drawingml::ShapeExport::WriteMathShape(), oox::drawingml::ShapeExport::WriteRectangleShape(), oox::drawingml::DMLPresetShapeExporter::WriteShape(), and oox::drawingml::ShapeExport::WriteTextShape().
void oox::drawingml::DrawingML::WritePresetShape | ( | const OString & | pShape | ) |
Definition at line 3695 of file drawingml.cxx.
References mpFS.
void oox::drawingml::DrawingML::WritePresetShape | ( | const OString & | 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 | ||
) |
Definition at line 2576 of file drawingml.cxx.
References oox::drawingml::DOCUMENT_PPTX, Exception, comphelper::xml::generateGUIDString(), GetDocumentType(), GetFieldValue(), GetProperty(), GetScriptType(), mAny, mpFS, WriteRunProperties(), and XML_type.
Referenced by WriteParagraph().
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 = {} |
||
) |
While setting values in propertymap, CharKerning converted using GetTextSpacingPoint i.e set @ https://opengrok.libreoffice.org/xref/core/oox/source/drawingml/textcharacterproperties.cxx#129 therefore to get original value CharKerning need to be convert. https://opengrok.libreoffice.org/xref/core/oox/source/drawingml/drawingmltypes.cxx#95
Definition at line 2011 of file drawingml.cxx.
References oox::core::XmlFilterBase::addRelation(), bold, COL_AUTO(), COL_BLACK, COL_WHITE, ColorTransparency, DFLT_ESC_AUTO_SUB, DFLT_ESC_AUTO_SUPER, oox::drawingml::DOCUMENT_PPTX, FSNS(), LanguageTag::getBcp47MS(), GetDocumentType(), GetFB(), GetProperty(), GetPropertyAndState(), oox::getRelationship(), GetSubsFontName(), oox::HYPERLINK, oox::drawingml::URLTransformer::isExternalURL(), IsFontworkShape(), LanguageTag::isSystemLocale(), italic, oox::drawingml::lcl_GetTarget(), mAny, oox::drawingml::MAX_PERCENT, mbIsBackgroundDark, mpFB, mpFS, nIndex, oox::drawingml::PER_PERCENT, SAL_INFO, oox::SLIDE, underline, sax_fastparser::UseIf(), WriteBlipOrNormalFill(), WriteCharColor(), WriteColor(), WriteOutline(), WriteShapeEffects(), and WriteSolidFill().
Referenced by oox::drawingml::ChartExport::exportTextProps(), oox::drawingml::ChartExport::exportTitle(), WriteLstStyles(), WriteParagraph(), and WriteRun().
void oox::drawingml::DrawingML::WriteShapeEffect | ( | std::u16string_view | sName, |
const css::uno::Sequence< css::beans::PropertyValue > & | aEffectProps | ||
) |
Definition at line 4799 of file drawingml.cxx.
References FSNS(), oox::drawingml::MAX_PERCENT, mpFS, u, and WriteColor().
Referenced by WriteGlowEffect(), WriteShapeEffects(), and WriteSoftEdgeEffect().
void oox::drawingml::DrawingML::WriteShapeEffects | ( | const css::uno::Reference< css::beans::XPropertySet > & | rXPropSet | ) |
Definition at line 4988 of file drawingml.cxx.
References bHasShadow, oox::drawingml::convertHmmToEmu(), GetProperty(), oox::drawingml::lcl_CalculateDir(), oox::drawingml::lcl_CalculateDist(), comphelper::makePropertyValue(), mAny, mpFS, u, WriteGlowEffect(), WriteShapeEffect(), and WriteSoftEdgeEffect().
Referenced by oox::drawingml::ShapeExport::WriteCustomShape(), oox::drawingml::ShapeExport::WriteGraphicObjectShapePart(), WriteRunProperties(), oox::drawingml::ShapeExport::WriteTable(), and oox::drawingml::ShapeExport::WriteTextShape().
void oox::drawingml::DrawingML::WriteShapeStyle | ( | const css::uno::Reference< css::beans::XPropertySet > & | rXPropSet | ) |
Definition at line 4771 of file drawingml.cxx.
References GetProperty(), mAny, mpFS, and WriteStyleProperties().
Referenced by oox::drawingml::ShapeExport::WriteCustomShape(), and oox::drawingml::ShapeExport::WriteLineShape().
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 |
||
) |
Definition at line 1891 of file drawingml.cxx.
References basegfx::utils::createRotateB2DHomMatrix(), oox::drawingml::DOCUMENT_DOCX, oox::drawingml::ExportRotateClockwisify(), GetDocumentType(), Range2D< double, DoubleTraits >::getMinX(), Range2D< double, DoubleTraits >::getMinY(), SdrObject::GetRotateAngle(), SdrObject::getSdrObjectFromXShape(), IsGroupShape(), m_xParent, NormAngle36000(), Point, SAL_INFO, toRadians(), basegfx::B2DRange::transform(), UNO_NAME_MISC_OBJ_INTEROPGRABBAG, and WriteTransformation().
Referenced by oox::drawingml::ChartExport::WriteChartObj(), oox::drawingml::ShapeExport::WriteCustomShape(), oox::drawingml::ShapeExport::WriteEllipseShape(), oox::drawingml::ShapeExport::WriteGraphicObjectShapePart(), oox::drawingml::ShapeExport::WriteGroupShape(), oox::drawingml::ShapeExport::WriteLineShape(), oox::drawingml::ShapeExport::WriteMathShape(), oox::drawingml::ShapeExport::WriteOLE2Shape(), oox::drawingml::ShapeExport::WriteRectangleShape(), oox::drawingml::DMLPresetShapeExporter::WriteShape(), oox::drawingml::DMLPresetShapeExporter::WriteShapeWithAVlist(), oox::drawingml::ShapeExport::WriteTableShape(), and oox::drawingml::ShapeExport::WriteTextShape().
|
protected |
Definition at line 5160 of file drawingml.cxx.
References oox::drawingml::convertHmmToEmu(), comphelper::makePropertyValue(), u, and WriteShapeEffect().
Referenced by WriteShapeEffects().
void oox::drawingml::DrawingML::WriteSolidFill | ( | ::Color | nColor, |
sal_Int32 | nAlpha = MAX_PERCENT |
||
) |
Definition at line 475 of file drawingml.cxx.
References mpFS, and WriteColor().
Referenced by oox::drawingml::ChartExport::exportMarker(), oox::drawingml::ChartExport::exportSolidFill(), oox::drawingml::ShapeExport::WriteBorderLine(), WriteFill(), WriteOutline(), and WriteRunProperties().
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 | ||
) |
Definition at line 1786 of file drawingml.cxx.
References Graphic::GetPrefMapMode(), Graphic::GetPrefSize(), and WriteGraphicCropProperties().
Referenced by oox::drawingml::ShapeExport::WriteGraphicObjectShapePart(), and WriteXGraphicBlipFill().
|
protected |
Definition at line 4744 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 |
||
) |
Definition at line 3237 of file drawingml.cxx.
References Any, any, oox::drawingml::calcRotationValue(), oox::drawingml::convertHmmToEmu(), SdrTextObj::CreateEditOutlinerParaObject(), DEFLRINS, DEFTBINS, oox::drawingml::DOCUMENT_DOCX, oox::drawingml::DOCUMENT_PPTX, oox::drawingml::DOCUMENT_XLSX, eMode, GetDocumentType(), SdrTextObj::GetFontScaleY(), PresetGeometryTypeNames::GetMsoName(), SdrTextObj::GetOutlinerParaObject(), GetProperty(), SvxShape::GetSdrObject(), SdrObject::getSdrObjectFromXShape(), oox::drawingml::GetTextVerticalAdjust(), oox::drawingml::DMLTextExport::GetUnoTextFrame(), namespaces::i, IsFontworkShape(), SdrTextObj::IsTextEditActive(), mAny, mpFS, mpTextExport, paragraph, sName, u, sax_fastparser::UseIf(), Value, Write3DEffects(), WriteLstStyles(), oox::drawingml::DMLTextExport::WriteOutliner(), WriteParagraph(), and WritingMode.
Referenced by oox::drawingml::ShapeExport::WriteTextBox().
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 |
||
) |
Definition at line 1852 of file drawingml.cxx.
References oox::drawingml::convertHmmToEmu(), oox::drawingml::DOCUMENT_DOCX, GetDocumentType(), tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), tools::Rectangle::Left(), m_xParent, mpFS, tools::Rectangle::Top(), and sax_fastparser::UseIf().
Referenced by oox::drawingml::ShapeExport::WriteConnectorShape(), WriteDiagram(), oox::drawingml::ShapeExport::WritePolyPolygonShape(), and WriteShapeTransformation().
OString oox::drawingml::DrawingML::WriteWdpPicture | ( | const OUString & | rFileId, |
const css::uno::Sequence< sal_Int8 > & | rPictureData | ||
) |
Definition at line 5521 of file drawingml.cxx.
References oox::core::XmlFilterBase::addRelation(), GetComponentDir(), GetRelationCompPrefix(), oox::getRelationship(), oox::HDPHOTO, maWdpCache, mnWdpImageCounter, mpFB, mpFS, oox::core::XmlFilterBase::openFragmentStream(), OUStringToOString(), and sId.
Referenced by WriteArtisticEffect().
OUString oox::drawingml::DrawingML::WriteXGraphicBlip | ( | css::uno::Reference< css::beans::XPropertySet > const & | rXPropSet, |
css::uno::Reference< css::graphic::XGraphic > const & | rxGraphic, | ||
bool | bRelPathToMedia | ||
) |
Definition at line 1579 of file drawingml.cxx.
References FSNS(), mpFS, WriteArtisticEffect(), WriteImage(), and WriteImageBrightnessContrastTransparence().
Referenced by oox::drawingml::ShapeExport::WriteGraphicObjectShapePart(), and WriteXGraphicBlipFill().
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 |
||
) |
Definition at line 1666 of file drawingml.cxx.
References oox::drawingml::DOCUMENT_DOCX, GetDocumentType(), GetProperty(), mAny, mpFS, WriteSrcRectXGraphic(), WriteXGraphicBlip(), WriteXGraphicBlipMode(), and WriteXGraphicStretch().
Referenced by oox::drawingml::ChartExport::exportBitmapFill().
void oox::drawingml::DrawingML::WriteXGraphicBlipMode | ( | css::uno::Reference< css::beans::XPropertySet > const & | rXPropSet, |
css::uno::Reference< css::graphic::XGraphic > const & | rxGraphic | ||
) |
Definition at line 1602 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 | ||
) |
Definition at line 1795 of file drawingml.cxx.
References oox::drawingml::DOCUMENT_DOCX, GetDocumentType(), Graphic::GetPrefSize(), GetProperty(), mAny, and mpFS.
Referenced by WriteXGraphicBlipFill(), and WriteXGraphicBlipMode().
|
protected |
If set, this is the parent of the currently handled shape.
Definition at line 163 of file drawingml.hxx.
Referenced by oox::drawingml::ShapeExport::WriteConnectorShape(), oox::drawingml::ShapeExport::WriteGroupShape(), oox::drawingml::ShapeExport::WritePolyPolygonShape(), WriteShapeTransformation(), and WriteTransformation().
|
staticprivate |
Definition at line 150 of file drawingml.hxx.
Referenced by PopExportGraphics(), PushExportGraphics(), and WriteImage().
|
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::exportSeriesCategory(), oox::drawingml::ChartExport::exportSmooth(), oox::drawingml::ChartExport::exportSolidFill(), oox::drawingml::ChartExport::exportView3D(), getBulletMarginIndentation(), GetFieldValue(), GetProperty(), GetPropertyAndState(), oox::drawingml::ShapeExport::GetShapeName(), oox::drawingml::ChartExport::isDeep3dChart(), IsFontworkShape(), Write3DEffects(), 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(), WriteShapeEffects(), WriteShapeStyle(), WriteText(), oox::drawingml::ShapeExport::WriteTextShape(), WriteXGraphicBlipFill(), WriteXGraphicBlipMode(), and WriteXGraphicStretch().
|
staticprivate |
Definition at line 147 of file drawingml.hxx.
Referenced by ResetCounters(), and WriteWdpPicture().
|
protected |
Definition at line 164 of file drawingml.hxx.
Referenced by WriteParagraphNumbering(), and WriteRunProperties().
|
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().
|
staticprivate |
Definition at line 148 of file drawingml.hxx.
Referenced by ResetMlCounters().
|
staticprivate |
Definition at line 145 of file drawingml.hxx.
Referenced by ResetCounters(), WriteImage(), and WriteMediaNonVisualProperties().
|
staticprivate |
Definition at line 149 of file drawingml.hxx.
Referenced by ResetMlCounters().
|
staticprivate |
Definition at line 146 of file drawingml.hxx.
Referenced by ResetCounters(), and WriteWdpPicture().
|
protected |
Definition at line 161 of file drawingml.hxx.
Referenced by WriteArtisticEffect(), oox::drawingml::ChartExport::WriteChartObj(), oox::drawingml::ShapeExport::WriteCustomShape(), WriteDiagram(), writeDiagramRels(), oox::drawingml::ShapeExport::WriteGraphicObjectShapePart(), WriteImage(), oox::drawingml::ShapeExport::WriteMathShape(), WriteMediaNonVisualProperties(), oox::drawingml::ShapeExport::WriteOLE2Shape(), WriteRunProperties(), oox::drawingml::ShapeExport::WriteTextShape(), and WriteWdpPicture().
|
protected |
Definition at line 160 of file drawingml.hxx.
Referenced by oox::drawingml::ChartExport::exportFill(), oox::drawingml::ChartExport::exportGradientFill(), oox::drawingml::ChartExport::exportSolidFill(), Write3DEffects(), WriteArtisticEffect(), oox::drawingml::ShapeExport::WriteBorderLine(), WriteCharColor(), oox::drawingml::ChartExport::WriteChartObj(), WriteColor(), WriteColorTransformations(), WriteConnectorConnections(), WriteCustomGeometry(), WriteCustomGeometryPoint(), WriteCustomGeometrySegment(), oox::drawingml::ShapeExport::WriteCustomShape(), WriteDiagram(), WriteEmptyCustomGeometry(), WriteFill(), WriteFillColor(), 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(), 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().
|
private |
Parent exporter, used for text callback.
Definition at line 155 of file drawingml.hxx.
Referenced by WriteText().