summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-02-01 09:39:56 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-02-01 11:13:44 +0000
commit5833c182edd9f0fe82a38175601753bd676e5eba (patch)
tree362d4f484cbd21de1d77c885b6888141486df82e /xmloff
parent7c74443e8522fd0f1db60c2d18f736574e3db5f9 (diff)
callcatcher: update list
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/inc/xmloff/xmluconv.hxx19
-rw-r--r--xmloff/source/core/xmluconv.cxx46
2 files changed, 0 insertions, 65 deletions
diff --git a/xmloff/inc/xmloff/xmluconv.hxx b/xmloff/inc/xmloff/xmluconv.hxx
index 7e9a460be64c..7506a2837c83 100644
--- a/xmloff/inc/xmloff/xmluconv.hxx
+++ b/xmloff/inc/xmloff/xmluconv.hxx
@@ -115,9 +115,6 @@ public:
/** sets the default unit for numerical measures */
void SetCoreMeasureUnit( sal_Int16 const eCoreMeasureUnit );
- /** gets the default unit for numerical measures */
- sal_Int16 GetCoreMeasureUnit() const;
-
/** sets the default unit for textual measures */
void SetXMLMeasureUnit( sal_Int16 const eXMLMeasureUnit );
@@ -139,12 +136,6 @@ public:
void convertMeasureToXML( ::rtl::OUStringBuffer& rBuffer,
sal_Int32 nMeasure ) const;
- /** convert measure with given unit to string with meXMLMeasureUnit */
- void convertMeasureToXML( ::rtl::OUStringBuffer&,
- sal_Int32 nMeasure,
- sal_Int16 eSrcUnit ) const;
-
-
/** convert string to enum using given enum map, if the enum is
not found in the map, this method will return false */
static sal_Bool convertEnum( sal_uInt16& rEnum,
@@ -167,16 +158,6 @@ public:
enum ::xmloff::token::XMLTokenEnum eDefault =
::xmloff::token::XML_TOKEN_INVALID );
- /** convert enum to string using given token map with an optional
- default token. If the enum is not found in the map,
- this method will either use the given default or return
- false if not default is set */
- static sal_Bool convertEnum( ::rtl::OUStringBuffer& rBuffer,
- sal_uInt16 nValue,
- const SvXMLEnumStringMapEntry *pMap,
- sal_Char* pDefault = NULL );
-
-
/** convert double number to string (using ::rtl::math) and DO
convert to export MapUnit using meCoreMeasureUnit/meXMLMeasureUnit */
void convertDouble(::rtl::OUStringBuffer& rBuffer,
diff --git a/xmloff/source/core/xmluconv.cxx b/xmloff/source/core/xmluconv.cxx
index 1109eb5be0ea..f6e06217b188 100644
--- a/xmloff/source/core/xmluconv.cxx
+++ b/xmloff/source/core/xmluconv.cxx
@@ -117,11 +117,6 @@ void SvXMLUnitConverter::SetCoreMeasureUnit(sal_Int16 const eCoreMeasureUnit)
m_pImpl->m_eCoreMeasureUnit = eCoreMeasureUnit;
}
-sal_Int16 SvXMLUnitConverter::GetCoreMeasureUnit() const
-{
- return m_pImpl->m_eCoreMeasureUnit;
-}
-
void SvXMLUnitConverter::SetXMLMeasureUnit(sal_Int16 const eXMLMeasureUnit)
{
m_pImpl->m_eXMLMeasureUnit = eXMLMeasureUnit;
@@ -195,16 +190,6 @@ void SvXMLUnitConverter::convertMeasureToXML( OUStringBuffer& rString,
m_pImpl->m_eXMLMeasureUnit );
}
-/** convert measure with given unit to string */
-void SvXMLUnitConverter::convertMeasureToXML( OUStringBuffer& rString,
- sal_Int32 nMeasure,
- sal_Int16 eSrcUnit ) const
-{
- ::sax::Converter::convertMeasure( rString, nMeasure,
- eSrcUnit,
- m_pImpl->m_eXMLMeasureUnit );
-}
-
/** convert string to enum using given enum map, if the enum is
not found in the map, this method will return false
*/
@@ -244,37 +229,6 @@ sal_Bool SvXMLUnitConverter::convertEnum(
return sal_False;
}
-/** convert enum to string using given enum map with optional
- default string. If the enum is not found in the map,
- this method will either use the given default or return
- false if not default is set
-*/
-sal_Bool SvXMLUnitConverter::convertEnum( OUStringBuffer& rBuffer,
- sal_uInt16 nValue,
- const SvXMLEnumStringMapEntry *pMap,
- sal_Char * pDefault /* = NULL */ )
-{
- const sal_Char *pStr = pDefault;
-
- while( pMap->pName )
- {
- if( pMap->nValue == nValue )
- {
- pStr = pMap->pName;
- break;
- }
- ++pMap;
- }
-
- if( NULL == pStr )
- pStr = pDefault;
-
- if( NULL != pStr )
- rBuffer.appendAscii( pStr );
-
- return NULL != pStr;
-}
-
/** convert enum to string using given token map with an optional
default token. If the enum is not found in the map,
this method will either use the given default or return