diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2012-03-17 09:44:52 +0000 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-03-23 02:55:31 +0100 |
commit | 31eaf957dac072ebe65cf59816d032585f440dbf (patch) | |
tree | 5ce13920ba485c4a59f35b4e0eac06562d96d681 /chart2/source/controller/main | |
parent | b9b5496636285c2f920f1a0b6f6fe7ced30a5caf (diff) |
Display XErrorBars in object hierarchy.
Diffstat (limited to 'chart2/source/controller/main')
-rw-r--r-- | chart2/source/controller/main/ObjectHierarchy.cxx | 16 |
1 files changed, 15 insertions, 1 deletions
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 ) ) ); } } } |