diff options
Diffstat (limited to 'xmloff/source/text/XMLIndexTitleTemplateContext.cxx')
-rw-r--r-- | xmloff/source/text/XMLIndexTitleTemplateContext.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/xmloff/source/text/XMLIndexTitleTemplateContext.cxx b/xmloff/source/text/XMLIndexTitleTemplateContext.cxx index a303e84e2b56..b745b7d56d40 100644 --- a/xmloff/source/text/XMLIndexTitleTemplateContext.cxx +++ b/xmloff/source/text/XMLIndexTitleTemplateContext.cxx @@ -2,9 +2,9 @@ * * $RCSfile: XMLIndexTitleTemplateContext.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: dvo $ $Date: 2001-01-02 14:41:38 $ + * 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 @@ -79,8 +79,8 @@ #include "xmlnmspe.hxx" #endif -#ifndef _XMLOFF_XMLKYWD_HXX -#include "xmlkywd.hxx" +#ifndef _XMLOFF_XMLTOKEN_HXX +#include "xmltoken.hxx" #endif @@ -90,6 +90,8 @@ using ::com::sun::star::beans::XPropertySet; using ::com::sun::star::uno::Any; using ::com::sun::star::uno::Reference; using ::com::sun::star::xml::sax::XAttributeList; +using ::xmloff::token::IsXMLToken; +using ::xmloff::token::XML_STYLE_NAME; const sal_Char sAPI_Title[] = "Title"; @@ -130,8 +132,7 @@ void XMLIndexTitleTemplateContext::StartElement( GetKeyByAttrName( xAttrList->getNameByIndex(nAttr), &sLocalName ); if ( (XML_NAMESPACE_TEXT == nPrefix) && - (sLocalName.equalsAsciiL(sXML_style_name, - sizeof(sXML_style_name)-1)) ) + (IsXMLToken(sLocalName, XML_STYLE_NAME)) ) { sStyleName = xAttrList->getValueByIndex(nAttr); bStyleNameOK = sal_True; |