From d73d329bf1a114bb5e26742245aac9abb6dae269 Mon Sep 17 00:00:00 2001 From: Matúš Kukan Date: Wed, 21 Dec 2011 01:42:15 +0100 Subject: callcatcher: remove unused classes --- svx/inc/svx/dlgctrl.hxx | 24 ------------ svx/source/dialog/dlgctrl.cxx | 87 ------------------------------------------- 2 files changed, 111 deletions(-) (limited to 'svx') 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 @@ -134,30 +134,6 @@ public: void DoCompletelyDisable(sal_Bool bNew); }; -/************************************************************************* -|* 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 ) : -- cgit alue='distro/collabora/lov-6.4'>distro/collabora/lov-6.4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/.buckversion
AgeCommit message (Expand)Author