summaryrefslogtreecommitdiffstats
path: root/xmloff/source/text/XMLIndexTableSourceContext.cxx
diff options
context:
space:
mode:
authorDaniel Vogelheim <dvo@openoffice.org>2001-06-15 09:37:08 +0000
committerDaniel Vogelheim <dvo@openoffice.org>2001-06-15 09:37:08 +0000
commit89a0387a4e421c49ad4159ef99032371fbe6ac16 (patch)
tree6fc9fb04b06442b64e646d941006e198eb8fe09b /xmloff/source/text/XMLIndexTableSourceContext.cxx
parentFix #86988#: Redesign of dialogs (diff)
downloadcore-89a0387a4e421c49ad4159ef99032371fbe6ac16.tar.gz
core-89a0387a4e421c49ad4159ef99032371fbe6ac16.zip
#86004# #88312#
- changed convertEnum and appropriate maps to use token constants (rahter than sal_Char*) - user index marks in the process
Diffstat (limited to 'xmloff/source/text/XMLIndexTableSourceContext.cxx')
-rw-r--r--xmloff/source/text/XMLIndexTableSourceContext.cxx17
1 files changed, 9 insertions, 8 deletions
diff --git a/xmloff/source/text/XMLIndexTableSourceContext.cxx b/xmloff/source/text/XMLIndexTableSourceContext.cxx
index 491826181d82..7336a640eabf 100644
--- a/xmloff/source/text/XMLIndexTableSourceContext.cxx
+++ b/xmloff/source/text/XMLIndexTableSourceContext.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: XMLIndexTableSourceContext.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: dvo $ $Date: 2001-01-12 18:27:06 $
+ * last change: $Author: dvo $ $Date: 2001-06-15 10:37:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -125,6 +125,7 @@
#endif
using namespace ::com::sun::star::text;
+using namespace ::xmloff::token;
using ::rtl::OUString;
using ::com::sun::star::beans::XPropertySet;
@@ -163,15 +164,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 },
+ { XML_TEXT, ReferenceFieldPart::TEXT },
+ { XML_CATEGORY_AND_VALUE, ReferenceFieldPart::CATEGORY_AND_NUMBER },
+ { XML_CAPTION, ReferenceFieldPart::ONLY_CAPTION },
// wrong values that previous versions wrote:
- { sXML_chapter, ReferenceFieldPart::CATEGORY_AND_NUMBER },
- { sXML_page, ReferenceFieldPart::ONLY_CAPTION },
+ { XML_CHAPTER, ReferenceFieldPart::CATEGORY_AND_NUMBER },
+ { XML_PAGE, ReferenceFieldPart::ONLY_CAPTION },
- { 0, 0 }
+ { XML_TOKEN_INVALID, 0 }
};
void XMLIndexTableSourceContext::ProcessAttribute(