LibreOffice Module oox (master) 1
|
#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< ObjectFormatterData > | mxData |
Definition at line 70 of file objectformatter.hxx.
|
explicit |
Definition at line 1013 of file objectformatter.cxx.
References make_shared().
oox::drawingml::chart::ObjectFormatter::~ObjectFormatter | ( | ) |
Definition at line 1018 of file objectformatter.cxx.
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().
void oox::drawingml::chart::ObjectFormatter::convertFormatting | ( | PropertySet & | rPropSet, |
const ModelRef< Shape > & | rxShapeProp, | ||
const ModelRef< TextBody > & | rxTextProp, | ||
ObjectType | eObjType | ||
) |
Sets frame/text formatting properties to the passed property set.
Definition at line 1050 of file objectformatter.cxx.
References mxData.
Referenced by oox::drawingml::chart::AxisConverter::convertFromModel(), oox::drawingml::chart::LegendConverter::convertFromModel(), oox::drawingml::chart::DataTableConverter::convertFromModel(), and oox::drawingml::chart::TrendlineLabelConverter::convertFromModel().
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.
void oox::drawingml::chart::ObjectFormatter::convertFrameFormatting | ( | PropertySet & | rPropSet, |
const ModelRef< Shape > & | rxShapeProp, | ||
ObjectType | eObjType, | ||
sal_Int32 | nSeriesIdx = -1 |
||
) |
Sets frame formatting properties to the passed property set.
Definition at line 1032 of file objectformatter.cxx.
References mxData.
Referenced by oox::drawingml::chart::UpDownBarsConverter::convertFromModel(), oox::drawingml::chart::AxisConverter::convertFromModel(), oox::drawingml::chart::ErrorBarConverter::convertFromModel(), oox::drawingml::chart::TrendlineConverter::convertFromModel(), oox::drawingml::chart::DataPointConverter::convertFromModel(), oox::drawingml::chart::TypeGroupConverter::convertFromModel(), oox::drawingml::chart::WallFloorConverter::convertFromModel(), oox::drawingml::chart::TitleConverter::convertFromModel(), oox::drawingml::chart::ChartSpaceConverter::convertFromModel(), oox::drawingml::chart::PlotAreaConverter::convertFromModel(), and oox::drawingml::chart::SeriesConverter::createDataSeries().
void oox::drawingml::chart::ObjectFormatter::convertNumberFormat | ( | PropertySet & | rPropSet, |
const NumberFormat & | rNumberFormat, | ||
bool | bAxis, | ||
bool | bShowPercent = false |
||
) |
Sets number format properties to the passed property set.
Definition at line 1109 of file objectformatter.cxx.
References Any, Exception, oox::drawingml::chart::NumberFormat::maFormatCode, oox::drawingml::chart::NumberFormat::mbSourceLinked, mxData, nIndex, OUStringToOString(), PROP_LinkNumberFormatToSource, PROP_NumberFormat, PROP_PercentageNumberFormat, and oox::PropertySet::setProperty().
Referenced by oox::drawingml::chart::AxisConverter::convertFromModel().
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().
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.
|
static |
Sets text rotation properties to the passed property set.
Definition at line 1062 of file objectformatter.cxx.
References oox::drawingml::chart::ModelRef< ModelType >::is(), PROP_TextRotation, and oox::PropertySet::setProperty().
Referenced by oox::drawingml::chart::AxisConverter::convertFromModel(), and oox::drawingml::chart::TitleConverter::convertFromModel().
|
static |
Sets text wrap properties to the passed property set.
Definition at line 1087 of file objectformatter.cxx.
References Any, oox::PropertyMap::getProperty(), oox::PropertyMap::hasProperty(), oox::drawingml::chart::ModelRef< ModelType >::is(), PROP_TextWordWrap, and oox::PropertySet::setProperty().
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().
|
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().
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().
|
private |
Definition at line 146 of file objectformatter.hxx.
Referenced by convertAutomaticFill(), convertFormatting(), convertFrameFormatting(), convertNumberFormat(), convertTextFormatting(), getMaxSeriesIndex(), and setMaxSeriesIndex().