diff options
author | Michael Brauer <mib@openoffice.org> | 2000-10-23 10:28:11 +0000 |
---|---|---|
committer | Michael Brauer <mib@openoffice.org> | 2000-10-23 10:28:11 +0000 |
commit | ef1795bbf00670dcd4002b48feb6fa4139c4d7a2 (patch) | |
tree | d774afe55539a217353d94baab259c544eb21a9f /xmloff/source/text/txtimp.cxx | |
parent | 7612b295728fbdaeb04f5f0dfe9a300f23984ec9 (diff) |
restart numbering for lists
Diffstat (limited to 'xmloff/source/text/txtimp.cxx')
-rw-r--r-- | xmloff/source/text/txtimp.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx index 166aa18fef35..3ac03adc458d 100644 --- a/xmloff/source/text/txtimp.cxx +++ b/xmloff/source/text/txtimp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: txtimp.cxx,v $ * - * $Revision: 1.15 $ + * $Revision: 1.16 $ * - * last change: $Author: sab $ $Date: 2000-10-23 10:39:46 $ + * last change: $Author: mib $ $Date: 2000-10-23 11:28:11 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -426,6 +426,7 @@ XMLTextImportHelper::XMLTextImportHelper( sHeadingStyleName(RTL_CONSTASCII_USTRINGPARAM("HeadingStyleName")), sNumberingLevel(RTL_CONSTASCII_USTRINGPARAM("NumberingLevel")), sNumberingStartValue(RTL_CONSTASCII_USTRINGPARAM("NumberingStartValue")), + sParaIsNumberingRestart(RTL_CONSTASCII_USTRINGPARAM("ParaIsNumberingRestart")), sNumberingStyleName(RTL_CONSTASCII_USTRINGPARAM("NumberingStyleName")), sNumberingRules(RTL_CONSTASCII_USTRINGPARAM("NumberingRules")), sSequenceNumber(RTL_CONSTASCII_USTRINGPARAM("SequenceNumber")), @@ -740,7 +741,12 @@ OUString XMLTextImportHelper::SetStyleAndAttrs( if( pListBlock->IsRestartNumbering() ) { // TODO: property missing - // aNodeNum.SetStart(); + if( xPropSetInfo->hasPropertyByName( sParaIsNumberingRestart ) ) + { + sal_Bool bTmp = sal_True; + aAny.setValue( &bTmp, ::getBooleanCppuType() ); + xPropSet->setPropertyValue( sParaIsNumberingRestart, aAny ); + } pListBlock->ResetRestartNumbering(); } if( pListItem && pListItem->HasStartValue() && |