summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLIndexUserSourceContext.cxx
diff options
context:
space:
mode:
authorDaniel Vogelheim <dvo@openoffice.org>2001-06-29 20:07:26 +0000
committerDaniel Vogelheim <dvo@openoffice.org>2001-06-29 20:07:26 +0000
commit46f2b42bc32395f1f062b2458a23aae6ff1d85b9 (patch)
treec1c12349c4d9bf0c290678720adec361ffd8839b /xmloff/source/text/XMLIndexUserSourceContext.cxx
parent22aae28a715473f3878c720dbb66957183321f75 (diff)
#86004# changes sXML_* strings to XML_* tokens
Diffstat (limited to 'xmloff/source/text/XMLIndexUserSourceContext.cxx')
-rw-r--r--xmloff/source/text/XMLIndexUserSourceContext.cxx17
1 files changed, 10 insertions, 7 deletions
diff --git a/xmloff/source/text/XMLIndexUserSourceContext.cxx b/xmloff/source/text/XMLIndexUserSourceContext.cxx
index 75e60c6657..e1fb8ad7ef 100644
--- a/xmloff/source/text/XMLIndexUserSourceContext.cxx
+++ b/xmloff/source/text/XMLIndexUserSourceContext.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: XMLIndexUserSourceContext.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: dvo $ $Date: 2000-11-21 11:53:19 $
+ * last change: $Author: dvo $ $Date: 2001-06-29 21:07:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -104,8 +104,8 @@
#include "nmspmap.hxx"
#endif
-#ifndef _XMLOFF_XMLKYWD_HXX
-#include "xmlkywd.hxx"
+#ifndef _XMLOFF_XMLTOKEN_HXX
+#include "xmltoken.hxx"
#endif
#ifndef _XMLOFF_XMLUCONV_HXX
@@ -120,11 +120,15 @@
#include <rtl/ustring.hxx>
#endif
+
using ::rtl::OUString;
using ::com::sun::star::beans::XPropertySet;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Any;
using ::com::sun::star::xml::sax::XAttributeList;
+using ::xmloff::token::IsXMLToken;
+using ::xmloff::token::XML_USER_INDEX_ENTRY_TEMPLATE;
+using ::xmloff::token::XML_OUTLINE_LEVEL;
const sal_Char sAPI_CreateFromEmbeddedObjects[] = "CreateFromEmbeddedObjects";
@@ -270,13 +274,12 @@ SvXMLImportContext* XMLIndexUserSourceContext::CreateChildContext(
const Reference<XAttributeList> & xAttrList )
{
if ( (XML_NAMESPACE_TEXT == nPrefix) &&
- (rLocalName.equalsAsciiL(sXML_user_index_entry_template,
- sizeof(sXML_user_index_entry_template)-1)))
+ (IsXMLToken(rLocalName, XML_USER_INDEX_ENTRY_TEMPLATE)) )
{
return new XMLIndexTemplateContext(GetImport(), rIndexPropertySet,
nPrefix, rLocalName,
aLevelNameTOCMap,
- sXML_outline_level,
+ XML_OUTLINE_LEVEL,
aLevelStylePropNameTOCMap,
aAllowedTokenTypesUser);
}