LibreOffice Module oox (master) 1
|
A layout converter calculates positions and sizes for various chart objects. More...
#include <converterbase.hxx>
Public Member Functions | |
LayoutConverter (const ConverterRoot &rParent, LayoutModel &rModel) | |
virtual | ~LayoutConverter () override |
bool | calcAbsRectangle (css::awt::Rectangle &orRect) const |
Tries to calculate the absolute position and size from the contained OOXML layout model. More... | |
bool | convertFromModel (PropertySet &rPropSet) |
Tries to set the position and size from the contained OOXML layout model. More... | |
void | convertFromModel (const css::uno::Reference< css::drawing::XShape > &rxShape, double fRotationAngle) |
Tries to set the position from the contained OOXML layout model. More... | |
bool | getAutoLayout () const |
Public Member Functions inherited from oox::drawingml::chart::ConverterBase< LayoutModel > | |
const LayoutModel & | 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 |
Additional Inherited Members | |
Protected Member Functions inherited from oox::drawingml::chart::ConverterBase< LayoutModel > | |
ConverterBase (const ConverterRoot &rParent, LayoutModel &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< LayoutModel > | |
LayoutModel & | mrModel |
A layout converter calculates positions and sizes for various chart objects.
Definition at line 122 of file converterbase.hxx.
|
explicit |
Definition at line 344 of file converterbase.cxx.
|
overridevirtual |
Definition at line 349 of file converterbase.cxx.
bool oox::drawingml::chart::LayoutConverter::calcAbsRectangle | ( | css::awt::Rectangle & | orRect | ) | const |
Tries to calculate the absolute position and size from the contained OOXML layout model.
Returns true, if returned rectangle is valid.
Definition at line 353 of file converterbase.cxx.
References oox::drawingml::chart::ConverterRoot::getChartSize(), oox::drawingml::chart::ConverterRoot::getDefaultPageSize(), oox::drawingml::chart::LayoutModel::mbAutoLayout, oox::drawingml::chart::LayoutModel::mfH, oox::drawingml::chart::LayoutModel::mfW, oox::drawingml::chart::LayoutModel::mfX, oox::drawingml::chart::LayoutModel::mfY, oox::drawingml::chart::LayoutModel::mnHMode, oox::drawingml::chart::LayoutModel::mnWMode, oox::drawingml::chart::LayoutModel::mnXMode, oox::drawingml::chart::LayoutModel::mnYMode, and oox::drawingml::chart::ConverterBase< LayoutModel >::mrModel.
Referenced by oox::drawingml::chart::PlotAreaConverter::convertPositionFromModel().
void oox::drawingml::chart::LayoutConverter::convertFromModel | ( | const css::uno::Reference< css::drawing::XShape > & | rxShape, |
double | fRotationAngle | ||
) |
Tries to set the position from the contained OOXML layout model.
bool oox::drawingml::chart::LayoutConverter::convertFromModel | ( | PropertySet & | rPropSet | ) |
Tries to set the position and size from the contained OOXML layout model.
Returns true, if a manual position and size could be calculated.
Definition at line 374 of file converterbase.cxx.
References oox::drawingml::chart::LayoutModel::mbAutoLayout, oox::drawingml::chart::LayoutModel::mfH, oox::drawingml::chart::LayoutModel::mfW, oox::drawingml::chart::LayoutModel::mfX, oox::drawingml::chart::LayoutModel::mfY, oox::drawingml::chart::LayoutModel::mnHMode, oox::drawingml::chart::LayoutModel::mnWMode, oox::drawingml::chart::LayoutModel::mnXMode, oox::drawingml::chart::LayoutModel::mnYMode, oox::drawingml::chart::ConverterBase< LayoutModel >::mrModel, RelativeSize, and oox::PropertySet::setProperty().
Referenced by oox::drawingml::chart::LegendConverter::convertFromModel().
|
inline |
Definition at line 140 of file converterbase.hxx.
References oox::drawingml::chart::LayoutModel::mbAutoLayout, and oox::drawingml::chart::ConverterBase< LayoutModel >::mrModel.
Referenced by oox::drawingml::chart::LegendConverter::convertFromModel().