diff options
author | Sascha Ballach <sab@openoffice.org> | 2001-07-26 05:51:20 +0000 |
---|---|---|
committer | Sascha Ballach <sab@openoffice.org> | 2001-07-26 05:51:20 +0000 |
commit | c3586b2d782bcaff444bf4b05136fc25799ef4b8 (patch) | |
tree | 31fbb1d8c05da217b6414446f795d393ae6cf59b /sc/source/filter/xml/XMLTableSourceContext.cxx | |
parent | 16f02753ab3a231e0059a1cde2690325f60b6e59 (diff) |
#90255#; remove xmlkywd.hxx
Diffstat (limited to 'sc/source/filter/xml/XMLTableSourceContext.cxx')
-rw-r--r-- | sc/source/filter/xml/XMLTableSourceContext.cxx | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/sc/source/filter/xml/XMLTableSourceContext.cxx b/sc/source/filter/xml/XMLTableSourceContext.cxx index 79f4688cd23c..94520899d0b1 100644 --- a/sc/source/filter/xml/XMLTableSourceContext.cxx +++ b/sc/source/filter/xml/XMLTableSourceContext.cxx @@ -2,9 +2,9 @@ * * $RCSfile: XMLTableSourceContext.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: sab $ $Date: 2001-06-25 12:03:09 $ + * last change: $Author: sab $ $Date: 2001-07-26 06:51:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -83,8 +83,8 @@ #include "tablink.hxx" #endif -#ifndef _XMLOFF_XMLKYWD_HXX -#include <xmloff/xmlkywd.hxx> +#ifndef _XMLOFF_XMLTOKEN_HXX +#include <xmloff/xmltoken.hxx> #endif #ifndef _XMLOFF_XMLNMSPE_HXX #include <xmloff/xmlnmspe.hxx> @@ -101,6 +101,7 @@ #endif using namespace com::sun::star; +using namespace xmloff::token; //------------------------------------------------------------------ @@ -127,23 +128,23 @@ ScXMLTableSourceContext::ScXMLTableSourceContext( ScXMLImport& rImport, rtl::OUString sValue = xAttrList->getValueByIndex( i ); if(nPrefix == XML_NAMESPACE_XLINK) { - if (aLocalName.compareToAscii(sXML_href) == 0) + if (IsXMLToken(aLocalName, XML_HREF)) sLink = GetScImport().GetAbsoluteReference(sValue); } else if (nPrefix == XML_NAMESPACE_TABLE) { - if (aLocalName.compareToAscii(sXML_table_name) == 0) + if (IsXMLToken(aLocalName, XML_TABLE_NAME)) sTableName = sValue; - else if (aLocalName.compareToAscii(sXML_filter_name) == 0) + else if (IsXMLToken(aLocalName, XML_FILTER_NAME)) sFilterName = sValue; - else if (aLocalName.compareToAscii(sXML_filter_options) == 0) + else if (IsXMLToken(aLocalName, XML_FILTER_OPTIONS)) sFilterOptions = sValue; - else if (aLocalName.compareToAscii(sXML_mode) == 0) + else if (IsXMLToken(aLocalName, XML_MODE)) { - if (sValue.compareToAscii(sXML_copy_results_only) == 0) + if (IsXMLToken(sValue, XML_COPY_RESULTS_ONLY)) nMode = sheet::SheetLinkMode_VALUE; } - else if (aLocalName.compareToAscii(sXML_refresh_delay) == 0) + else if (IsXMLToken(aLocalName, XML_REFRESH_DELAY)) { double fTime; if( SvXMLUnitConverter::convertTime( fTime, sValue ) ) |