LibreOffice Module oox (master) 1
|
#include <converterbase.hxx>
Public Member Functions | |
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 |
Protected Member Functions | |
::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 | |
static css::awt::Size | getDefaultPageSize () |
Returns the default position and size of the chart shape in 1/100 mm. More... | |
Private Attributes | |
std::shared_ptr< ConverterData > | mxData |
Definition at line 50 of file converterbase.hxx.
|
explicit |
|
virtual |
Definition at line 218 of file converterbase.cxx.
|
default |
|
default |
|
protected |
Converts the positions of the main title and all axis titles.
Definition at line 278 of file converterbase.cxx.
References Exception, and mxData.
Referenced by oox::drawingml::chart::ChartSpaceConverter::convertFromModel().
Reference< XInterface > oox::drawingml::chart::ConverterRoot::createInstance | ( | const OUString & | rServiceName | ) | const |
Creates an instance for the passed service name, using the process service factory.
Definition at line 222 of file converterbase.cxx.
References Exception, and getComponentContext().
Referenced by oox::drawingml::chart::AxisConverter::convertFromModel(), oox::drawingml::chart::ErrorBarConverter::convertFromModel(), oox::drawingml::chart::TrendlineConverter::convertFromModel(), oox::drawingml::chart::LegendConverter::convertFromModel(), oox::drawingml::chart::TypeGroupConverter::convertFromModel(), oox::drawingml::chart::TitleConverter::convertFromModel(), oox::drawingml::chart::DataTableConverter::convertFromModel(), oox::drawingml::chart::PlotAreaConverter::convertFromModel(), and oox::drawingml::chart::SeriesConverter::createDataSeries().
|
protected |
Returns the chart converter.
Definition at line 248 of file converterbase.cxx.
References mxData.
Referenced by oox::drawingml::chart::ChartSpaceConverter::convertFromModel(), and oox::drawingml::chart::DataSequenceConverter::createDataSequence().
|
protected |
Returns the API chart document model.
Definition at line 253 of file converterbase.cxx.
References mxData.
Referenced by oox::drawingml::chart::DataLabelConverter::convertFromModel(), oox::drawingml::chart::DataLabelsConverter::convertFromModel(), oox::drawingml::chart::ChartSpaceConverter::convertFromModel(), oox::drawingml::chart::PlotAreaConverter::convertFromModel(), oox::drawingml::chart::PlotAreaConverter::convertPositionFromModel(), and oox::drawingml::chart::DataSequenceConverter::createDataSequence().
|
protected |
Returns the position and size of the chart shape in 1/100 mm.
Definition at line 258 of file converterbase.cxx.
References mxData.
Referenced by oox::drawingml::chart::LayoutConverter::calcAbsRectangle(), and oox::drawingml::chart::ChartSpaceConverter::convertFromModel().
Reference< XComponentContext > const & oox::drawingml::chart::ConverterRoot::getComponentContext | ( | ) | const |
Definition at line 238 of file converterbase.cxx.
References mxData.
Referenced by oox::drawingml::chart::TextConverter::appendFormattedString(), oox::drawingml::chart::DataLabelConverter::convertFromModel(), oox::drawingml::chart::TypeGroupConverter::createCoordinateSystem(), and createInstance().
|
inlinestaticprotected |
Returns the default position and size of the chart shape in 1/100 mm.
Definition at line 83 of file converterbase.hxx.
Referenced by oox::drawingml::chart::LayoutConverter::calcAbsRectangle(), and oox::drawingml::chart::ChartSpaceConverter::convertFromModel().
|
protected |
Returns the filter object of the imported/exported document.
Definition at line 243 of file converterbase.cxx.
References mxData.
Referenced by oox::drawingml::chart::DataLabelConverter::convertFromModel(), oox::drawingml::chart::DataLabelsConverter::convertFromModel(), oox::drawingml::chart::DataPointConverter::convertFromModel(), oox::drawingml::chart::WallFloorConverter::convertFromModel(), oox::drawingml::chart::ChartSpaceConverter::convertFromModel(), oox::drawingml::chart::TypeGroupConverter::convertMarker(), and oox::drawingml::chart::SeriesConverter::createDataSeries().
|
protected |
Returns the object formatter.
Definition at line 263 of file converterbase.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::DataLabelConverter::convertFromModel(), oox::drawingml::chart::DataLabelsConverter::convertFromModel(), oox::drawingml::chart::DataPointConverter::convertFromModel(), oox::drawingml::chart::LegendConverter::convertFromModel(), oox::drawingml::chart::TypeGroupConverter::convertFromModel(), oox::drawingml::chart::WallFloorConverter::convertFromModel(), oox::drawingml::chart::TitleConverter::convertFromModel(), oox::drawingml::chart::ChartSpaceConverter::convertFromModel(), oox::drawingml::chart::DataTableConverter::convertFromModel(), oox::drawingml::chart::TrendlineLabelConverter::convertFromModel(), oox::drawingml::chart::PlotAreaConverter::convertFromModel(), oox::drawingml::chart::SeriesConverter::createDataSeries(), and oox::drawingml::chart::TextConverter::createStringSequence().
|
default |
|
default |
|
protected |
Registers a title object and its layout data, needed for conversion of the title position using the old Chart1 API.
Definition at line 268 of file converterbase.cxx.
References mxData.
Referenced by oox::drawingml::chart::TitleConverter::convertFromModel().
|
private |
Definition at line 97 of file converterbase.hxx.
Referenced by convertTitlePositions(), getChartConverter(), getChartDocument(), getChartSize(), getComponentContext(), getFilter(), getFormatter(), and registerTitleLayout().