summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorRafael Dominguez <venccsralph@gmail.com>2012-08-24 12:30:38 -0430
committerRafael Dominguez <venccsralph@gmail.com>2012-08-24 12:48:40 -0430
commita581d31b227623e09d2970a91214fda398f98eda (patch)
tree48f7fd9994b10b9ca11baf74bc64392293f597c6 /chart2
parent2198fc2711bfb3e1025517f2d61ec8ae7d424c20 (diff)
Highlight X errorbars data range when a chart is selected.
Change-Id: I90b4f71fb74da59c6c578ccd0e9b62f14620d4e6
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/tools/DataSourceHelper.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/chart2/source/tools/DataSourceHelper.cxx b/chart2/source/tools/DataSourceHelper.cxx
index 151b1b2339c0..cf905481bb3a 100644
--- a/chart2/source/tools/DataSourceHelper.cxx
+++ b/chart2/source/tools/DataSourceHelper.cxx
@@ -97,6 +97,18 @@ void lcl_addErrorBarRanges(
lcl_addDataSourceRanges( rOutResult, xErrorBarDataSource );
}
}
+
+ if( ( xSeriesProp->getPropertyValue("ErrorBarX") >>= xErrorBarProp ) && xErrorBarProp.is())
+ {
+ sal_Int32 eStyle = ::com::sun::star::chart::ErrorBarStyle::NONE;
+ if( ( xErrorBarProp->getPropertyValue("ErrorBarStyle") >>= eStyle ) &&
+ eStyle == ::com::sun::star::chart::ErrorBarStyle::FROM_DATA )
+ {
+ uno::Reference< data::XDataSource > xErrorBarDataSource( xErrorBarProp, uno::UNO_QUERY );
+ if( xErrorBarDataSource.is() )
+ lcl_addDataSourceRanges( rOutResult, xErrorBarDataSource );
+ }
+ }
}
catch( const uno::Exception & ex )
{