diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-29 10:34:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-29 19:02:25 +0000 |
commit | 99463a6f7f25d53e806fb475a6d5e2ced13b10e6 (patch) | |
tree | 85f21f15fa344fe411c904c950b7d65c06fd314b /chart2/source/view/main/VDataSeries.cxx | |
parent | c6431ba1d041379c37292337337690c01f144fe2 (diff) |
use more get/setFastPropertyValue in chart2
Change-Id: I1471309e200c8eec21844658b873f817565f9604
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149693
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/view/main/VDataSeries.cxx')
-rw-r--r-- | chart2/source/view/main/VDataSeries.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chart2/source/view/main/VDataSeries.cxx b/chart2/source/view/main/VDataSeries.cxx index 6b6df81dde54..feac68042af5 100644 --- a/chart2/source/view/main/VDataSeries.cxx +++ b/chart2/source/view/main/VDataSeries.cxx @@ -21,6 +21,7 @@ #include <memory> #include <VDataSeries.hxx> #include <DataSeries.hxx> +#include <DataSeriesProperties.hxx> #include <ObjectIdentifier.hxx> #include <CommonConverters.hxx> #include <LabelPositionHelper.hxx> @@ -47,6 +48,7 @@ namespace chart { using namespace ::com::sun::star; using namespace ::com::sun::star::chart2; using ::com::sun::star::uno::Reference; +using namespace ::chart::DataSeriesProperties; void VDataSequence::init( const uno::Reference< data::XDataSequence >& xModel ) { @@ -227,12 +229,12 @@ VDataSeries::VDataSeries( const rtl::Reference< DataSeries >& xDataSeries ) try { - //get AttributedDataPoints - xDataSeries->getPropertyValue("AttributedDataPoints") >>= m_aAttributedDataPointIndexList; + // "AttributedDataPoints" + xDataSeries->getFastPropertyValue(PROP_DATASERIES_ATTRIBUTED_DATA_POINTS) >>= m_aAttributedDataPointIndexList; - xDataSeries->getPropertyValue("StackingDirection") >>= m_eStackingDirection; + xDataSeries->getFastPropertyValue(PROP_DATASERIES_STACKING_DIRECTION) >>= m_eStackingDirection; // "StackingDirection" - xDataSeries->getPropertyValue("AttachedAxisIndex") >>= m_nAxisIndex; + xDataSeries->getFastPropertyValue(PROP_DATASERIES_ATTACHED_AXIS_INDEX) >>= m_nAxisIndex; // "AttachedAxisIndex" if(m_nAxisIndex<0) m_nAxisIndex=0; } |