LibreOffice Module oox (master) 1
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Attributes | List of all members
oox::drawingml::chart::ConverterRoot Class Reference

#include <converterbase.hxx>

Inheritance diagram for oox::drawingml::chart::ConverterRoot:
[legend]

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
 
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
 

Protected Member Functions

::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

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< ConverterDatamxData
 

Detailed Description

Definition at line 50 of file converterbase.hxx.

Constructor & Destructor Documentation

◆ ConverterRoot() [1/3]

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 
)
explicit

◆ ~ConverterRoot()

oox::drawingml::chart::ConverterRoot::~ConverterRoot ( )
virtual

Definition at line 212 of file converterbase.cxx.

◆ ConverterRoot() [2/3]

oox::drawingml::chart::ConverterRoot::ConverterRoot ( ConverterRoot const &  )
default

◆ ConverterRoot() [3/3]

oox::drawingml::chart::ConverterRoot::ConverterRoot ( ConverterRoot &&  )
default

Member Function Documentation

◆ convertTitlePositions()

void oox::drawingml::chart::ConverterRoot::convertTitlePositions ( )
protected

Converts the positions of the main title and all axis titles.

Definition at line 272 of file converterbase.cxx.

References Exception, and mxData.

Referenced by oox::drawingml::chart::ChartSpaceConverter::convertFromModel().

◆ createInstance()

Reference< XInterface > oox::drawingml::chart::ConverterRoot::createInstance ( const OUString &  rServiceName) const

◆ getChartConverter()

ChartConverter & oox::drawingml::chart::ConverterRoot::getChartConverter ( ) const
protected

◆ getChartDocument()

Reference< XChartDocument > const & oox::drawingml::chart::ConverterRoot::getChartDocument ( ) const
protected

◆ getChartSize()

const awt::Size & oox::drawingml::chart::ConverterRoot::getChartSize ( ) const
protected

Returns the position and size of the chart shape in 1/100 mm.

Definition at line 252 of file converterbase.cxx.

References mxData.

Referenced by oox::drawingml::chart::LayoutConverter::calcAbsRectangle(), and oox::drawingml::chart::ChartSpaceConverter::convertFromModel().

◆ getComponentContext()

Reference< XComponentContext > const & oox::drawingml::chart::ConverterRoot::getComponentContext ( ) const

◆ getDefaultPageSize()

static css::awt::Size oox::drawingml::chart::ConverterRoot::getDefaultPageSize ( )
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().

◆ getFilter()

XmlFilterBase & oox::drawingml::chart::ConverterRoot::getFilter ( ) const
protected

◆ getFormatter()

ObjectFormatter & oox::drawingml::chart::ConverterRoot::getFormatter ( ) const
protected

◆ operator=() [1/2]

ConverterRoot & oox::drawingml::chart::ConverterRoot::operator= ( ConverterRoot &&  )
default

◆ operator=() [2/2]

ConverterRoot & oox::drawingml::chart::ConverterRoot::operator= ( ConverterRoot const &  )
default

◆ registerTitleLayout()

void oox::drawingml::chart::ConverterRoot::registerTitleLayout ( const css::uno::Reference< css::chart2::XTitle > &  rxTitle,
const ModelRef< LayoutModel > &  rxLayout,
ObjectType  eObjType,
sal_Int32  nMainIdx,
sal_Int32  nSubIdx 
)
protected

Registers a title object and its layout data, needed for conversion of the title position using the old Chart1 API.

Definition at line 262 of file converterbase.cxx.

References mxData.

Referenced by oox::drawingml::chart::TitleConverter::convertFromModel().

Member Data Documentation

◆ mxData

std::shared_ptr< ConverterData > oox::drawingml::chart::ConverterRoot::mxData
private

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