summaryrefslogtreecommitdiff
path: root/xmloff/source/style/xmlprmap.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/style/xmlprmap.cxx
parent5e7951a2d8e80d1353ee51be3c0129e24841e1ce (diff)
#86004# changes sXML_* strings to XML_* tokens
Diffstat (limited to 'xmloff/source/style/xmlprmap.cxx')
-rw-r--r--xmloff/source/style/xmlprmap.cxx16
1 files changed, 11 insertions, 5 deletions
diff --git a/xmloff/source/style/xmlprmap.cxx b/xmloff/source/style/xmlprmap.cxx
index 3802e2c5037a..1881eec41ffa 100644
--- a/xmloff/source/style/xmlprmap.cxx
+++ b/xmloff/source/style/xmlprmap.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmlprmap.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: sab $ $Date: 2001-03-01 13:15:04 $
+ * last change: $Author: dvo $ $Date: 2001-06-29 21:07:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -91,15 +91,21 @@
#include <com/sun/star/uno/Any.hxx>
#endif
+#ifndef _XMLOFF_XMLTOKEN_HXX
+#include "xmltoken.hxx"
+#endif
+
+
using namespace ::std;
using namespace ::rtl;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
+using ::xmloff::token::GetXMLToken;
XMLPropertySetMapperEntry_Impl::XMLPropertySetMapperEntry_Impl(
const XMLPropertyMapEntry& rMapEntry,
const UniReference< XMLPropertyHandlerFactory >& rFactory ) :
- sXMLAttributeName( OUString::createFromAscii(rMapEntry.msXMLName) ),
+ sXMLAttributeName( GetXMLToken(rMapEntry.meXMLName) ),
sAPIPropertyName( OUString::createFromAscii(rMapEntry.msApiName) ),
nXMLNameSpace( rMapEntry.mnNameSpace ),
nType( rMapEntry.mnType ),
@@ -241,7 +247,7 @@ const sal_Int32 XMLPropertySetMapper::GetEntryIndex(
sal_Int32 XMLPropertySetMapper::FindEntryIndex(
const sal_Char* sApiName,
sal_uInt16 nNameSpace,
- const sal_Char* sXMLName ) const
+ const OUString& sXMLName ) const
{
sal_Int32 nIndex = 0;
sal_Int32 nEntries = GetEntryCount();
@@ -250,7 +256,7 @@ sal_Int32 XMLPropertySetMapper::FindEntryIndex(
{
const XMLPropertySetMapperEntry_Impl& rEntry = aMapEntries[nIndex];
if( rEntry.nXMLNameSpace == nNameSpace &&
- 0 == rEntry.sXMLAttributeName.compareToAscii( sXMLName ) &&
+ rEntry.sXMLAttributeName.equals( sXMLName ) &&
0 == rEntry.sAPIPropertyName.compareToAscii( sApiName ) )
return nIndex;
else