diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2007-09-18 14:09:26 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2007-09-18 14:09:26 +0000 |
commit | 016a8f8671011d22517a59924d5f0b64140cfca0 (patch) | |
tree | 159cb0a53b8706d7aa1e7600c3241102d837a55c /chart2/source/tools/ObjectIdentifier.cxx | |
parent | b793bbf74b47351a3afb038724e59d244d5ba803 (diff) |
INTEGRATION: CWS chart11 (1.3.2); FILE MERGED
2007/08/22 09:05:45 bm 1.3.2.2: #i67225# +createClassifiedIdentifierForAxis
2007/08/15 16:02:47 bm 1.3.2.1: #i64495# fixed by weiz. Adapt the selection after rearranging data series and remember former selection in an undo-action
Diffstat (limited to 'chart2/source/tools/ObjectIdentifier.cxx')
-rw-r--r-- | chart2/source/tools/ObjectIdentifier.cxx | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/chart2/source/tools/ObjectIdentifier.cxx b/chart2/source/tools/ObjectIdentifier.cxx index 721abac6edf4..3177e2ced703 100644 --- a/chart2/source/tools/ObjectIdentifier.cxx +++ b/chart2/source/tools/ObjectIdentifier.cxx @@ -4,9 +4,9 @@ * * $RCSfile: ObjectIdentifier.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: rt $ $Date: 2007-07-25 08:59:27 $ + * last change: $Author: vg $ $Date: 2007-09-18 15:09:26 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -494,6 +494,14 @@ OUString ObjectIdentifier::createParticleForGrid( return aRet.makeStringAndClear(); } +OUString ObjectIdentifier::createClassifiedIdentifierForAxis( + const Reference< XAxis >& xAxis + , const Reference< frame::XModel >& xChartModel ) +{ + rtl::OUString aAxisCID( createClassifiedIdentifierForObject( xAxis,xChartModel ) ); + return aAxisCID; +} + //static OUString ObjectIdentifier::createClassifiedIdentifierForGrid( const Reference< XAxis >& xAxis @@ -1336,6 +1344,23 @@ TitleHelper::eTitleType ObjectIdentifier::getTitleTypeForCID( const OUString& rC return eRet; } +//static +OUString ObjectIdentifier::getMovedSeriesCID( const ::rtl::OUString& rObjectCID, sal_Bool bForward ) +{ + sal_Int32 nDiagramIndex = lcl_StringToIndex( lcl_getIndexStringAfterString( rObjectCID, C2U("CID/D=") ) ); + sal_Int32 nCooSysIndex = lcl_StringToIndex( lcl_getIndexStringAfterString( rObjectCID, C2U("CS=") ) ); + sal_Int32 nChartTypeIndex = lcl_StringToIndex( lcl_getIndexStringAfterString( rObjectCID, C2U("CT=") ) ); + sal_Int32 nSeriesIndex = lcl_StringToIndex( lcl_getIndexStringAfterString( rObjectCID, C2U("Series=") ) ); + + if( bForward ) + nSeriesIndex--; + else + nSeriesIndex++; + + OUString aRet = ObjectIdentifier::createParticleForSeries( nDiagramIndex, nCooSysIndex, nChartTypeIndex, nSeriesIndex ); + return ObjectIdentifier::createClassifiedIdentifierForParticle( aRet ); +} +//static //............................................................................. } //namespace chart //............................................................................. |