diff options
Diffstat (limited to 'svtools/source/misc/unitconv.cxx')
-rw-r--r-- | svtools/source/misc/unitconv.cxx | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/svtools/source/misc/unitconv.cxx b/svtools/source/misc/unitconv.cxx index 190cb0f8d05b..dd13dad23701 100644 --- a/svtools/source/misc/unitconv.cxx +++ b/svtools/source/misc/unitconv.cxx @@ -20,7 +20,6 @@ #include <svtools/unitconv.hxx> - void SetFieldUnit( MetricField& rField, FieldUnit eUnit, bool bAll ) { sal_Int64 nFirst = rField.Denormalize( rField.GetFirst( FUNIT_TWIP ) ); @@ -80,7 +79,6 @@ void SetFieldUnit( MetricField& rField, FieldUnit eUnit, bool bAll ) } - void SetFieldUnit( MetricBox& rBox, FieldUnit eUnit, bool bAll ) { sal_Int64 nMin = rBox.Denormalize( rBox.GetMin( FUNIT_TWIP ) ); @@ -126,7 +124,6 @@ void SetMetricValue( MetricField& rField, long nCoreValue, SfxMapUnit eUnit ) } - long GetCoreValue( const MetricField& rField, SfxMapUnit eUnit ) { sal_Int64 nVal = rField.GetValue( FUNIT_100TH_MM ); @@ -152,7 +149,6 @@ long GetCoreValue( const MetricField& rField, SfxMapUnit eUnit ) } - long CalcToUnit( float nIn, SfxMapUnit eUnit ) { // nIn ist in Points @@ -184,7 +180,6 @@ long CalcToUnit( float nIn, SfxMapUnit eUnit ) } - long ItemToControl( long nIn, SfxMapUnit eItem, FieldUnit eCtrl ) { long nOut = 0; @@ -241,14 +236,12 @@ long ItemToControl( long nIn, SfxMapUnit eItem, FieldUnit eCtrl ) } - long ControlToItem( long nIn, FieldUnit eCtrl, SfxMapUnit eItem ) { return ItemToControl( nIn, eItem, eCtrl ); } - FieldUnit MapToFieldUnit( const SfxMapUnit eUnit ) { switch ( eUnit ) @@ -278,7 +271,6 @@ FieldUnit MapToFieldUnit( const SfxMapUnit eUnit ) } - long CalcToPoint( long nIn, SfxMapUnit eUnit, sal_uInt16 nFactor ) { DBG_ASSERT( eUnit == SFX_MAPUNIT_TWIP || @@ -317,7 +309,6 @@ long CalcToPoint( long nIn, SfxMapUnit eUnit, sal_uInt16 nFactor ) } - long CMToTwips( long nIn ) { long nRet = 0; @@ -328,7 +319,6 @@ long CMToTwips( long nIn ) } - long MMToTwips( long nIn ) { long nRet = 0; @@ -339,7 +329,6 @@ long MMToTwips( long nIn ) } - long InchToTwips( long nIn ) { long nRet = 0; @@ -350,7 +339,6 @@ long InchToTwips( long nIn ) } - long PointToTwips( long nIn ) { long nRet = 0; @@ -361,7 +349,6 @@ long PointToTwips( long nIn ) } - long PicaToTwips( long nIn ) { long nRet = 0; @@ -372,7 +359,6 @@ long PicaToTwips( long nIn ) } - long TwipsToCM( long nIn ) { long nRet = nIn / 567; @@ -380,7 +366,6 @@ long TwipsToCM( long nIn ) } - long InchToCM( long nIn ) { long nRet = 0; @@ -391,7 +376,6 @@ long InchToCM( long nIn ) } - long MMToCM( long nIn ) { long nRet = nIn / 10; @@ -399,7 +383,6 @@ long MMToCM( long nIn ) } - long PointToCM( long nIn ) { long nRet = 0; @@ -410,7 +393,6 @@ long PointToCM( long nIn ) } - long PicaToCM( long nIn) { long nRet = 0; @@ -421,7 +403,6 @@ long PicaToCM( long nIn) } - long TwipsToMM( long nIn ) { long nRet = 0; @@ -432,7 +413,6 @@ long TwipsToMM( long nIn ) } - long CMToMM( long nIn ) { long nRet = 0; @@ -443,7 +423,6 @@ long CMToMM( long nIn ) } - long InchToMM( long nIn ) { long nRet = 0; @@ -454,7 +433,6 @@ long InchToMM( long nIn ) } - long PointToMM( long nIn ) { long nRet = 0; @@ -465,7 +443,6 @@ long PointToMM( long nIn ) } - long PicaToMM( long nIn ) { long nRet = 0; @@ -476,7 +453,6 @@ long PicaToMM( long nIn ) } - long TwipsToInch( long nIn ) { long nRet = nIn / 1440; @@ -484,7 +460,6 @@ long TwipsToInch( long nIn ) } - long CMToInch( long nIn ) { long nRet = 0; @@ -495,7 +470,6 @@ long CMToInch( long nIn ) } - long MMToInch( long nIn ) { long nRet = 0; @@ -506,7 +480,6 @@ long MMToInch( long nIn ) } - long PointToInch( long nIn ) { long nRet = nIn / 72; @@ -514,7 +487,6 @@ long PointToInch( long nIn ) } - long PicaToInch( long nIn ) { long nRet = nIn / 6; @@ -522,7 +494,6 @@ long PicaToInch( long nIn ) } - long TwipsToPoint( long nIn ) { long nRet = nIn / 20; @@ -530,7 +501,6 @@ long TwipsToPoint( long nIn ) } - long InchToPoint( long nIn ) { long nRet = 0; @@ -541,7 +511,6 @@ long InchToPoint( long nIn ) } - long CMToPoint( long nIn ) { long nRet = 0; @@ -552,7 +521,6 @@ long CMToPoint( long nIn ) } - long MMToPoint( long nIn ) { long nRet = 0; @@ -563,7 +531,6 @@ long MMToPoint( long nIn ) } - long PicaToPoint( long nIn ) { long nRet = nIn / 12; @@ -571,7 +538,6 @@ long PicaToPoint( long nIn ) } - long TwipsToPica( long nIn ) { long nRet = nIn / 240; @@ -579,7 +545,6 @@ long TwipsToPica( long nIn ) } - long InchToPica( long nIn ) { long nRet = 0; @@ -590,7 +555,6 @@ long InchToPica( long nIn ) } - long PointToPica( long nIn ) { long nRet = 0; @@ -601,7 +565,6 @@ long PointToPica( long nIn ) } - long CMToPica( long nIn ) { long nRet = 0; @@ -612,7 +575,6 @@ long CMToPica( long nIn ) } - long MMToPica( long nIn ) { long nRet = 0; @@ -623,7 +585,6 @@ long MMToPica( long nIn ) } - long Nothing( long nIn ) { long nRet = nIn; @@ -642,7 +603,6 @@ FUNC_CONVERT ConvertTable[6][6] = }; - long TransformMetric( long nVal, FieldUnit aOld, FieldUnit aNew ) { if ( aOld == FUNIT_NONE || aNew == FUNIT_NONE || |