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

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 1003 of file objectformatter.cxx.

References make_shared().

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

Definition at line 1008 of file objectformatter.cxx.

Member Function Documentation

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 1131 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 
)
void oox::drawingml::chart::ObjectFormatter::convertFrameFormatting ( PropertySet rPropSet,
const ModelRef< Shape > &  rxShapeProp,
ObjectType  eObjType,
sal_Int32  nSeriesIdx = -1 
)
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 1028 of file objectformatter.cxx.

References mxData.

void oox::drawingml::chart::ObjectFormatter::convertNumberFormat ( PropertySet rPropSet,
const NumberFormat rNumberFormat,
bool  bAxis,
bool  bShowPercent = false 
)
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 1034 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 1046 of file objectformatter.cxx.

References mxData.

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

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

Definition at line 1017 of file objectformatter.cxx.

References mxData.

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

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 1137 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 1012 of file objectformatter.cxx.

References mxData.

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

Member Data Documentation

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

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