summaryrefslogtreecommitdiff
path: root/xmloff/source/style/adjushdl.cxx
diff options
context:
space:
mode:
authorDaniel Vogelheim <dvo@openoffice.org>2001-06-15 09:37:08 +0000
committerDaniel Vogelheim <dvo@openoffice.org>2001-06-15 09:37:08 +0000
commit89a0387a4e421c49ad4159ef99032371fbe6ac16 (patch)
tree6fc9fb04b06442b64e646d941006e198eb8fe09b /xmloff/source/style/adjushdl.cxx
parent634dff87cf68c27ccb15c8ed44c747b4e9e8d05a (diff)
#86004# #88312#
- changed convertEnum and appropriate maps to use token constants (rahter than sal_Char*) - user index marks in the process
Diffstat (limited to 'xmloff/source/style/adjushdl.cxx')
-rw-r--r--xmloff/source/style/adjushdl.cxx31
1 files changed, 16 insertions, 15 deletions
diff --git a/xmloff/source/style/adjushdl.cxx b/xmloff/source/style/adjushdl.cxx
index 1ce8d6cbd203..fe426b4137db 100644
--- a/xmloff/source/style/adjushdl.cxx
+++ b/xmloff/source/style/adjushdl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: adjushdl.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: mib $ $Date: 2001-01-30 08:50:10 $
+ * last change: $Author: dvo $ $Date: 2001-06-15 10:37:07 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -93,24 +93,25 @@
using namespace ::com::sun::star;
using namespace ::rtl;
+using namespace ::xmloff::token;
SvXMLEnumMapEntry __READONLY_DATA pXML_Para_Adjust_Enum[] =
{
- { sXML_start, style::ParagraphAdjust_LEFT },
- { sXML_end, style::ParagraphAdjust_RIGHT },
- { sXML_center, style::ParagraphAdjust_CENTER },
- { sXML_justify, style::ParagraphAdjust_BLOCK },
- { sXML_justified, style::ParagraphAdjust_BLOCK }, // obsolete
- { 0, 0 }
+ { XML_START, style::ParagraphAdjust_LEFT },
+ { XML_END, style::ParagraphAdjust_RIGHT },
+ { XML_CENTER, style::ParagraphAdjust_CENTER },
+ { XML_JUSTIFY, style::ParagraphAdjust_BLOCK },
+ { XML_JUSTIFIED, style::ParagraphAdjust_BLOCK }, // obsolete
+ { XML_TOKEN_INVALID, 0 }
};
SvXMLEnumMapEntry __READONLY_DATA pXML_Para_Align_Last_Enum[] =
{
- { sXML_start, style::ParagraphAdjust_LEFT },
- { sXML_center, style::ParagraphAdjust_CENTER },
- { sXML_justify, style::ParagraphAdjust_BLOCK },
- { sXML_justified, style::ParagraphAdjust_BLOCK }, // obsolete
- { 0, 0 }
+ { XML_START, style::ParagraphAdjust_LEFT },
+ { XML_CENTER, style::ParagraphAdjust_CENTER },
+ { XML_JUSTIFY, style::ParagraphAdjust_BLOCK },
+ { XML_JUSTIFIED, style::ParagraphAdjust_BLOCK }, // obsolete
+ { XML_TOKEN_INVALID, 0 }
};
///////////////////////////////////////////////////////////////////////////////
@@ -141,7 +142,7 @@ sal_Bool XMLParaAdjustPropHdl::exportXML( OUString& rStrExpValue, const uno::Any
rValue >>= nVal;
- sal_Bool bRet = rUnitConverter.convertEnum( aOut, nVal, pXML_Para_Adjust_Enum, sXML_start );
+ sal_Bool bRet = rUnitConverter.convertEnum( aOut, nVal, pXML_Para_Adjust_Enum, XML_START );
rStrExpValue = aOut.makeStringAndClear();
@@ -178,7 +179,7 @@ sal_Bool XMLLastLineAdjustPropHdl::exportXML( OUString& rStrExpValue, const uno:
rValue >>= nVal;
if( nVal != style::ParagraphAdjust_LEFT )
- bRet = rUnitConverter.convertEnum( aOut, nVal, pXML_Para_Align_Last_Enum, sXML_start );
+ bRet = rUnitConverter.convertEnum( aOut, nVal, pXML_Para_Align_Last_Enum, XML_START );
rStrExpValue = aOut.makeStringAndClear();