summaryrefslogtreecommitdiff
path: root/xmloff/source/text
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2005-02-22 08:59:18 +0000
committerVladimir Glazounov <vg@openoffice.org>2005-02-22 08:59:18 +0000
commit5baebc2595a4f3c4ec1b9560b63781ea1459e101 (patch)
tree936def7c8e75dbae73e08d9b53e207beea7b9604 /xmloff/source/text
parente06abd653169fac316a62768155a80f17da326d1 (diff)
INTEGRATION: CWS swqcore06 (1.117.54); FILE MERGED
2005/02/10 13:03:49 hbrinkm 1.117.54.2: RESYNC: (1.117-1.119); FILE MERGED 2005/02/07 21:05:47 dvo 1.117.54.1: #i42220# load/save text:is-list-header flag
Diffstat (limited to 'xmloff/source/text')
-rw-r--r--xmloff/source/text/txtparae.cxx32
1 files changed, 26 insertions, 6 deletions
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index 3b402b8d885d..47efec3b4544 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: txtparae.cxx,v $
*
- * $Revision: 1.119 $
+ * $Revision: 1.120 $
*
- * last change: $Author: rt $ $Date: 2005-01-27 11:31:05 $
+ * last change: $Author: vg $ $Date: 2005-02-22 09:59:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -304,6 +304,7 @@ static int txtparae_bContainsIllegalCharacters = sal_False;
// NumberingRules if style exists always
// TextSection always always
// ParaChapterNumberingLevel never always
+// NumberingIsNumber never always
// The conclusion is that for auto styles the first three properties
// should be queried using a multi property set if, and only if, an
@@ -332,6 +333,7 @@ enum eParagraphPropertyNamesEnumAuto
static const sal_Char* aParagraphPropertyNames[] =
{
+ "NumberingIsNumber",
"ParaChapterNumberingLevel",
"ParaConditionalStyleName",
"ParaStyleName",
@@ -341,10 +343,11 @@ static const sal_Char* aParagraphPropertyNames[] =
enum eParagraphPropertyNamesEnum
{
- PARA_CHAPTER_NUMERBING_LEVEL = 0,
- PARA_CONDITIONAL_STYLE_NAME = 1,
- PARA_STYLE_NAME = 2,
- TEXT_SECTION = 3
+ NUMBERING_IS_NUMBER = 0,
+ PARA_CHAPTER_NUMERBING_LEVEL = 1,
+ PARA_CONDITIONAL_STYLE_NAME = 2,
+ PARA_STYLE_NAME = 3,
+ TEXT_SECTION = 4
};
@@ -1768,6 +1771,23 @@ void XMLTextParagraphExport::exportParagraph(
GetExport().AddAttribute( XML_NAMESPACE_TEXT,
XML_OUTLINE_LEVEL,
sTmp.makeStringAndClear() );
+
+ if( rPropSetHelper.hasProperty( NUMBERING_IS_NUMBER ) )
+ {
+ if( xMultiPropSet.is() )
+ aAny = rPropSetHelper.getValue(
+ NUMBERING_IS_NUMBER, xMultiPropSet );
+ else
+ aAny = rPropSetHelper.getValue(
+ NUMBERING_IS_NUMBER, xPropSet );
+
+ bool bIsNumber;
+ aAny >>= bIsNumber;
+ if( ! bIsNumber )
+ GetExport().AddAttribute( XML_NAMESPACE_TEXT,
+ XML_IS_LIST_HEADER,
+ XML_TRUE );
+ }
}
}
}