diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-26 22:26:24 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-29 09:56:05 +0100 |
commit | 012072ebd70a2180918864818f522944e46adf07 (patch) | |
tree | ba33e6c949b52aa7f61ef410f809c817fea5c328 /sd/source/ui/dlg/tpoption.cxx | |
parent | eb71f3d572b6e1c24a072bd2fcd9c29e08113d32 (diff) |
valgrind: various unused code
Diffstat (limited to 'sd/source/ui/dlg/tpoption.cxx')
-rw-r--r-- | sd/source/ui/dlg/tpoption.cxx | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/sd/source/ui/dlg/tpoption.cxx b/sd/source/ui/dlg/tpoption.cxx index f0f2fd2b1953..e12cd976ea7c 100644 --- a/sd/source/ui/dlg/tpoption.cxx +++ b/sd/source/ui/dlg/tpoption.cxx @@ -684,62 +684,6 @@ void SdTpOptionsMisc::SetDrawMode() // spacing-between-paragraphs check box normally is in. aCbxUsePrinterMetrics.SetPosPixel (aCbxCompatibility.GetPosPixel()); } -// ----------------------------------------------------------------------- - -IMPL_LINK( SdTpOptionsMisc, ModifyScaleHdl, void *, EMPTYARG ) -{ - // Originalgroesse berechnen - sal_Int32 nX, nY; - if( SetScale( aCbScale.GetText(), nX, nY ) ) - { - sal_Int32 nW = nWidth * nY / nX; - sal_Int32 nH = nHeight * nY / nX; - - SetMetricValue( aMtrFldOriginalWidth, nW, ePoolUnit ); - SetMetricValue( aMtrFldOriginalHeight, nH, ePoolUnit ); - } - - return( 0L ); -} - -// ----------------------------------------------------------------------- - -IMPL_LINK( SdTpOptionsMisc, ModifyOriginalScaleHdl, void *, EMPTYARG ) -{ - // Berechnen des Massstabs - long nOrgW = static_cast<long>(aMtrFldOriginalWidth.GetValue()); - long nOrgH = static_cast<long>(aMtrFldOriginalHeight.GetValue()); - - if( nOrgW == 0 || nOrgH == 0 ) - return( 0L ); - - Fraction aFract1( nOrgW, static_cast<long>(aMtrFldInfo1.GetValue()) ); - Fraction aFract2( nOrgH, static_cast<long>(aMtrFldInfo2.GetValue()) ); - Fraction aFract( aFract1 > aFract2 ? aFract1 : aFract2 ); - - long nValue; - if( aFract < Fraction( 1, 1 ) ) - { - // Fraction umdrehen - aFract1 = aFract; - aFract = Fraction( aFract1.GetDenominator(), aFract1.GetNumerator() ); - nValue = aFract; - - // Swap nominator and denominator - aCbScale.SetText( GetScale( nValue, 1 ) ); - } - else - { - double fValue = aFract; - nValue = aFract; - if( fValue > (double)nValue ) - nValue++; - - // Swap nominator and denominator - aCbScale.SetText( GetScale( 1, nValue ) ); - } - return( 0L ); -} // ----------------------------------------------------------------------- |