LibreOffice Module oox (master) 1
|
#include <plotareaconverter.hxx>
Public Member Functions | |
PlotAreaConverter (const ConverterRoot &rParent, PlotAreaModel &rModel) | |
virtual | ~PlotAreaConverter () override |
void | convertFromModel (View3DModel &rView3DModel) |
Converts the OOXML plot area model to a chart2 diagram. More... | |
void | convertPositionFromModel () |
Converts the manual plot area position and size, if set. More... | |
const OUString & | getAutomaticTitle () const |
Returns the automatic chart title if the chart contains only one series. More... | |
bool | isWall3dChart () const |
Returns true, if chart type supports wall and floor format in 3D mode. More... | |
Public Member Functions inherited from oox::drawingml::chart::ConverterBase< PlotAreaModel > | |
const PlotAreaModel & | getModel () 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 | |
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 Attributes | |
OUString | maAutoTitle |
bool | mb3dChart |
bool | mbWall3dChart |
bool | mbPieChart |
Additional Inherited Members | |
Protected Member Functions inherited from oox::drawingml::chart::ConverterBase< PlotAreaModel > | |
ConverterBase (const ConverterRoot &rParent, PlotAreaModel &rModel) | |
virtual | ~ConverterBase () override |
Protected Member Functions inherited from oox::drawingml::chart::ConverterRoot | |
::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 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< PlotAreaModel > | |
PlotAreaModel & | mrModel |
Definition at line 64 of file plotareaconverter.hxx.
|
explicit |
Definition at line 296 of file plotareaconverter.cxx.
|
overridevirtual |
Definition at line 304 of file plotareaconverter.cxx.
void oox::drawingml::chart::PlotAreaConverter::convertFromModel | ( | View3DModel & | rView3DModel | ) |
Converts the OOXML plot area model to a chart2 diagram.
Definition at line 308 of file plotareaconverter.cxx.
References oox::drawingml::chart::API_X_AXIS, oox::drawingml::chart::API_Y_AXIS, oox::drawingml::chart::API_Z_AXIS, oox::drawingml::chart::ObjectFormatter::convertFrameFormatting(), oox::drawingml::chart::DataTableConverter::convertFromModel(), oox::drawingml::chart::ConverterRoot::createInstance(), Exception, oox::RefVector< ObjType >::get(), oox::drawingml::chart::ConverterRoot::getChartDocument(), oox::drawingml::chart::ConverterRoot::getFormatter(), namespaces::i, maAutoTitle, oox::drawingml::chart::PlotAreaModel::maAxes, oox::drawingml::chart::PlotAreaModel::maTypeGroups, mb3dChart, mbPieChart, mbWall3dChart, oox::drawingml::chart::ConverterBase< PlotAreaModel >::mrModel, oox::drawingml::chart::PlotAreaModel::mxDataTable, oox::drawingml::chart::PlotAreaModel::mxLayout, oox::drawingml::chart::PlotAreaModel::mxShapeProp, oox::drawingml::chart::OBJECTTYPE_PLOTAREA2D, and oox::drawingml::chart::ObjectFormatter::setMaxSeriesIndex().
Referenced by oox::drawingml::chart::ChartSpaceConverter::convertFromModel().
void oox::drawingml::chart::PlotAreaConverter::convertPositionFromModel | ( | ) |
Converts the manual plot area position and size, if set.
Definition at line 450 of file plotareaconverter.cxx.
References oox::drawingml::chart::LayoutConverter::calcAbsRectangle(), Exception, oox::drawingml::chart::ConverterRoot::getChartDocument(), oox::drawingml::chart::ModelRef< ModelType >::getOrCreate(), mbPieChart, oox::drawingml::chart::LayoutModel::mnTarget, oox::drawingml::chart::ConverterBase< PlotAreaModel >::mrModel, and oox::drawingml::chart::PlotAreaModel::mxLayout.
Referenced by oox::drawingml::chart::ChartSpaceConverter::convertFromModel().
|
inline |
Returns the automatic chart title if the chart contains only one series.
Definition at line 76 of file plotareaconverter.hxx.
References maAutoTitle.
Referenced by oox::drawingml::chart::ChartSpaceConverter::convertFromModel().
|
inline |
Returns true, if chart type supports wall and floor format in 3D mode.
Definition at line 78 of file plotareaconverter.hxx.
References mbWall3dChart.
Referenced by oox::drawingml::chart::ChartSpaceConverter::convertFromModel().
|
private |
Definition at line 81 of file plotareaconverter.hxx.
Referenced by convertFromModel(), and getAutomaticTitle().
|
private |
Definition at line 82 of file plotareaconverter.hxx.
Referenced by convertFromModel().
|
private |
Definition at line 84 of file plotareaconverter.hxx.
Referenced by convertFromModel(), and convertPositionFromModel().
|
private |
Definition at line 83 of file plotareaconverter.hxx.
Referenced by convertFromModel(), and isWall3dChart().