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/XMLTableHeaderFooterContext.cxx | |
parent | 16f02753ab3a231e0059a1cde2690325f60b6e59 (diff) |
#90255#; remove xmlkywd.hxx
Diffstat (limited to 'sc/source/filter/xml/XMLTableHeaderFooterContext.cxx')
-rw-r--r-- | sc/source/filter/xml/XMLTableHeaderFooterContext.cxx | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/sc/source/filter/xml/XMLTableHeaderFooterContext.cxx b/sc/source/filter/xml/XMLTableHeaderFooterContext.cxx index 47e507b47e9c..5c68c6ec6351 100644 --- a/sc/source/filter/xml/XMLTableHeaderFooterContext.cxx +++ b/sc/source/filter/xml/XMLTableHeaderFooterContext.cxx @@ -2,9 +2,9 @@ * * $RCSfile: XMLTableHeaderFooterContext.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: sab $ $Date: 2001-06-07 10:07:37 $ + * 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 @@ -68,12 +68,12 @@ #ifndef _XMLOFF_XMLNMSPE_HXX #include <xmloff/xmlnmspe.hxx> #endif -#ifndef _XMLOFF_XMLKYWD_HXX -#include <xmloff/xmlkywd.hxx> -#endif #ifndef _SC_XMLTABLEHEADERFOOTERCONTEXT_HXX_ #include "XMLTableHeaderFooterContext.hxx" #endif +#ifndef _XMLOFF_XMLTOKEN_HXX +#include <xmloff/xmltoken.hxx> +#endif #include "unonames.hxx" @@ -81,12 +81,9 @@ using namespace ::rtl; using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::xml::sax; -//using namespace ::com::sun::star::style; using namespace ::com::sun::star::text; using namespace ::com::sun::star::beans; -//using namespace ::com::sun::star::container; -//using namespace ::com::sun::star::lang; -//using namespace ::com::sun::star::text; +using namespace xmloff::token; TYPEINIT1( XMLTableHeaderFooterContext, SvXMLImportContext ); @@ -123,9 +120,8 @@ XMLTableHeaderFooterContext::XMLTableHeaderFooterContext( SvXMLImport& rImport, // TODO: use a map here if( XML_NAMESPACE_STYLE == nPrfx ) { - if( aLName.compareToAscii( sXML_display ) == 0 ) - if ( rValue.compareToAscii( sXML_false ) == 0 ) - bDisplay = sal_False; + if( IsXMLToken(aLName, XML_DISPLAY ) ) + bDisplay = IsXMLToken(rValue, XML_TRUE); } } if( bLeft ) @@ -194,8 +190,8 @@ SvXMLImportContext *XMLTableHeaderFooterContext::CreateChildContext( { SvXMLImportContext *pContext = 0; - if (nPrefix == XML_NAMESPACE_TEXT && - rLocalName.compareToAscii(sXML_p) == 0) + if ((nPrefix == XML_NAMESPACE_TEXT) && + IsXMLToken(rLocalName, XML_P)) { if (!xTextCursor.is()) { @@ -222,17 +218,17 @@ SvXMLImportContext *XMLTableHeaderFooterContext::CreateChildContext( if (xHeaderFooterContent.is()) { uno::Reference < text::XText > xText; - if (rLocalName.compareToAscii( sXML_region_left ) == 0) + if (IsXMLToken(rLocalName, XML_REGION_LEFT )) { xText = xHeaderFooterContent->getLeftText(); bContainsLeft = sal_True; } - else if (rLocalName.compareToAscii( sXML_region_center ) == 0) + else if (IsXMLToken(rLocalName, XML_REGION_CENTER )) { xText = xHeaderFooterContent->getCenterText(); bContainsCenter = sal_True; } - else if (rLocalName.compareToAscii( sXML_region_right ) == 0) + else if (IsXMLToken(rLocalName, XML_REGION_RIGHT )) { xText = xHeaderFooterContent->getRightText(); bContainsRight = sal_True; @@ -306,8 +302,8 @@ SvXMLImportContext *XMLHeaderFooterRegionContext::CreateChildContext( { SvXMLImportContext *pContext = 0; - if (nPrefix == XML_NAMESPACE_TEXT && - rLocalName.compareToAscii(sXML_p) == 0) + if ((nPrefix == XML_NAMESPACE_TEXT) && + IsXMLToken(rLocalName, XML_P)) { pContext = GetImport().GetTextImport()->CreateTextChildContext(GetImport(), |