diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-12-13 08:04:26 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-12-13 10:11:44 +0000 |
commit | 90ca7d9e2423afccfaece5f7ffef7fcdd3b5b1e7 (patch) | |
tree | 4b2276cb495c416e7395bc6bc325da887eb815ad /svtools/source/control/fixedhyper.cxx | |
parent | m_pInfoImage never constructed or used (diff) | |
download | core-90ca7d9e2423afccfaece5f7ffef7fcdd3b5b1e7.tar.gz core-90ca7d9e2423afccfaece5f7ffef7fcdd3b5b1e7.zip |
callcatcher: remove newly unused code
Diffstat (limited to 'svtools/source/control/fixedhyper.cxx')
-rw-r--r-- | svtools/source/control/fixedhyper.cxx | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/svtools/source/control/fixedhyper.cxx b/svtools/source/control/fixedhyper.cxx index 2fa3fd553c05..598218f2fe9d 100644 --- a/svtools/source/control/fixedhyper.cxx +++ b/svtools/source/control/fixedhyper.cxx @@ -136,88 +136,6 @@ void FixedHyperlink::SetDescription( const String& rNewDescription ) m_nTextLen = GetCtrlTextWidth( GetText() ); } -FixedHyperlinkImage::FixedHyperlinkImage( Window* pParent, WinBits nWinStyle ) : - FixedImage( pParent, nWinStyle ) -{ - Initialize(); -} - -FixedHyperlinkImage::~FixedHyperlinkImage() -{ -} - -void FixedHyperlinkImage::Initialize() -{ - // saves the old pointer - m_aOldPointer = GetPointer(); -} - -void FixedHyperlinkImage::MouseMove( const MouseEvent& rMEvt ) -{ - // changes the pointer if the control is enabled and the mouse is over the text. - if ( !rMEvt.IsLeaveWindow() && IsEnabled() ) - SetPointer( POINTER_REFHAND ); - else - SetPointer( m_aOldPointer ); -} - -void FixedHyperlinkImage::MouseButtonUp( const MouseEvent& ) -{ - // calls the link if the control is enabled and the mouse is over the text. - if ( IsEnabled() ) - ImplCallEventListenersAndHandler( VCLEVENT_BUTTON_CLICK, m_aClickHdl, this ); - - Size aSize = GetSizePixel(); - Size aImgSz = GetImage().GetSizePixel(); - if ( aSize.Width() < aImgSz.Width() ) - { - DBG_ERRORFILE("xxx"); - } -} - -void FixedHyperlinkImage::RequestHelp( const HelpEvent& rHEvt ) -{ - if ( IsEnabled() ) - FixedImage::RequestHelp( rHEvt ); -} - -void FixedHyperlinkImage::GetFocus() -{ - Paint( Rectangle( Point(), GetSizePixel() ) ); - ShowFocus( Rectangle( Point( 1, 1 ), Size( GetSizePixel().Width() - 2, GetSizePixel().Height() - 2 ) ) ); -} - -void FixedHyperlinkImage::LoseFocus() -{ - Paint( Rectangle( Point(), GetSizePixel() ) ); - HideFocus(); -} - -void FixedHyperlinkImage::KeyInput( const KeyEvent& rKEvt ) -{ - switch ( rKEvt.GetKeyCode().GetCode() ) - { - case KEY_SPACE: - case KEY_RETURN: - m_aClickHdl.Call( this ); - break; - - default: - FixedImage::KeyInput( rKEvt ); - } -} - -void FixedHyperlinkImage::SetURL( const String& rNewURL ) -{ - m_sURL = rNewURL; - SetQuickHelpText( m_sURL ); -} - -String FixedHyperlinkImage::GetURL() const -{ - return m_sURL; -} - //......................................................................... } // namespace svt //......................................................................... |