summaryrefslogtreecommitdiffstats
path: root/xmloff/source/text/XMLIndexTableSourceContext.cxx
diff options
context:
space:
mode:
authorDaniel Vogelheim <dvo@openoffice.org>2001-01-12 17:27:06 +0000
committerDaniel Vogelheim <dvo@openoffice.org>2001-01-12 17:27:06 +0000
commit548077da4bbe8998fb5316e8f3963235b76ef284 (patch)
tree97691686c05928dd02f3eb01da228788e4b7e214 /xmloff/source/text/XMLIndexTableSourceContext.cxx
parentcorrected GetItemSet() (diff)
downloadcore-548077da4bbe8998fb5316e8f3963235b76ef284.tar.gz
core-548077da4bbe8998fb5316e8f3963235b76ef284.zip
- fixed #81985#: caption sequence format in table and illustration indices fixed
Diffstat (limited to 'xmloff/source/text/XMLIndexTableSourceContext.cxx')
-rw-r--r--xmloff/source/text/XMLIndexTableSourceContext.cxx32
1 files changed, 18 insertions, 14 deletions
diff --git a/xmloff/source/text/XMLIndexTableSourceContext.cxx b/xmloff/source/text/XMLIndexTableSourceContext.cxx
index 6fec26a801d5..491826181d82 100644
--- a/xmloff/source/text/XMLIndexTableSourceContext.cxx
+++ b/xmloff/source/text/XMLIndexTableSourceContext.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: XMLIndexTableSourceContext.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: hr $ $Date: 2000-11-21 12:45:19 $
+ * last change: $Author: dvo $ $Date: 2001-01-12 18:27:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -162,9 +162,15 @@ XMLIndexTableSourceContext::~XMLIndexTableSourceContext()
static SvXMLEnumMapEntry __READONLY_DATA lcl_aReferenceTypeTokenMap[] =
{
- { sXML_text, ReferenceFieldPart::TEXT },
- { sXML_category_and_value, ReferenceFieldPart::CATEGORY_AND_NUMBER },
- { sXML_caption, ReferenceFieldPart::ONLY_CAPTION },
+
+ { sXML_text, ReferenceFieldPart::TEXT },
+ { sXML_category_and_value, ReferenceFieldPart::CATEGORY_AND_NUMBER },
+ { sXML_caption, ReferenceFieldPart::ONLY_CAPTION },
+
+ // wrong values that previous versions wrote:
+ { sXML_chapter, ReferenceFieldPart::CATEGORY_AND_NUMBER },
+ { sXML_page, ReferenceFieldPart::ONLY_CAPTION },
+
{ 0, 0 }
};
@@ -190,15 +196,13 @@ void XMLIndexTableSourceContext::ProcessAttribute(
case XML_TOK_INDEXSOURCE_SEQUENCE_FORMAT:
{
- // TODO: API problem
-
-// sal_uInt16 nTmp;
-// if (SvXMLUnitConverter::convertEnum(nTmp, rValue,
-// lcl_aReferenceTypeTokenMap))
-// {
-// nDisplayFormat = nTmp;
-// bDisplayFormatOK = sal_True;
-// }
+ sal_uInt16 nTmp;
+ if (SvXMLUnitConverter::convertEnum(nTmp, rValue,
+ lcl_aReferenceTypeTokenMap))
+ {
+ nDisplayFormat = nTmp;
+ bDisplayFormatOK = sal_True;
+ }
break;
}