From 31eaf957dac072ebe65cf59816d032585f440dbf Mon Sep 17 00:00:00 2001 From: Rafael Dominguez Date: Sat, 17 Mar 2012 09:44:52 +0000 Subject: Display XErrorBars in object hierarchy. --- chart2/source/controller/main/ObjectHierarchy.cxx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'chart2/source/controller/main') diff --git a/chart2/source/controller/main/ObjectHierarchy.cxx b/chart2/source/controller/main/ObjectHierarchy.cxx index 14158baf57fd..f0f0dbafe83e 100644 --- a/chart2/source/controller/main/ObjectHierarchy.cxx +++ b/chart2/source/controller/main/ObjectHierarchy.cxx @@ -488,7 +488,21 @@ void ImplObjectHierarchy::createDataSeriesTree( { aSeriesSubContainer.push_back( ObjectIdentifier( ObjectIdentifier::createClassifiedIdentifierWithParent( - OBJECTTYPE_DATA_ERRORS, OUString(), aSeriesParticle ) ) ); + OBJECTTYPE_DATA_ERRORS_Y, OUString(), aSeriesParticle ) ) ); + } + } + + if( xSeriesProp.is() && + (xSeriesProp->getPropertyValue( C2U("ErrorBarX")) >>= xErrorBarProp) && + xErrorBarProp.is()) + { + sal_Int32 nStyle = ::com::sun::star::chart::ErrorBarStyle::NONE; + if( ( xErrorBarProp->getPropertyValue( C2U("ErrorBarStyle")) >>= nStyle ) && + ( nStyle != ::com::sun::star::chart::ErrorBarStyle::NONE ) ) + { + aSeriesSubContainer.push_back( + ObjectIdentifier( ObjectIdentifier::createClassifiedIdentifierWithParent( + OBJECTTYPE_DATA_ERRORS_X, OUString(), aSeriesParticle ) ) ); } } } -- cgit