LibreOffice Module oox (master) 1
|
#include <typegroupconverter.hxx>
Public Member Functions | |
TypeGroupConverter (const ConverterRoot &rParent, TypeGroupModel &rModel) | |
virtual | ~TypeGroupConverter () override |
const TypeGroupInfo & | getTypeInfo () 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... | |
![]() | |
const TypeGroupModel & | getModel () const |
![]() | |
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 | |
ConverterRoot & | operator= (ConverterRoot const &)=default |
ConverterRoot & | operator= (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 | |
![]() | |
ConverterBase (const ConverterRoot &rParent, TypeGroupModel &rModel) | |
virtual | ~ConverterBase () override |
![]() | |
::oox::core::XmlFilterBase & | getFilter () const |
Returns the filter object of the imported/exported document. More... | |
ChartConverter & | getChartConverter () 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... | |
ObjectFormatter & | getFormatter () 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 css::awt::Size | getDefaultPageSize () |
Returns the default position and size of the chart shape in 1/100 mm. More... | |
![]() | |
TypeGroupModel & | mrModel |
Definition at line 108 of file typegroupconverter.hxx.
|
explicit |
Definition at line 141 of file typegroupconverter.cxx.
References ENSURE_AXESCOUNT, maTypeInfo, mb3dChart, oox::drawingml::chart::TypeGroupModel::mnBarDir, oox::drawingml::chart::TypeGroupModel::mnGrouping, oox::drawingml::chart::TypeGroupModel::mnRadarStyle, oox::drawingml::chart::TypeGroupModel::mnTypeId, oox::drawingml::chart::ConverterBase< TypeGroupModel >::mrModel, oox::drawingml::chart::TYPEID_AREA, oox::drawingml::chart::TYPEID_BAR, oox::drawingml::chart::TYPEID_BUBBLE, oox::drawingml::chart::TYPEID_DOUGHNUT, oox::drawingml::chart::TYPEID_HORBAR, oox::drawingml::chart::TYPEID_LINE, oox::drawingml::chart::TYPEID_OFPIE, oox::drawingml::chart::TYPEID_PIE, oox::drawingml::chart::TYPEID_RADARAREA, oox::drawingml::chart::TYPEID_RADARLINE, oox::drawingml::chart::TYPEID_SCATTER, oox::drawingml::chart::TYPEID_STOCK, oox::drawingml::chart::TYPEID_SURFACE, and oox::drawingml::chart::TYPEID_UNKNOWN.
|
overridevirtual |
Definition at line 191 of file typegroupconverter.cxx.
void oox::drawingml::chart::TypeGroupConverter::convertBarGeometry | ( | PropertySet & | rPropSet, |
sal_Int32 | nOoxShape | ||
) | const |
Sets the passed OOXML bar 3D geometry at the passed property set.
Definition at line 528 of file typegroupconverter.cxx.
References maTypeInfo, mb3dChart, oox::drawingml::chart::TypeGroupInfo::meTypeCategory, oox::PropertySet::setProperty(), and oox::drawingml::chart::TYPECATEGORY_BAR.
Referenced by oox::drawingml::chart::SeriesConverter::createDataSeries().
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.
void oox::drawingml::chart::TypeGroupConverter::convertLineSmooth | ( | PropertySet & | rPropSet, |
bool | bOoxSmooth | ||
) | const |
Sets the passed OOXML line smoothing at the passed property set.
Definition at line 518 of file typegroupconverter.cxx.
References isSeriesFrameFormat(), maTypeInfo, oox::drawingml::chart::TypeGroupInfo::meTypeCategory, oox::PropertySet::setProperty(), and oox::drawingml::chart::TYPECATEGORY_RADAR.
Referenced by convertFromModel(), and oox::drawingml::chart::SeriesConverter::createDataSeries().
void oox::drawingml::chart::TypeGroupConverter::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.
Definition at line 469 of file typegroupconverter.cxx.
References convertPointToMm100(), oox::drawingml::Color::getColor(), oox::drawingml::chart::ConverterRoot::getFilter(), oox::drawingml::chart::ModelRef< ModelType >::is(), isSeriesFrameFormat(), oox::PropertySet::setProperty(), and XML_none.
Referenced by oox::drawingml::chart::DataPointConverter::convertFromModel(), and oox::drawingml::chart::SeriesConverter::createDataSeries().
void oox::drawingml::chart::TypeGroupConverter::convertPieExplosion | ( | PropertySet & | rPropSet, |
sal_Int32 | nOoxExplosion | ||
) | const |
Sets the passed OOXML pie explosion at the passed property set.
Definition at line 559 of file typegroupconverter.cxx.
References maTypeInfo, oox::drawingml::chart::TypeGroupInfo::meTypeCategory, oox::PropertySet::setProperty(), and oox::drawingml::chart::TYPECATEGORY_PIE.
Referenced by oox::drawingml::chart::DataPointConverter::convertFromModel(), and oox::drawingml::chart::SeriesConverter::createDataSeries().
void oox::drawingml::chart::TypeGroupConverter::convertPieRotation | ( | PropertySet & | rPropSet, |
sal_Int32 | nOoxAngle | ||
) | const |
Sets the passed OOXML pie rotation at the passed property set.
Definition at line 549 of file typegroupconverter.cxx.
References maTypeInfo, oox::drawingml::chart::TypeGroupInfo::meTypeCategory, PROP_StartingAngle, oox::PropertySet::setProperty(), and oox::drawingml::chart::TYPECATEGORY_PIE.
Referenced by convertFromModel(), and oox::drawingml::chart::View3DConverter::convertFromModel().
Reference< XLabeledDataSequence > oox::drawingml::chart::TypeGroupConverter::createCategorySequence | ( | ) |
Creates a labeled data sequence object for axis categories.
Definition at line 267 of file typegroupconverter.cxx.
References aSeq, oox::drawingml::chart::SeriesModel::CATEGORIES, oox::drawingml::chart::ModelRef< ModelType >::create(), oox::drawingml::chart::ModelMap< KeyType, ModelType >::create(), oox::drawingml::chart::SeriesConverter::createCategorySequence(), oox::RefVector< ObjType >::get(), oox::RefMap< KeyType, ObjType, CompType >::has(), namespaces::i, oox::drawingml::chart::TypeGroupModel::maSeries, oox::drawingml::chart::SeriesModel::maSources, oox::drawingml::chart::ConverterBase< TypeGroupModel >::mrModel, oox::drawingml::chart::DataSourceModel::mxDataSeq, pValues, and oox::drawingml::chart::SeriesModel::VALUES.
Reference< XCoordinateSystem > oox::drawingml::chart::TypeGroupConverter::createCoordinateSystem | ( | ) |
Creates a coordinate system according to the contained chart type.
Definition at line 237 of file typegroupconverter.cxx.
References oox::drawingml::chart::ConverterRoot::getComponentContext(), maTypeInfo, mb3dChart, oox::drawingml::chart::TypeGroupInfo::mbPolarCoordSystem, oox::drawingml::chart::TypeGroupInfo::mbSwappedAxesSet, and oox::PropertySet::setProperty().
ObjectType oox::drawingml::chart::TypeGroupConverter::getSeriesObjectType | ( | ) | const |
Returns the object type for a series depending on the chart type.
Definition at line 220 of file typegroupconverter.cxx.
References maTypeInfo, mb3dChart, oox::drawingml::chart::TypeGroupInfo::mbSeriesIsFrame2d, oox::drawingml::chart::OBJECTTYPE_FILLEDSERIES2D, oox::drawingml::chart::OBJECTTYPE_FILLEDSERIES3D, and oox::drawingml::chart::OBJECTTYPE_LINEARSERIES2D.
Referenced by oox::drawingml::chart::DataPointConverter::convertFromModel(), and oox::drawingml::chart::SeriesConverter::createDataSeries().
OUString oox::drawingml::chart::TypeGroupConverter::getSingleSeriesTitle | ( | ) | const |
Returns series title, if the chart type group contains only one single series.
Definition at line 226 of file typegroupconverter.cxx.
References oox::RefVector< ObjType >::get(), oox::drawingml::chart::TypeGroupModel::maSeries, maTypeInfo, oox::drawingml::chart::TypeGroupInfo::mbSingleSeriesVis, and oox::drawingml::chart::ConverterBase< TypeGroupModel >::mrModel.
|
inline |
Returns the type info struct that describes this chart type group.
Definition at line 115 of file typegroupconverter.hxx.
References maTypeInfo.
Referenced by oox::drawingml::chart::DataLabelConverter::convertFromModel(), oox::drawingml::chart::DataPointConverter::convertFromModel(), oox::drawingml::chart::View3DConverter::convertFromModel(), and oox::drawingml::chart::SeriesConverter::createDataSeries().
|
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().
|
inline |
Returns true, if the chart is three-dimensional.
Definition at line 122 of file typegroupconverter.hxx.
References mb3dChart.
Referenced by convertFromModel().
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().
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().
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().
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().
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().
|
private |
Definition at line 169 of file typegroupconverter.hxx.
Referenced by convertBarGeometry(), convertFromModel(), convertLineSmooth(), convertPieExplosion(), convertPieRotation(), createCoordinateSystem(), getSeriesObjectType(), getSingleSeriesTitle(), getTypeInfo(), isPercent(), isSeriesFrameFormat(), isStacked(), isWall3dChart(), and TypeGroupConverter().
|
private |
Extended type info for contained chart type model.
Definition at line 170 of file typegroupconverter.hxx.
Referenced by convertBarGeometry(), convertFromModel(), createCoordinateSystem(), getSeriesObjectType(), is3dChart(), isSeriesFrameFormat(), isWall3dChart(), and TypeGroupConverter().