37#include <com/sun/star/chart2/XTitle.hpp>
41using ::com::sun::star::uno::Reference;
42using ::com::sun::star::uno::Sequence;
50 const awt::Size* pRefSize )
58 m_aConverters.emplace_back( new ::chart::wrapper::AxisItemConverter(
59 xObjectProperties, rItemPool, rDrawModel,
60 xChartModel,
nullptr,
nullptr,
86 m_aConverters.emplace_back( new ::chart::wrapper::GraphicPropertyItemConverter(
87 xObjectProperties, rItemPool, rDrawModel, xNamedPropertyContainerFactory,
88 ::chart::wrapper::GraphicObjectType::LineProperties ) );
109 std::vector< rtl::Reference< DataSeries > > aSeriesList =
112 for (
auto const& series : aSeriesList)
116 sal_Int32 nNumberFormat=ExplicitValueProvider::getExplicitNumberFormatKeyForDataLabel( series );
117 sal_Int32 nPercentNumberFormat=ExplicitValueProvider::getExplicitPercentageNumberFormatKeyForDataLabel(
121 new ::chart::wrapper::DataPointItemConverter(
122 xChartModel, xContext, series, series, rItemPool, rDrawModel,
124 nullptr,
true,
false, 0,
true, nNumberFormat, nPercentNumberFormat));
152 new ::chart::wrapper::TitleItemConverter(
153 xObjectProperties, rItemPool, rDrawModel, xNamedPropertyContainerFactory,
nullptr));
172 std::vector< rtl::Reference< DataSeries > > aSeriesList =
175 for (
auto const& series : aSeriesList)
177 m_aConverters.emplace_back( new ::chart::wrapper::StatisticsItemConverter(
178 xChartModel, series, rItemPool ));
const WhichRangesContainer nStatWhichPairs(svl::Items< SCHATTR_STAT_START, SCHATTR_STAT_END, SCHATTR_REGRESSION_START, SCHATTR_REGRESSION_END >)
const WhichRangesContainer nGridWhichPairs(svl::Items< XATTR_LINE_FIRST, XATTR_LINE_LAST >)
const WhichRangesContainer nDataLabelWhichPairs(svl::Items< SCHATTR_DATADESCR_START, SCHATTR_DATADESCR_END, SCHATTR_TEXT_DEGREES, SCHATTR_TEXT_DEGREES, EE_PARA_WRITINGDIR, EE_PARA_WRITINGDIR, SID_ATTR_NUMBERFORMAT_VALUE, SID_ATTR_NUMBERFORMAT_INFO, SID_ATTR_NUMBERFORMAT_SOURCE, SID_ATTR_NUMBERFORMAT_SOURCE >)
const WhichRangesContainer nAllAxisWhichPairs(svl::Items< SCHATTR_TEXT_START, SCHATTR_TEXT_END, SCHATTR_AXIS_LABEL_START, SCHATTR_AXIS_LABEL_END, XATTR_LINE_FIRST, XATTR_LINE_LAST, EE_ITEMS_START, EE_ITEMS_END, SID_CHAR_DLG_PREVIEW_STRING, SID_CHAR_DLG_PREVIEW_STRING >)
const WhichRangesContainer nTitleWhichPairs(svl::Items< SCHATTR_TEXT_START, SCHATTR_TEXT_END, XATTR_LINE_FIRST, XATTR_LINE_LAST, XATTR_FILL_FIRST, XATTR_FILL_LAST, SDRATTR_SHADOW_FIRST, SDRATTR_SHADOW_LAST, EE_ITEMS_START, EE_ITEMS_END, SID_CHAR_DLG_PREVIEW_STRING, SID_CHAR_DLG_PREVIEW_STRING >)
static std::vector< rtl::Reference< ::chart::GridProperties > > getAllGrids(const rtl::Reference< ::chart::Diagram > &xDiagram)
static std::vector< rtl::Reference< ::chart::Axis > > getAllAxesOfDiagram(const rtl::Reference< ::chart::Diagram > &xDiagram, bool bOnlyVisible=false)
static std::vector< rtl::Reference< ::chart::DataSeries > > getDataSeries(const rtl::Reference< ::chart::ChartModel > &xModel)
static rtl::Reference< ::chart::Title > getTitle(eTitleType nTitleIndex, ChartModel &rModel)
AllAxisItemConverter(const rtl::Reference<::chart::ChartModel > &xChartModel, SfxItemPool &rItemPool, SdrModel &rDrawModel, const css::awt::Size *pRefSize)
virtual const WhichRangesContainer & GetWhichPairs() const override
implement this method to provide an array of which-ranges
virtual ~AllAxisItemConverter() override
virtual ~AllDataLabelItemConverter() override
virtual const WhichRangesContainer & GetWhichPairs() const override
implement this method to provide an array of which-ranges
AllDataLabelItemConverter(const rtl::Reference<::chart::ChartModel > &xChartModel, SfxItemPool &rItemPool, SdrModel &rDrawModel, const css::uno::Reference< css::lang::XMultiServiceFactory > &xNamedPropertyContainerFactory)
virtual const WhichRangesContainer & GetWhichPairs() const override
implement this method to provide an array of which-ranges
virtual ~AllGridItemConverter() override
AllGridItemConverter(const rtl::Reference<::chart::ChartModel > &xChartModel, SfxItemPool &rItemPool, SdrModel &rDrawModel, const css::uno::Reference< css::lang::XMultiServiceFactory > &xNamedPropertyContainerFactory)
virtual ~AllSeriesStatisticsConverter() override
AllSeriesStatisticsConverter(const rtl::Reference<::chart::ChartModel > &xChartModel, SfxItemPool &rItemPool)
virtual const WhichRangesContainer & GetWhichPairs() const override
implement this method to provide an array of which-ranges
virtual ~AllTitleItemConverter() override
virtual const WhichRangesContainer & GetWhichPairs() const override
implement this method to provide an array of which-ranges
AllTitleItemConverter(const rtl::Reference<::chart::ChartModel > &xChartModel, SfxItemPool &rItemPool, SdrModel &rDrawModel, const css::uno::Reference< css::lang::XMultiServiceFactory > &xNamedPropertyContainerFactory)
Note: virtual const sal_uInt16 * GetWhichPairs() const; is still pure virtual.
std::vector< std::unique_ptr< ItemConverter > > m_aConverters