diff options
author | Daniel Vogelheim <dvo@openoffice.org> | 2001-06-15 09:37:08 +0000 |
---|---|---|
committer | Daniel Vogelheim <dvo@openoffice.org> | 2001-06-15 09:37:08 +0000 |
commit | 89a0387a4e421c49ad4159ef99032371fbe6ac16 (patch) | |
tree | 6fc9fb04b06442b64e646d941006e198eb8fe09b /xmloff/source/style/fonthdl.cxx | |
parent | 634dff87cf68c27ccb15c8ed44c747b4e9e8d05a (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/fonthdl.cxx')
-rw-r--r-- | xmloff/source/style/fonthdl.cxx | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/xmloff/source/style/fonthdl.cxx b/xmloff/source/style/fonthdl.cxx index c39af312f231..8dcf0d5227be 100644 --- a/xmloff/source/style/fonthdl.cxx +++ b/xmloff/source/style/fonthdl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: fonthdl.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: mib $ $Date: 2000-11-13 08:42:13 $ + * 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 @@ -89,24 +89,25 @@ using namespace ::rtl; using namespace ::com::sun::star; +using namespace ::xmloff::token; static SvXMLEnumMapEntry __READONLY_DATA aFontFamilyGenericMapping[] = { - { sXML_decorative, FAMILY_DECORATIVE }, - - { sXML_modern, FAMILY_MODERN }, - { sXML_roman, FAMILY_ROMAN }, - { sXML_script, FAMILY_SCRIPT }, - { sXML_swiss, FAMILY_SWISS }, - { sXML_system, FAMILY_SYSTEM }, - { 0, 0 } + { XML_DECORATIVE, FAMILY_DECORATIVE }, + + { XML_MODERN, FAMILY_MODERN }, + { XML_ROMAN, FAMILY_ROMAN }, + { XML_SCRIPT, FAMILY_SCRIPT }, + { XML_SWISS, FAMILY_SWISS }, + { XML_SYSTEM, FAMILY_SYSTEM }, + { XML_TOKEN_INVALID, 0 } }; static SvXMLEnumMapEntry __READONLY_DATA aFontPitchMapping[] = { - { sXML_fixed, PITCH_FIXED }, - { sXML_variable, PITCH_VARIABLE }, - { 0, 0 } + { XML_FIXED, PITCH_FIXED }, + { XML_VARIABLE, PITCH_VARIABLE }, + { XML_TOKEN_INVALID, 0 } }; /////////////////////////////////////////////////////////////////////////////// // @@ -356,7 +357,7 @@ sal_Bool XMLFontPitchPropHdl::exportXML( OUString& rStrExpValue, const uno::Any& if( PITCH_DONTKNOW != ePitch ) { - bRet = rUnitConverter.convertEnum( aOut, ePitch, aFontPitchMapping, sXML_fixed ); + bRet = rUnitConverter.convertEnum( aOut, ePitch, aFontPitchMapping, XML_FIXED ); rStrExpValue = aOut.makeStringAndClear(); } |