diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2011-12-21 01:42:15 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2011-12-21 12:32:12 +0100 |
commit | d73d329bf1a114bb5e26742245aac9abb6dae269 (patch) | |
tree | 797ab55a99fa12dfbd486aaf6d7b4772f1c95f08 /svx | |
parent | callcatcher: Remove unused code (diff) | |
download | core-d73d329bf1a114bb5e26742245aac9abb6dae269.tar.gz core-d73d329bf1a114bb5e26742245aac9abb6dae269.zip |
callcatcher: remove unused classes
Diffstat (limited to 'svx')
-rw-r--r-- | svx/inc/svx/dlgctrl.hxx | 24 | ||||
-rw-r--r-- | svx/source/dialog/dlgctrl.cxx | 87 |
2 files changed, 0 insertions, 111 deletions
diff --git a/svx/inc/svx/dlgctrl.hxx b/svx/inc/svx/dlgctrl.hxx index 1e1f11a9c7ec..8471b502f1ae 100644 --- a/svx/inc/svx/dlgctrl.hxx +++ b/svx/inc/svx/dlgctrl.hxx @@ -135,30 +135,6 @@ public: }; /************************************************************************* -|* Control for display and selecton of the angle of the corner points -|* of an object -\************************************************************************/ - -class SvxAngleCtl : public SvxRectCtl -{ -private: - void Initialize(); - -protected: - Font aFont; - Size aFontSize; - sal_Bool bPositive; - -public: - SvxAngleCtl( Window* pParent, const ResId& rResId ); - SvxAngleCtl( Window* pParent, const ResId& rResId, Size aSize ); - - void ChangeMetric() - { bPositive = !bPositive; } - virtual void Paint( const Rectangle& rRect ); -}; - -/************************************************************************* |* Preview control for the display of bitmaps \************************************************************************/ diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx index 4187f369b143..7a84a7a0cffd 100644 --- a/svx/source/dialog/dlgctrl.cxx +++ b/svx/source/dialog/dlgctrl.cxx @@ -722,93 +722,6 @@ void SvxRectCtl::DoCompletelyDisable(sal_Bool bNew) Invalidate(); } -// Constructor without the size parameter - -SvxAngleCtl::SvxAngleCtl( Window* pParent, const ResId& rResId ) : - - SvxRectCtl( pParent, rResId ), - - aFont( Application::GetSettings().GetStyleSettings().GetAppFont() ) -{ - aFontSize = Size( 250, 400 ); - Initialize(); -} - -// Constructor with the size parameter - -SvxAngleCtl::SvxAngleCtl( Window* pParent, const ResId& rResId, Size _aSize ) : - - SvxRectCtl( pParent, rResId ), - - aFont( Application::GetSettings().GetStyleSettings().GetAppFont() ) -{ - aFontSize = _aSize; - Initialize(); -} - -void SvxAngleCtl::Initialize() -{ - bPositive = sal_True; - - aFont.SetSize( aFontSize ); - aFont.SetWeight( WEIGHT_NORMAL ); - aFont.SetTransparent( sal_False ); - - SetFont( aFont ); -} - -// Draws the (mini) coordinate system - -void SvxAngleCtl::Paint( const Rectangle& ) -{ - SetLineColor( Color( COL_BLACK ) ); // PEN_DOT ??? - DrawLine( aPtLT - Point( 0, 0), aPtRB + Point( 0, 0 ) ); - DrawLine( aPtLB - Point( 0, 0), aPtRT + Point( 0, 0 ) ); - - SetLineColor( Color( COL_BLACK ) ); - DrawLine( aPtLM - Point( 0, 0), aPtRM + Point( 0, 0 ) ); - DrawLine( aPtMT - Point( 0, 0), aPtMB + Point( 0, 0 ) ); - - Point aDiff(aFontSize.Width() / 2, aFontSize.Height() / 2); - - DrawText( aPtLT - aDiff, UniString::CreateFromAscii( - RTL_CONSTASCII_STRINGPARAM( "135" ) ) ); - DrawText( aPtLM - aDiff, UniString::CreateFromAscii( - RTL_CONSTASCII_STRINGPARAM( "180" ) ) ); - - if ( bPositive ) - DrawText( aPtLB - aDiff, UniString::CreateFromAscii( - RTL_CONSTASCII_STRINGPARAM( "225" ) ) ); - else - DrawText( aPtLB - aDiff, UniString::CreateFromAscii( - RTL_CONSTASCII_STRINGPARAM( "-135" ) ) ); - - aDiff.X() = aFontSize.Width(); - DrawText( aPtMT - aDiff, UniString::CreateFromAscii( - RTL_CONSTASCII_STRINGPARAM( "90" ) ) ); - DrawText( aPtRT - aDiff, UniString::CreateFromAscii( - RTL_CONSTASCII_STRINGPARAM( "45" ) ) ); - aDiff.X() = aDiff .X() * 3 / 2; - - if ( bPositive ) - DrawText( aPtMB - aDiff, UniString::CreateFromAscii( - RTL_CONSTASCII_STRINGPARAM( "270" ) ) ); - else - DrawText( aPtMB - aDiff, UniString::CreateFromAscii( - RTL_CONSTASCII_STRINGPARAM( "-90" ) ) ); - - DrawText( aPtRM - Point( 0, aDiff.Y() ), UniString::CreateFromAscii( - RTL_CONSTASCII_STRINGPARAM( "0" ) ) ); - aDiff.X() = aFontSize.Width() * 2; - - if ( bPositive ) - DrawText( aPtRB - aDiff, UniString::CreateFromAscii( - RTL_CONSTASCII_STRINGPARAM( "315" ) ) ); - else - DrawText( aPtRB - aDiff, UniString::CreateFromAscii( - RTL_CONSTASCII_STRINGPARAM( "-45" ) ) ); -} - // Control for editing bitmaps SvxPixelCtl::SvxPixelCtl( Window* pParent, const ResId& rResId, sal_uInt16 nNumber ) : |