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/XMLConsolidationContext.cxx | |
parent | 16f02753ab3a231e0059a1cde2690325f60b6e59 (diff) |
#90255#; remove xmlkywd.hxx
Diffstat (limited to 'sc/source/filter/xml/XMLConsolidationContext.cxx')
-rw-r--r-- | sc/source/filter/xml/XMLConsolidationContext.cxx | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sc/source/filter/xml/XMLConsolidationContext.cxx b/sc/source/filter/xml/XMLConsolidationContext.cxx index 9ba3728e4151..0d8035e32ebc 100644 --- a/sc/source/filter/xml/XMLConsolidationContext.cxx +++ b/sc/source/filter/xml/XMLConsolidationContext.cxx @@ -2,9 +2,9 @@ * * $RCSfile: XMLConsolidationContext.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: sab $ $Date: 2000-12-19 18:32:39 $ + * 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 @@ -87,12 +87,13 @@ #ifndef _XMLOFF_NMSPMAP_HXX #include <xmloff/nmspmap.hxx> #endif -#ifndef _XMLOFF_XMLKYWD_HXX -#include <xmloff/xmlkywd.hxx> +#ifndef _XMLOFF_XMLTOKEN_HXX +#include <xmloff/xmltoken.hxx> #endif using namespace ::rtl; using namespace ::com::sun::star; +using namespace xmloff::token; //___________________________________________________________________ @@ -138,7 +139,7 @@ ScXMLConsolidationContext::ScXMLConsolidationContext( sUseLabel = sValue; break; case XML_TOK_CONSOLIDATION_ATTR_LINK_TO_SOURCE: - bLinkToSource = (sValue.compareToAscii( sXML_true ) == 0); + bLinkToSource = IsXMLToken(sValue, XML_TRUE); break; } } @@ -181,11 +182,11 @@ void ScXMLConsolidationContext::EndElement() } aConsParam.bByCol = aConsParam.bByRow = FALSE; - if( sUseLabel.compareToAscii( sXML_column ) == 0 ) + if( IsXMLToken(sUseLabel, XML_COLUMN ) ) aConsParam.bByCol = TRUE; - else if( sUseLabel.compareToAscii( sXML_row ) == 0 ) + else if( IsXMLToken( sUseLabel, XML_ROW ) ) aConsParam.bByRow = TRUE; - else if( sUseLabel.compareToAscii( sXML_both ) == 0 ) + else if( IsXMLToken( sUseLabel, XML_BOTH ) ) aConsParam.bByCol = aConsParam.bByRow = TRUE; aConsParam.bReferenceData = bLinkToSource; |