20#ifndef INCLUDED_OOX_DRAWINGML_CHART_CONVERTERBASE_HXX
21#define INCLUDED_OOX_DRAWINGML_CHART_CONVERTERBASE_HXX
27 namespace awt {
struct Size; }
28 namespace chart2 {
class XChartDocument; }
29 namespace chart2 {
class XTitle; }
30 namespace drawing {
class XShape; }
31 namespace uno {
class XComponentContext; }
33namespace oox::core {
class XmlFilterBase; }
38struct ChartSpaceModel;
57 const css::uno::Reference< css::chart2::XChartDocument >& rxChartDoc,
58 const css::awt::Size& rChartSize );
67 css::uno::Reference< css::uno::XInterface >
69 css::uno::Reference< css::uno::XComponentContext >
const &
78 css::uno::Reference< css::chart2::XChartDocument >
const &
90 const css::uno::Reference< css::chart2::XTitle >& rxTitle,
92 sal_Int32 nMainIdx, sal_Int32 nSubIdx );
97 std::shared_ptr< ConverterData >
mxData;
104template<
typename ModelType >
138 const css::uno::Reference< css::drawing::XShape >& rxShape,
139 double fRotationAngle );
A wrapper for a UNO property set.
Base class of all converter classes.
virtual ~ConverterBase() override
const ModelType & getModel() const
ConverterBase(const ConverterRoot &rParent, ModelType &rModel)
::oox::core::XmlFilterBase & getFilter() const
Returns the filter object of the imported/exported document.
css::uno::Reference< css::chart2::XChartDocument > const & getChartDocument() const
Returns the API chart document model.
ChartConverter & getChartConverter() const
Returns the chart converter.
const css::awt::Size & getChartSize() const
Returns the position and size of the chart shape in 1/100 mm.
ConverterRoot & operator=(ConverterRoot const &)=default
void convertTitlePositions()
Converts the positions of the main title and all axis titles.
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 o...
ConverterRoot(ConverterRoot &&)=default
ObjectFormatter & getFormatter() const
Returns the object formatter.
static css::awt::Size getDefaultPageSize()
Returns the default position and size of the chart shape in 1/100 mm.
ConverterRoot(ConverterRoot const &)=default
std::shared_ptr< ConverterData > mxData
css::uno::Reference< css::uno::XInterface > createInstance(const OUString &rServiceName) const
Creates an instance for the passed service name, using the process service factory.
ConverterRoot(::oox::core::XmlFilterBase &rFilter, ChartConverter &rChartConverter, const ChartSpaceModel &rChartModel, const css::uno::Reference< css::chart2::XChartDocument > &rxChartDoc, const css::awt::Size &rChartSize)
css::uno::Reference< css::uno::XComponentContext > const & getComponentContext() const
A layout converter calculates positions and sizes for various chart objects.
LayoutConverter(const ConverterRoot &rParent, LayoutModel &rModel)
bool calcAbsRectangle(css::awt::Rectangle &orRect) const
Tries to calculate the absolute position and size from the contained OOXML layout model.
bool getAutoLayout() const
void convertFromModel(const css::uno::Reference< css::drawing::XShape > &rxShape, double fRotationAngle)
Tries to set the position from the contained OOXML layout model.
bool convertFromModel(PropertySet &rPropSet)
Tries to set the position and size from the contained OOXML layout model.
virtual ~LayoutConverter() override
const sal_Int32 API_Y_AXIS
const sal_Int32 API_PRIM_AXESSET
const sal_Int32 API_X_AXIS
ObjectType
Enumerates different object types for specific automatic formatting behaviour.
const sal_Int32 API_SECN_AXESSET
const sal_Int32 API_Z_AXIS
bool mbAutoLayout
Layout target for plot area.