diff options
Diffstat (limited to 'chart2/source/view/axes/VAxisBase.hxx')
-rw-r--r-- | chart2/source/view/axes/VAxisBase.hxx | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/chart2/source/view/axes/VAxisBase.hxx b/chart2/source/view/axes/VAxisBase.hxx index bddba67f9e5c..4ee4f5e288ae 100644 --- a/chart2/source/view/axes/VAxisBase.hxx +++ b/chart2/source/view/axes/VAxisBase.hxx @@ -16,18 +16,23 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_CHART2_SOURCE_VIEW_AXES_VAXISBASE_HXX -#define INCLUDED_CHART2_SOURCE_VIEW_AXES_VAXISBASE_HXX +#pragma once #include "VAxisOrGridBase.hxx" #include "VAxisProperties.hxx" #include "Tickmarks.hxx" namespace com::sun::star::util { class XNumberFormatsSupplier; } +namespace com::sun::star::uno { class XComponentContext; } namespace chart { +class VSeriesPlotter; +class DataTableView; +class ChartModel; +class LegendEntryProvider; + class VAxisBase : public VAxisOrGridBase { public: @@ -60,14 +65,20 @@ public: void setExtraLinePositionAtOtherAxis( double fCrossingAt ); + virtual void createDataTableView(std::vector<std::unique_ptr<VSeriesPlotter>>& rSeriesPlotterList, + css::uno::Reference<css::util::XNumberFormatsSupplier> const& xNumberFormatsSupplier, + rtl::Reference<::chart::ChartModel> const& xChartDoc, + css::uno::Reference<css::uno::XComponentContext> const& rComponentContext); + + std::shared_ptr<DataTableView> getDataTableView() { return m_pDataTableView; } + protected: //methods static size_t getIndexOfLongestLabel( const css::uno::Sequence<OUString>& rLabels ); void removeTextShapesFromTicks(); void updateUnscaledValuesAtTicks( TickIter& rIter ); virtual bool prepareShapeCreation(); - void recordMaximumTextSize( const css::uno::Reference< css::drawing::XShape >& xShape - , double fRotationAngleDegree ); + void recordMaximumTextSize( SvxShape& xShape, double fRotationAngleDegree ); bool isDateAxis() const; bool isComplexCategoryAxis() const; @@ -79,8 +90,11 @@ protected: //member css::uno::Sequence< OUString > m_aTextLabels; bool m_bUseTextLabels; - css::uno::Reference< css::drawing::XShapes > m_xGroupShape_Shapes; - css::uno::Reference< css::drawing::XShapes > m_xTextTarget; + rtl::Reference< SvxShapeGroupAnyD > m_xGroupShape_Shapes; + rtl::Reference< SvxShapeGroupAnyD > m_xTextTarget; + rtl::Reference< SvxShapeGroupAnyD > m_xDataTableTarget; + + std::shared_ptr<DataTableView> m_pDataTableView; /** * This typically consists of 2 TickInfo vectors (i.e. the outer vector @@ -100,6 +114,5 @@ protected: //member }; } //namespace chart -#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |