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
This commit is contained in:
Vladimir Glazounov 2007-09-18 14:09:26 +00:00
parent b793bbf74b
commit 016a8f8671

View file

@ -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
//.............................................................................