diff options
author | Joseph Powers <jpowers27@cox.net> | 2011-08-21 22:17:03 -0700 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-08-21 22:17:03 -0700 |
commit | 180ffa7c8505ac03a2637a995f1b7f12c8ef2202 (patch) | |
tree | fff22efdb0c9ba18f132ff422a8eb4c56a459297 /oox | |
parent | cc3ba7e9377fd6b353d883910b2e651cc2319cd9 (diff) |
unusedcode.easy: Cleanup GraphicHelper
Note: getDeviceInfo() is used in oox/source/xls/unitconverter.cxx
(UnitConverter::UnitConverter)
Diffstat (limited to 'oox')
-rw-r--r-- | oox/inc/oox/helper/graphichelper.hxx | 5 | ||||
-rw-r--r-- | oox/source/helper/graphichelper.cxx | 26 |
2 files changed, 0 insertions, 31 deletions
diff --git a/oox/inc/oox/helper/graphichelper.hxx b/oox/inc/oox/helper/graphichelper.hxx index 2d5d71148b55..f144cd17fd38 100644 --- a/oox/inc/oox/helper/graphichelper.hxx +++ b/oox/inc/oox/helper/graphichelper.hxx @@ -105,11 +105,6 @@ public: /** Converts the passed size from 1/100 mm to screen pixels. */ ::com::sun::star::awt::Size convertHmmToScreenPixel( const ::com::sun::star::awt::Size& rHmm ) const; - /** Converts the passed point from AppFont units to 1/100 mm. */ - ::com::sun::star::awt::Point convertAppFontToHmm( const ::com::sun::star::awt::Point& rAppFont ) const; - /** Converts the passed point from AppFont units to 1/100 mm. */ - ::com::sun::star::awt::Size convertAppFontToHmm( const ::com::sun::star::awt::Size& rAppFont ) const; - /** Converts the passed point from 1/100 mm to AppFont units. */ ::com::sun::star::awt::Point convertHmmToAppFont( const ::com::sun::star::awt::Point& rHmm ) const; /** Converts the passed size from 1/100 mm to AppFont units. */ diff --git a/oox/source/helper/graphichelper.cxx b/oox/source/helper/graphichelper.cxx index aa7e6f08e7ad..e331ff9ee060 100644 --- a/oox/source/helper/graphichelper.cxx +++ b/oox/source/helper/graphichelper.cxx @@ -216,32 +216,6 @@ Size GraphicHelper::convertHmmToScreenPixel( const Size& rHmm ) const static_cast< sal_Int32 >( convertHmmToScreenPixelY( rHmm.Height ) + 0.5 ) ); } -Point GraphicHelper::convertAppFontToHmm( const Point& rAppFont ) const -{ - if( mxUnitConversion.is() ) try - { - Point aPixel = mxUnitConversion->convertPointToPixel( rAppFont, ::com::sun::star::util::MeasureUnit::APPFONT ); - return convertScreenPixelToHmm( aPixel ); - } - catch( Exception& ) - { - } - return Point( 0, 0 ); -} - -Size GraphicHelper::convertAppFontToHmm( const Size& rAppFont ) const -{ - if( mxUnitConversion.is() ) try - { - Size aPixel = mxUnitConversion->convertSizeToPixel( rAppFont, ::com::sun::star::util::MeasureUnit::APPFONT ); - return convertScreenPixelToHmm( aPixel ); - } - catch( Exception& ) - { - } - return Size( 0, 0 ); -} - Point GraphicHelper::convertHmmToAppFont( const Point& rHmm ) const { if( mxUnitConversion.is() ) try |