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/_contdlg.cxx | |
parent | f7ffa5f14758fb49ca85b4cea7f705c2d438710e (diff) |
extract a common inline function into header
Diffstat (limited to 'svx/source/dialog/_contdlg.cxx')
-rw-r--r-- | svx/source/dialog/_contdlg.cxx | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/svx/source/dialog/_contdlg.cxx b/svx/source/dialog/_contdlg.cxx index 8245faa763ba..a1001284f2c9 100644 --- a/svx/source/dialog/_contdlg.cxx +++ b/svx/source/dialog/_contdlg.cxx @@ -62,26 +62,7 @@ #include <svx/svdopath.hxx> #include "svx/dlgutil.hxx" #include <vcl/svapp.hxx> - -/******************************************************************************/ - -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; -} - - -/******************************************************************************/ - +#include "dlgunit.hxx" SFX_IMPL_FLOATINGWINDOW( SvxContourDlgChildWindow, SID_CONTOUR_DLG ); |