summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLIndexBibliographySourceContext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/text/XMLIndexBibliographySourceContext.cxx')
-rw-r--r--xmloff/source/text/XMLIndexBibliographySourceContext.cxx18
1 files changed, 10 insertions, 8 deletions
diff --git a/xmloff/source/text/XMLIndexBibliographySourceContext.cxx b/xmloff/source/text/XMLIndexBibliographySourceContext.cxx
index fd0d37361d62..5d663bf14ad2 100644
--- a/xmloff/source/text/XMLIndexBibliographySourceContext.cxx
+++ b/xmloff/source/text/XMLIndexBibliographySourceContext.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: XMLIndexBibliographySourceContext.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: dvo $ $Date: 2000-11-14 14:42:50 $
+ * last change: $Author: dvo $ $Date: 2001-06-29 21:07:21 $
*
* 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,6 +120,9 @@
#include <rtl/ustring.hxx>
#endif
+
+using namespace ::xmloff::token;
+
using ::rtl::OUString;
using ::com::sun::star::beans::XPropertySet;
using ::com::sun::star::uno::Reference;
@@ -163,14 +166,13 @@ SvXMLImportContext* XMLIndexBibliographySourceContext::CreateChildContext(
const OUString& rLocalName,
const Reference<XAttributeList> & xAttrList )
{
- if ( (XML_NAMESPACE_TEXT == nPrefix) &&
- (rLocalName.equalsAsciiL(sXML_bibliography_entry_template,
- sizeof(sXML_bibliography_entry_template)-1)))
+ if ( ( XML_NAMESPACE_TEXT == nPrefix ) &&
+ ( IsXMLToken( rLocalName, XML_BIBLIOGRAPHY_ENTRY_TEMPLATE ) ) )
{
return new XMLIndexTemplateContext(GetImport(), rIndexPropertySet,
nPrefix, rLocalName,
aLevelNameBibliographyMap,
- sXML_bibliography_type,
+ XML_BIBLIOGRAPHY_TYPE,
aLevelStylePropNameBibliographyMap,
aAllowedTokenTypesBibliography);
}