diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-10-12 12:16:24 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-10-12 21:47:31 +0900 |
commit | ff9da5a017a56c06a644cf5da8d4a34f4b275df8 (patch) | |
tree | 2041626433eb8ec4ec90418888314dde6700160f /svx/source/dialog/imapdlg.cxx | |
parent | f7ffa5f14758fb49ca85b4cea7f705c2d438710e (diff) |
extract a common inline function into header
Diffstat (limited to 'svx/source/dialog/imapdlg.cxx')
-rw-r--r-- | svx/source/dialog/imapdlg.cxx | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/svx/source/dialog/imapdlg.cxx b/svx/source/dialog/imapdlg.cxx index 633c8a236c74..da9b35fd8a5f 100644 --- a/svx/source/dialog/imapdlg.cxx +++ b/svx/source/dialog/imapdlg.cxx @@ -75,6 +75,7 @@ #include <svx/svdtrans.hxx> #include <svx/svdopath.hxx> #include <vcl/svapp.hxx> +#include "dlgunit.hxx" #define SELF_TARGET "_self" #define IMAP_ALL_FILTER "<Alle>" @@ -93,22 +94,6 @@ SFX_IMPL_MODELESSDIALOG( SvxIMapDlgChildWindow, SID_IMAP ); -/******************************************************************************/ - -inline String GetUnitString( long nVal_100, FieldUnit eFieldUnit, sal_Unicode cSep ) -{ - String aVal = UniString::CreateFromInt64( MetricField::ConvertValue( nVal_100, 2, MAP_100TH_MM, eFieldUnit ) ); - - while( aVal.Len() < 3 ) - aVal.Insert( sal_Unicode('0'), 0 ); - - aVal.Insert( cSep, aVal.Len() - 2 ); - aVal += sal_Unicode(' '); - aVal += SdrFormatter::GetUnitStr( eFieldUnit ); - - return aVal; -} - // ControllerItem SvxIMapDlgItem::SvxIMapDlgItem( sal_uInt16 _nId, SvxIMapDlg& rIMapDlg, SfxBindings& rBindings ) : |