diff options
Diffstat (limited to 'sw/source/ui/utlui/prcntfld.cxx')
-rw-r--r-- | sw/source/ui/utlui/prcntfld.cxx | 66 |
1 files changed, 1 insertions, 65 deletions
diff --git a/sw/source/ui/utlui/prcntfld.cxx b/sw/source/ui/utlui/prcntfld.cxx index 9ab9d9f47b34..dab55775b71b 100644 --- a/sw/source/ui/utlui/prcntfld.cxx +++ b/sw/source/ui/utlui/prcntfld.cxx @@ -28,17 +28,10 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_sw.hxx" -// include --------------------------------------------------------------- - - #include "prcntfld.hxx" // STATIC DATA ----------------------------------------------------------- -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - PercentField::PercentField( Window* pWin, const ResId& rResId ) : MetricField ( pWin, rResId ), @@ -56,10 +49,6 @@ PercentField::PercentField( Window* pWin, const ResId& rResId ) : SetCustomUnitText('%'); } -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - void PercentField::SetRefValue(sal_Int64 nValue) { sal_Int64 nRealValue = GetRealValue(eOldUnit); @@ -70,10 +59,6 @@ void PercentField::SetRefValue(sal_Int64 nValue) SetPrcntValue(nRealValue, eOldUnit); } -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - void PercentField::ShowPercent(BOOL bPercent) { if ((bPercent && GetUnit() == FUNIT_CUSTOM) || @@ -141,16 +126,11 @@ void PercentField::ShowPercent(BOOL bPercent) } } -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ void PercentField::SetValue(sal_Int64 nNewValue, FieldUnit eInUnit) { MetricFormatter::SetValue(nNewValue, eInUnit); } -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ + void PercentField::SetPrcntValue(sal_Int64 nNewValue, FieldUnit eInUnit) { if (GetUnit() != FUNIT_CUSTOM || eInUnit == FUNIT_CUSTOM) @@ -174,10 +154,6 @@ void PercentField::SetPrcntValue(sal_Int64 nNewValue, FieldUnit eInUnit) } } -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - void PercentField::SetUserValue( sal_Int64 nNewValue, FieldUnit eInUnit ) { if (GetUnit() != FUNIT_CUSTOM || eInUnit == FUNIT_CUSTOM) @@ -202,10 +178,6 @@ void PercentField::SetUserValue( sal_Int64 nNewValue, FieldUnit eInUnit ) } -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - void PercentField::SetBaseValue(sal_Int64 nNewValue, FieldUnit eInUnit) { if (GetUnit() == FUNIT_CUSTOM) @@ -214,19 +186,11 @@ void PercentField::SetBaseValue(sal_Int64 nNewValue, FieldUnit eInUnit) MetricField::SetBaseValue(nNewValue, eInUnit); } -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - sal_Int64 PercentField::GetValue( FieldUnit eOutUnit ) { return Convert(MetricField::GetValue(), GetUnit(), eOutUnit); } -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - void PercentField::SetMin(sal_Int64 nNewMin, FieldUnit eInUnit) { if (GetUnit() != FUNIT_CUSTOM) @@ -242,10 +206,6 @@ void PercentField::SetMin(sal_Int64 nNewMin, FieldUnit eInUnit) } } -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - void PercentField::SetMax(sal_Int64 nNewMax, FieldUnit eInUnit) { if (GetUnit() != FUNIT_CUSTOM) @@ -258,10 +218,6 @@ void PercentField::SetMax(sal_Int64 nNewMax, FieldUnit eInUnit) } } -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - sal_Int64 PercentField::NormalizePercent(sal_Int64 nValue) { if (GetUnit() != FUNIT_CUSTOM) @@ -272,10 +228,6 @@ sal_Int64 PercentField::NormalizePercent(sal_Int64 nValue) return nValue; } -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - sal_Int64 PercentField::DenormalizePercent(sal_Int64 nValue) { if (GetUnit() != FUNIT_CUSTOM) @@ -289,10 +241,6 @@ sal_Int64 PercentField::DenormalizePercent(sal_Int64 nValue) return nValue; } -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - BOOL PercentField::IsValueModified() { if (GetUnit() == FUNIT_CUSTOM) @@ -301,10 +249,6 @@ BOOL PercentField::IsValueModified() return MetricField::IsValueModified(); } -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - sal_Int64 PercentField::ImpPower10( USHORT n ) { USHORT i; @@ -316,10 +260,6 @@ sal_Int64 PercentField::ImpPower10( USHORT n ) return nValue; } -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - sal_Int64 PercentField::GetRealValue(FieldUnit eOutUnit) { if (GetUnit() != FUNIT_CUSTOM) @@ -328,10 +268,6 @@ sal_Int64 PercentField::GetRealValue(FieldUnit eOutUnit) return Convert(GetValue(), GetUnit(), eOutUnit); } -/*-------------------------------------------------------------------- - Beschreibung: - --------------------------------------------------------------------*/ - sal_Int64 PercentField::Convert(sal_Int64 nValue, FieldUnit eInUnit, FieldUnit eOutUnit) { if (eInUnit == eOutUnit || |