summaryrefslogtreecommitdiff
path: root/xmloff/source/script/XMLEventsImportContext.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
commitf4983559bde7e92cc93ddaf79650db9aabc15019 (patch)
treefb2a4107a2c056882b68f14fda364b2e14e142b3 /xmloff/source/script/XMLEventsImportContext.cxx
parent5e7951a2d8e80d1353ee51be3c0129e24841e1ce (diff)
#86004# changes sXML_* strings to XML_* tokens
Diffstat (limited to 'xmloff/source/script/XMLEventsImportContext.cxx')
-rw-r--r--xmloff/source/script/XMLEventsImportContext.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/xmloff/source/script/XMLEventsImportContext.cxx b/xmloff/source/script/XMLEventsImportContext.cxx
index 6fec3421479c..ec824202a602 100644
--- a/xmloff/source/script/XMLEventsImportContext.cxx
+++ b/xmloff/source/script/XMLEventsImportContext.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: XMLEventsImportContext.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: dvo $ $Date: 2001-01-30 13:09:59 $
+ * last change: $Author: dvo $ $Date: 2001-06-29 21:07:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -87,11 +87,12 @@
#include "xmlnmspe.hxx"
#endif
-#ifndef _XMLOFF_XMLKYWD_HXX
-#include "xmlkywd.hxx"
+#ifndef _XMLOFF_XMLTOKEN_HXX
+#include "xmltoken.hxx"
#endif
using namespace ::com::sun::star::uno;
+using namespace ::xmloff::token;
using ::rtl::OUString;
using ::com::sun::star::xml::sax::XAttributeList;
@@ -183,13 +184,11 @@ SvXMLImportContext* XMLEventsImportContext::CreateChildContext(
if (XML_NAMESPACE_SCRIPT == nPrefix)
{
- if (sLocalName.equalsAsciiL(sXML_event_name,
- sizeof(sXML_event_name)-1))
+ if (IsXMLToken(sLocalName, XML_EVENT_NAME))
{
sEventName = xAttrList->getValueByIndex(nAttr);
}
- else if (sLocalName.equalsAsciiL(sXML_language,
- sizeof(sXML_language)-1))
+ else if (IsXMLToken(sLocalName, XML_LANGUAGE))
{
sLanguage = xAttrList->getValueByIndex(nAttr);
}