diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2012-03-10 11:13:22 +0000 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-03-23 02:55:28 +0100 |
commit | 7fded69fb54f0256974465a9c9ec017b174ae60c (patch) | |
tree | a7019fe7418137fb98ab51a760f073f29847db42 /chart2 | |
parent | a3d71e97eaf1958a4d5ab41a6b8788c95d85d2bb (diff) |
Add a function to get X error bar properties.
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/inc/VDataSeries.hxx | 3 | ||||
-rw-r--r-- | chart2/source/view/main/VDataSeries.cxx | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/chart2/source/view/inc/VDataSeries.hxx b/chart2/source/view/inc/VDataSeries.hxx index 55e0a9692172..2d808c843766 100644 --- a/chart2/source/view/inc/VDataSeries.hxx +++ b/chart2/source/view/inc/VDataSeries.hxx @@ -122,6 +122,9 @@ public: getSymbolProperties( sal_Int32 index ) const; ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > + getXErrorBarProperties( sal_Int32 index ) const; + + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > getYErrorBarProperties( sal_Int32 index ) const; bool hasPointOwnColor( sal_Int32 index ) const; diff --git a/chart2/source/view/main/VDataSeries.cxx b/chart2/source/view/main/VDataSeries.cxx index a8294a31c4f7..259d2fd18a14 100644 --- a/chart2/source/view/main/VDataSeries.cxx +++ b/chart2/source/view/main/VDataSeries.cxx @@ -816,6 +816,16 @@ Symbol* VDataSeries::getSymbolProperties( sal_Int32 index ) const return pRet; } +uno::Reference< beans::XPropertySet > VDataSeries::getXErrorBarProperties( sal_Int32 index ) const +{ + uno::Reference< beans::XPropertySet > xErrorBarProp; + + uno::Reference< beans::XPropertySet > xPointProp( this->getPropertiesOfPoint( index )); + if( xPointProp.is() ) + xPointProp->getPropertyValue( C2U( "ErrorBarX" )) >>= xErrorBarProp; + return xErrorBarProp; +} + uno::Reference< beans::XPropertySet > VDataSeries::getYErrorBarProperties( sal_Int32 index ) const { uno::Reference< beans::XPropertySet > xErrorBarProp; |