summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLIndexTOCContext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/text/XMLIndexTOCContext.cxx')
-rw-r--r--xmloff/source/text/XMLIndexTOCContext.cxx17
1 files changed, 9 insertions, 8 deletions
diff --git a/xmloff/source/text/XMLIndexTOCContext.cxx b/xmloff/source/text/XMLIndexTOCContext.cxx
index 13303e3fe0bd..8cfc208312bf 100644
--- a/xmloff/source/text/XMLIndexTOCContext.cxx
+++ b/xmloff/source/text/XMLIndexTOCContext.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: XMLIndexTOCContext.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: dvo $ $Date: 2001-06-15 10:37:08 $
+ * 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
@@ -144,6 +144,10 @@
#include "xmlkywd.hxx"
#endif
+#ifndef _XMLOFF_XMLTOKEN_HXX
+#include "xmltoken.hxx"
+#endif
+
#ifndef _XMLOFF_PRSTYLEI_HXX_
#include "prstylei.hxx"
#endif
@@ -390,8 +394,7 @@ void XMLIndexTOCContext::StartElement(
&sLocalName );
if ( XML_NAMESPACE_TEXT == nPrefix)
{
- if ( sLocalName.equalsAsciiL(sXML_style_name,
- sizeof(sXML_style_name)-1) )
+ if ( IsXMLToken( sLocalName, XML_STYLE_NAME ) )
{
XMLPropStyleContext* pStyle =
GetImport().GetTextImport()->FindSectionStyle(
@@ -401,8 +404,7 @@ void XMLIndexTOCContext::StartElement(
pStyle->FillPropertySet( xTOCPropertySet );
}
}
- else if ( sLocalName.equalsAsciiL(sXML_protected,
- sizeof(sXML_protected)-1) )
+ else if ( IsXMLToken( sLocalName, XML_PROTECTED ) )
{
sal_Bool bTmp;
if ( SvXMLUnitConverter::convertBool(
@@ -453,8 +455,7 @@ SvXMLImportContext* XMLIndexTOCContext::CreateChildContext(
{
if (XML_NAMESPACE_TEXT == nPrefix)
{
- if (rLocalName.equalsAsciiL(sXML_index_body,
- sizeof(sXML_index_body)-1))
+ if ( IsXMLToken( rLocalName, XML_INDEX_BODY ) )
{
pContext = new XMLIndexBodyContext(GetImport(), nPrefix,
rLocalName);