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

#include <typegroupconverter.hxx>

Inheritance diagram for oox::drawingml::chart::TypeGroupConverter:
[legend]
Collaboration diagram for oox::drawingml::chart::TypeGroupConverter:
[legend]

Public Member Functions

 TypeGroupConverter (const ConverterRoot &rParent, TypeGroupModel &rModel)
 
virtual ~TypeGroupConverter () override
 
const TypeGroupInfogetTypeInfo () const
 Returns the type info struct that describes this chart type group. More...
 
bool isStacked () const
 Returns true, if the series in this chart type group are stacked on each other (no percentage). More...
 
bool isPercent () const
 Returns true, if the series in this chart type group are stacked on each other as percentage. More...
 
bool is3dChart () const
 Returns true, if the chart is three-dimensional. More...
 
bool isWall3dChart () const
 Returns true, if chart type supports wall and floor format in 3D mode. More...
 
bool isDeep3dChart () const
 Returns true, if the series in this chart type group are ordered on the Z axis. More...
 
bool isSeriesFrameFormat () const
 Returns true, if this chart type supports area formatting for its series. More...
 
ObjectType getSeriesObjectType () const
 Returns the object type for a series depending on the chart type. More...
 
OUString getSingleSeriesTitle () const
 Returns series title, if the chart type group contains only one single series. More...
 
css::uno::Reference< css::chart2::XCoordinateSystem > createCoordinateSystem ()
 Creates a coordinate system according to the contained chart type. More...
 
css::uno::Reference< css::chart2::data::XLabeledDataSequence > createCategorySequence ()
 Creates a labeled data sequence object for axis categories. More...
 
void convertFromModel (const css::uno::Reference< css::chart2::XDiagram > &rxDiagram, const css::uno::Reference< css::chart2::XCoordinateSystem > &rxCoordSystem, sal_Int32 nAxesSetIdx, bool bSupportsVaryColorsByPoint)
 Converts the OOXML type group model into a chart2 coordinate system. More...
 
void convertMarker (PropertySet &rPropSet, sal_Int32 nOoxSymbol, sal_Int32 nOoxSize, const ModelRef< Shape > &xShapeProps) const
 Sets the passed OOXML marker style at the passed property set. More...
 
void convertLineSmooth (PropertySet &rPropSet, bool bOoxSmooth) const
 Sets the passed OOXML line smoothing at the passed property set. More...
 
void convertBarGeometry (PropertySet &rPropSet, sal_Int32 nOoxShape) const
 Sets the passed OOXML bar 3D geometry at the passed property set. More...
 
void convertPieRotation (PropertySet &rPropSet, sal_Int32 nOoxAngle) const
 Sets the passed OOXML pie rotation at the passed property set. More...
 
void convertPieExplosion (PropertySet &rPropSet, sal_Int32 nOoxExplosion) const
 Sets the passed OOXML pie explosion at the passed property set. More...
 
- Public Member Functions inherited from oox::drawingml::chart::ConverterBase< TypeGroupModel >
const TypeGroupModelgetModel () const
 
- Public Member Functions inherited from oox::drawingml::chart::ConverterRoot
 ConverterRoot (::oox::core::XmlFilterBase &rFilter, ChartConverter &rChartConverter, const ChartSpaceModel &rChartModel, const css::uno::Reference< css::chart2::XChartDocument > &rxChartDoc, const css::awt::Size &rChartSize)
 
virtual ~ConverterRoot ()
 
 ConverterRoot (ConverterRoot const &)=default
 
 ConverterRoot (ConverterRoot &&)=default
 
ConverterRootoperator= (ConverterRoot const &)=default
 
ConverterRootoperator= (ConverterRoot &&)=default
 
css::uno::Reference< css::uno::XInterface > createInstance (const OUString &rServiceName) const
 Creates an instance for the passed service name, using the process service factory. More...
 
css::uno::Reference< css::uno::XComponentContext > const & getComponentContext () const
 

Private Member Functions

void insertDataSeries (const css::uno::Reference< css::chart2::XChartType > &rxChartType, const css::uno::Reference< css::chart2::XDataSeries > &rxSeries, sal_Int32 nAxesSetIdx)
 Inserts the passed series into the chart type. More...
 

Private Attributes

TypeGroupInfo maTypeInfo
 
bool mb3dChart
 Extended type info for contained chart type model. More...
 

Additional Inherited Members

- Protected Member Functions inherited from oox::drawingml::chart::ConverterBase< TypeGroupModel >
 ConverterBase (const ConverterRoot &rParent, TypeGroupModel &rModel)
 
virtual ~ConverterBase () override
 
- Protected Member Functions inherited from oox::drawingml::chart::ConverterRoot
::oox::core::XmlFilterBasegetFilter () const
 Returns the filter object of the imported/exported document. More...
 
ChartConvertergetChartConverter () const
 Returns the chart converter. More...
 
css::uno::Reference< css::chart2::XChartDocument > const & getChartDocument () const
 Returns the API chart document model. More...
 
const css::awt::Size & getChartSize () const
 Returns the position and size of the chart shape in 1/100 mm. More...
 
ObjectFormattergetFormatter () const
 Returns the object formatter. More...
 
void registerTitleLayout (const css::uno::Reference< css::chart2::XTitle > &rxTitle, const ModelRef< LayoutModel > &rxLayout, ObjectType eObjType, sal_Int32 nMainIdx, sal_Int32 nSubIdx)
 Registers a title object and its layout data, needed for conversion of the title position using the old Chart1 API. More...
 
void convertTitlePositions ()
 Converts the positions of the main title and all axis titles. More...
 
- Static Protected Member Functions inherited from oox::drawingml::chart::ConverterRoot
static css::awt::Size getDefaultPageSize ()
 Returns the default position and size of the chart shape in 1/100 mm. More...
 
- Protected Attributes inherited from oox::drawingml::chart::ConverterBase< TypeGroupModel >
TypeGroupModelmrModel
 

Detailed Description

Definition at line 108 of file typegroupconverter.hxx.

Constructor & Destructor Documentation

◆ TypeGroupConverter()

oox::drawingml::chart::TypeGroupConverter::TypeGroupConverter ( const ConverterRoot rParent,
TypeGroupModel rModel 
)
explicit

◆ ~TypeGroupConverter()

oox::drawingml::chart::TypeGroupConverter::~TypeGroupConverter ( )
overridevirtual

Definition at line 191 of file typegroupconverter.cxx.

Member Function Documentation

◆ convertBarGeometry()

void oox::drawingml::chart::TypeGroupConverter::convertBarGeometry ( PropertySet rPropSet,
sal_Int32  nOoxShape 
) const

◆ convertFromModel()

void oox::drawingml::chart::TypeGroupConverter::convertFromModel ( const css::uno::Reference< css::chart2::XDiagram > &  rxDiagram,
const css::uno::Reference< css::chart2::XCoordinateSystem > &  rxCoordSystem,
sal_Int32  nAxesSetIdx,
bool  bSupportsVaryColorsByPoint 
)

Converts the OOXML type group model into a chart2 coordinate system.

Definition at line 309 of file typegroupconverter.cxx.

References comphelper::containerToSequence(), oox::drawingml::chart::ObjectFormatter::convertFrameFormatting(), oox::drawingml::chart::UpDownBarsConverter::convertFromModel(), convertLineSmooth(), convertPieRotation(), oox::drawingml::chart::SeriesConverter::createDataSeries(), oox::drawingml::chart::ConverterRoot::createInstance(), Exception, oox::drawingml::chart::ConverterRoot::getFormatter(), oox::drawingml::chart::ConverterBase< ModelType >::getModel(), insertDataSeries(), oox::drawingml::chart::ModelRef< ModelType >::is(), is3dChart(), isPercent(), isStacked(), oox::drawingml::chart::TypeGroupModel::maSeries, maTypeInfo, mb3dChart, oox::drawingml::chart::SeriesModel::mbSmooth, oox::drawingml::chart::TypeGroupModel::mbVaryColors, oox::drawingml::chart::TypeGroupInfo::meTypeCategory, oox::drawingml::chart::TypeGroupInfo::meTypeId, oox::drawingml::chart::TypeGroupInfo::meVarPointMode, oox::drawingml::chart::TypeGroupModel::mnFirstAngle, oox::drawingml::chart::TypeGroupModel::mnGapWidth, oox::drawingml::chart::TypeGroupModel::mnOverlap, oox::drawingml::chart::TypeGroupInfo::mpcServiceName, oox::drawingml::chart::ConverterBase< TypeGroupModel >::mrModel, oox::drawingml::chart::TypeGroupModel::mxHiLowLines, oox::drawingml::chart::TypeGroupModel::mxSerLines, oox::drawingml::chart::TypeGroupModel::mxUpDownBars, oox::drawingml::chart::OBJECTTYPE_HILOLINE, PROP_LineStyle, oox::PropertySet::setProperty(), oox::drawingml::chart::TYPECATEGORY_BAR, oox::drawingml::chart::TYPECATEGORY_PIE, oox::drawingml::chart::TYPEID_DOUGHNUT, oox::drawingml::chart::TYPEID_OFPIE, oox::drawingml::chart::TYPEID_STOCK, oox::drawingml::chart::VARPOINTMODE_MULTI, oox::drawingml::chart::VARPOINTMODE_NONE, and oox::drawingml::chart::VARPOINTMODE_SINGLE.

◆ convertLineSmooth()

void oox::drawingml::chart::TypeGroupConverter::convertLineSmooth ( PropertySet rPropSet,
bool  bOoxSmooth 
) const

◆ convertMarker()

void oox::drawingml::chart::TypeGroupConverter::convertMarker ( PropertySet rPropSet,
sal_Int32  nOoxSymbol,
sal_Int32  nOoxSize,
const ModelRef< Shape > &  xShapeProps 
) const

◆ convertPieExplosion()

void oox::drawingml::chart::TypeGroupConverter::convertPieExplosion ( PropertySet rPropSet,
sal_Int32  nOoxExplosion 
) const

◆ convertPieRotation()

void oox::drawingml::chart::TypeGroupConverter::convertPieRotation ( PropertySet rPropSet,
sal_Int32  nOoxAngle 
) const

◆ createCategorySequence()

Reference< XLabeledDataSequence > oox::drawingml::chart::TypeGroupConverter::createCategorySequence ( )

◆ createCoordinateSystem()

Reference< XCoordinateSystem > oox::drawingml::chart::TypeGroupConverter::createCoordinateSystem ( )

◆ getSeriesObjectType()

ObjectType oox::drawingml::chart::TypeGroupConverter::getSeriesObjectType ( ) const

◆ getSingleSeriesTitle()

OUString oox::drawingml::chart::TypeGroupConverter::getSingleSeriesTitle ( ) const

◆ getTypeInfo()

const TypeGroupInfo & oox::drawingml::chart::TypeGroupConverter::getTypeInfo ( ) const
inline

◆ insertDataSeries()

void oox::drawingml::chart::TypeGroupConverter::insertDataSeries ( const css::uno::Reference< css::chart2::XChartType > &  rxChartType,
const css::uno::Reference< css::chart2::XDataSeries > &  rxSeries,
sal_Int32  nAxesSetIdx 
)
private

Inserts the passed series into the chart type.

Adds additional properties to the series.

Definition at line 571 of file typegroupconverter.cxx.

References Exception, isDeep3dChart(), isPercent(), isStacked(), and oox::PropertySet::setProperty().

Referenced by convertFromModel().

◆ is3dChart()

bool oox::drawingml::chart::TypeGroupConverter::is3dChart ( ) const
inline

Returns true, if the chart is three-dimensional.

Definition at line 122 of file typegroupconverter.hxx.

References mb3dChart.

Referenced by convertFromModel().

◆ isDeep3dChart()

bool oox::drawingml::chart::TypeGroupConverter::isDeep3dChart ( ) const

Returns true, if the series in this chart type group are ordered on the Z axis.

Definition at line 210 of file typegroupconverter.cxx.

References isWall3dChart(), oox::drawingml::chart::TypeGroupModel::mnGrouping, and oox::drawingml::chart::ConverterBase< TypeGroupModel >::mrModel.

Referenced by insertDataSeries().

◆ isPercent()

bool oox::drawingml::chart::TypeGroupConverter::isPercent ( ) const

Returns true, if the series in this chart type group are stacked on each other as percentage.

Definition at line 200 of file typegroupconverter.cxx.

References maTypeInfo, oox::drawingml::chart::TypeGroupInfo::mbSupportsStacking, oox::drawingml::chart::TypeGroupModel::mnGrouping, and oox::drawingml::chart::ConverterBase< TypeGroupModel >::mrModel.

Referenced by convertFromModel(), and insertDataSeries().

◆ isSeriesFrameFormat()

bool oox::drawingml::chart::TypeGroupConverter::isSeriesFrameFormat ( ) const

Returns true, if this chart type supports area formatting for its series.

Definition at line 215 of file typegroupconverter.cxx.

References maTypeInfo, mb3dChart, and oox::drawingml::chart::TypeGroupInfo::mbSeriesIsFrame2d.

Referenced by convertLineSmooth(), convertMarker(), and oox::drawingml::chart::SeriesConverter::createDataSeries().

◆ isStacked()

bool oox::drawingml::chart::TypeGroupConverter::isStacked ( ) const

Returns true, if the series in this chart type group are stacked on each other (no percentage).

Definition at line 195 of file typegroupconverter.cxx.

References maTypeInfo, oox::drawingml::chart::TypeGroupInfo::mbSupportsStacking, oox::drawingml::chart::TypeGroupModel::mnGrouping, and oox::drawingml::chart::ConverterBase< TypeGroupModel >::mrModel.

Referenced by convertFromModel(), and insertDataSeries().

◆ isWall3dChart()

bool oox::drawingml::chart::TypeGroupConverter::isWall3dChart ( ) const

Returns true, if chart type supports wall and floor format in 3D mode.

Definition at line 205 of file typegroupconverter.cxx.

References maTypeInfo, mb3dChart, oox::drawingml::chart::TypeGroupInfo::meTypeCategory, and oox::drawingml::chart::TYPECATEGORY_PIE.

Referenced by isDeep3dChart().

Member Data Documentation

◆ maTypeInfo

TypeGroupInfo oox::drawingml::chart::TypeGroupConverter::maTypeInfo
private

◆ mb3dChart

bool oox::drawingml::chart::TypeGroupConverter::mb3dChart
private

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