Kaydet (Commit) 06f1b15e authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS geordi2q09 (1.29.198); FILE MERGED

2003/11/21 11:46:06 obo 1.29.198.1: #111934#: join CWS pmselectedfixes2
üst f94d1323
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: xmlnumi.cxx,v $ * $RCSfile: xmlnumi.cxx,v $
* *
* $Revision: 1.29 $ * $Revision: 1.30 $
* *
* last change: $Author: cl $ $Date: 2002-03-01 14:11:09 $ * last change: $Author: rt $ $Date: 2003-12-01 12:04:56 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -1038,37 +1038,44 @@ void SvxXMLListStyleContext::FillUnoNumRule( ...@@ -1038,37 +1038,44 @@ void SvxXMLListStyleContext::FillUnoNumRule(
const Reference< container::XIndexReplace > & rNumRule, const Reference< container::XIndexReplace > & rNumRule,
const SvI18NMap *pI18NMap ) const const SvI18NMap *pI18NMap ) const
{ {
if( pLevelStyles ) try
{ {
sal_uInt16 nCount = pLevelStyles->Count(); if( pLevelStyles )
sal_Int32 nLevels = rNumRule->getCount();
for( sal_uInt16 i=0; i < nCount; i++ )
{ {
SvxXMLListLevelStyleContext_Impl *pLevelStyle = sal_uInt16 nCount = pLevelStyles->Count();
(*pLevelStyles)[i]; sal_Int32 nLevels = rNumRule->getCount();
sal_Int32 nLevel = pLevelStyle->GetLevel(); for( sal_uInt16 i=0; i < nCount; i++ )
if( nLevel >= 0 && nLevel < nLevels )
{ {
Sequence<beans::PropertyValue> aProps = SvxXMLListLevelStyleContext_Impl *pLevelStyle =
pLevelStyle->GetProperties( pI18NMap ); (*pLevelStyles)[i];
Any aAny; sal_Int32 nLevel = pLevelStyle->GetLevel();
aAny <<= aProps; if( nLevel >= 0 && nLevel < nLevels )
rNumRule->replaceByIndex( nLevel, aAny ); {
Sequence<beans::PropertyValue> aProps =
pLevelStyle->GetProperties( pI18NMap );
Any aAny;
aAny <<= aProps;
rNumRule->replaceByIndex( nLevel, aAny );
}
} }
} }
}
Reference < XPropertySet > xPropSet( rNumRule, UNO_QUERY ); Reference < XPropertySet > xPropSet( rNumRule, UNO_QUERY );
Reference< XPropertySetInfo > xPropSetInfo; Reference< XPropertySetInfo > xPropSetInfo;
if (xPropSet.is()) if (xPropSet.is())
xPropSetInfo = xPropSet->getPropertySetInfo(); xPropSetInfo = xPropSet->getPropertySetInfo();
if( xPropSetInfo.is() && if( xPropSetInfo.is() &&
xPropSetInfo->hasPropertyByName( sIsContinuousNumbering ) ) xPropSetInfo->hasPropertyByName( sIsContinuousNumbering ) )
{
Any aAny;
sal_Bool bTmp = bConsecutive;
aAny.setValue( &bTmp, ::getBooleanCppuType() );
xPropSet->setPropertyValue( sIsContinuousNumbering, aAny );
}
}
catch( Exception& )
{ {
Any aAny; DBG_ERROR( "SvxXMLListStyleContext::FillUnoNumRule - Exception catched" );
sal_Bool bTmp = bConsecutive;
aAny.setValue( &bTmp, ::getBooleanCppuType() );
xPropSet->setPropertyValue( sIsContinuousNumbering, aAny );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment