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

#include <objectformatter.hxx>

Public Member Functions

 ObjectFormatter (const ::oox::core::XmlFilterBase &rFilter, const css::uno::Reference< css::chart2::XChartDocument > &rxChartDoc, const ChartSpaceModel &rChartSpace)
 
 ~ObjectFormatter ()
 
void setMaxSeriesIndex (sal_Int32 nMaxSeriesIdx)
 Sets the maximum series index used for color cycling/fading. More...
 
sal_Int32 getMaxSeriesIndex () const
 Returns the current maximum series index used for color cycling/fading. More...
 
void convertFrameFormatting (PropertySet &rPropSet, const ModelRef< Shape > &rxShapeProp, ObjectType eObjType, sal_Int32 nSeriesIdx=-1)
 Sets frame formatting properties to the passed property set. More...
 
void convertFrameFormatting (PropertySet &rPropSet, const ModelRef< Shape > &rxShapeProp, const PictureOptionsModel &rPicOptions, ObjectType eObjType, sal_Int32 nSeriesIdx=-1)
 Sets frame formatting properties to the passed property set. More...
 
void convertTextFormatting (PropertySet &rPropSet, const ModelRef< TextBody > &rxTextProp, ObjectType eObjType)
 Sets text formatting properties to the passed property set. More...
 
void convertFormatting (PropertySet &rPropSet, const ModelRef< Shape > &rxShapeProp, const ModelRef< TextBody > &rxTextProp, ObjectType eObjType)
 Sets frame/text formatting properties to the passed property set. More...
 
void convertTextFormatting (PropertySet &rPropSet, const TextCharacterProperties &rTextProps, ObjectType eObjType)
 Sets text formatting properties to the passed property set. More...
 
void convertNumberFormat (PropertySet &rPropSet, const NumberFormat &rNumberFormat, bool bAxis, bool bShowPercent=false)
 Sets number format properties to the passed property set. More...
 
void convertAutomaticFill (PropertySet &rPropSet, ObjectType eObjType, sal_Int32 nSeriesIdx)
 Sets automatic fill properties to the passed property set. More...
 

Static Public Member Functions

static void convertTextRotation (PropertySet &rPropSet, const ModelRef< TextBody > &rxTextProp, bool bSupportsStacked, sal_Int32 nDefaultRotation=0)
 Sets text rotation properties to the passed property set. More...
 
static void convertTextWrap (PropertySet &rPropSet, const ModelRef< TextBody > &rxTextProp)
 Sets text wrap properties to the passed property set. More...
 
static bool isAutomaticFill (const ModelRef< Shape > &rxShapeProp)
 Returns true, if the passed shape properties have automatic fill mode. More...
 

Private Attributes

std::shared_ptr< ObjectFormatterDatamxData
 

Detailed Description

Definition at line 70 of file objectformatter.hxx.

Constructor & Destructor Documentation

◆ ObjectFormatter()

oox::drawingml::chart::ObjectFormatter::ObjectFormatter ( const ::oox::core::XmlFilterBase rFilter,
const css::uno::Reference< css::chart2::XChartDocument > &  rxChartDoc,
const ChartSpaceModel rChartSpace 
)
explicit

Definition at line 1013 of file objectformatter.cxx.

References make_shared().

◆ ~ObjectFormatter()

oox::drawingml::chart::ObjectFormatter::~ObjectFormatter ( )

Definition at line 1018 of file objectformatter.cxx.

Member Function Documentation

◆ convertAutomaticFill()

void oox::drawingml::chart::ObjectFormatter::convertAutomaticFill ( PropertySet rPropSet,
ObjectType  eObjType,
sal_Int32  nSeriesIdx 
)

Sets automatic fill properties to the passed property set.

Definition at line 1141 of file objectformatter.cxx.

References mxData.

Referenced by oox::drawingml::chart::SeriesConverter::createDataSeries().

◆ convertFormatting()

void oox::drawingml::chart::ObjectFormatter::convertFormatting ( PropertySet rPropSet,
const ModelRef< Shape > &  rxShapeProp,
const ModelRef< TextBody > &  rxTextProp,
ObjectType  eObjType 
)

◆ convertFrameFormatting() [1/2]

void oox::drawingml::chart::ObjectFormatter::convertFrameFormatting ( PropertySet rPropSet,
const ModelRef< Shape > &  rxShapeProp,
const PictureOptionsModel rPicOptions,
ObjectType  eObjType,
sal_Int32  nSeriesIdx = -1 
)

Sets frame formatting properties to the passed property set.

Definition at line 1038 of file objectformatter.cxx.

References mxData.

◆ convertFrameFormatting() [2/2]

void oox::drawingml::chart::ObjectFormatter::convertFrameFormatting ( PropertySet rPropSet,
const ModelRef< Shape > &  rxShapeProp,
ObjectType  eObjType,
sal_Int32  nSeriesIdx = -1 
)

◆ convertNumberFormat()

void oox::drawingml::chart::ObjectFormatter::convertNumberFormat ( PropertySet rPropSet,
const NumberFormat rNumberFormat,
bool  bAxis,
bool  bShowPercent = false 
)

◆ convertTextFormatting() [1/2]

void oox::drawingml::chart::ObjectFormatter::convertTextFormatting ( PropertySet rPropSet,
const ModelRef< TextBody > &  rxTextProp,
ObjectType  eObjType 
)

Sets text formatting properties to the passed property set.

Definition at line 1044 of file objectformatter.cxx.

References mxData.

Referenced by oox::drawingml::chart::TextConverter::createStringSequence().

◆ convertTextFormatting() [2/2]

void oox::drawingml::chart::ObjectFormatter::convertTextFormatting ( PropertySet rPropSet,
const TextCharacterProperties rTextProps,
ObjectType  eObjType 
)

Sets text formatting properties to the passed property set.

Definition at line 1056 of file objectformatter.cxx.

References mxData.

◆ convertTextRotation()

void oox::drawingml::chart::ObjectFormatter::convertTextRotation ( PropertySet rPropSet,
const ModelRef< TextBody > &  rxTextProp,
bool  bSupportsStacked,
sal_Int32  nDefaultRotation = 0 
)
static

◆ convertTextWrap()

void oox::drawingml::chart::ObjectFormatter::convertTextWrap ( PropertySet rPropSet,
const ModelRef< TextBody > &  rxTextProp 
)
static

◆ getMaxSeriesIndex()

sal_Int32 oox::drawingml::chart::ObjectFormatter::getMaxSeriesIndex ( ) const

Returns the current maximum series index used for color cycling/fading.

Definition at line 1027 of file objectformatter.cxx.

References mxData.

Referenced by oox::drawingml::chart::SeriesConverter::createDataSeries().

◆ isAutomaticFill()

bool oox::drawingml::chart::ObjectFormatter::isAutomaticFill ( const ModelRef< Shape > &  rxShapeProp)
static

Returns true, if the passed shape properties have automatic fill mode.

Definition at line 1147 of file objectformatter.cxx.

Referenced by oox::drawingml::chart::SeriesConverter::createDataSeries().

◆ setMaxSeriesIndex()

void oox::drawingml::chart::ObjectFormatter::setMaxSeriesIndex ( sal_Int32  nMaxSeriesIdx)

Sets the maximum series index used for color cycling/fading.

Definition at line 1022 of file objectformatter.cxx.

References mxData.

Referenced by oox::drawingml::chart::PlotAreaConverter::convertFromModel(), and oox::drawingml::chart::SeriesConverter::createDataSeries().

Member Data Documentation

◆ mxData

std::shared_ptr< ObjectFormatterData > oox::drawingml::chart::ObjectFormatter::mxData
private

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