diff options
author | Tor Lillqvist <tlillqvist@novell.com> | 2011-01-21 14:48:58 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@novell.com> | 2011-01-21 16:11:57 +0200 |
commit | bd3ea40ed49074c4fa4439de7b5dea4fc3161880 (patch) | |
tree | 2faefc8cb92188fe516f908fea1915ae44e366c6 /vcl | |
parent | 7ba80b24256d49eb765f2943c1495c1511bb7b69 (diff) |
Remove ShowHelpStatusText and HideHelpStatusText and associated cruft
These methods were not implemented by any subclass, and the
implementations in the base class were empty. Still, the quite heavy
(especially in our multi-lingual builds) GetHelpText() mechanism was
called to get a string to pass to ShowHelpStatusText(). So just remove
all of it. See see fdo#33088 and fdo#33315.
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/vcl/svapp.hxx | 3 | ||||
-rw-r--r-- | vcl/inc/vcl/toolbox.hxx | 1 | ||||
-rw-r--r-- | vcl/source/app/help.cxx | 11 | ||||
-rw-r--r-- | vcl/source/app/svapp.cxx | 12 | ||||
-rw-r--r-- | vcl/source/window/menu.cxx | 6 | ||||
-rw-r--r-- | vcl/source/window/toolbox.cxx | 1 | ||||
-rw-r--r-- | vcl/source/window/toolbox2.cxx | 13 |
7 files changed, 0 insertions, 47 deletions
diff --git a/vcl/inc/vcl/svapp.hxx b/vcl/inc/vcl/svapp.hxx index 1dc6ab011f24..df6229e62e6c 100644 --- a/vcl/inc/vcl/svapp.hxx +++ b/vcl/inc/vcl/svapp.hxx @@ -255,9 +255,6 @@ public: virtual void ShowStatusText( const XubString& rText ); virtual void HideStatusText(); - virtual void ShowHelpStatusText( const XubString& rText ); - virtual void HideHelpStatusText(); - virtual void FocusChanged(); virtual void DataChanged( const DataChangedEvent& rDCEvt ); diff --git a/vcl/inc/vcl/toolbox.hxx b/vcl/inc/vcl/toolbox.hxx index cc6018ddc812..b7ba4ec2693c 100644 --- a/vcl/inc/vcl/toolbox.hxx +++ b/vcl/inc/vcl/toolbox.hxx @@ -230,7 +230,6 @@ private: mbCustomize:1, mbCustomizeMode:1, mbDragging:1, - mbHideStatusText:1, mbMenuStrings:1, mbIsShift:1, mbIsKeyEvent:1, diff --git a/vcl/source/app/help.cxx b/vcl/source/app/help.cxx index 277154394541..f26b5d3cb400 100644 --- a/vcl/source/app/help.cxx +++ b/vcl/source/app/help.cxx @@ -372,12 +372,6 @@ HelpTextWindow::~HelpTextWindow() if( this == ImplGetSVData()->maHelpData.mpHelpWin ) ImplGetSVData()->maHelpData.mpHelpWin = NULL; - - if ( maStatusText.Len() ) - { - ImplSVData* pSVData = ImplGetSVData(); - pSVData->mpApp->HideHelpStatusText(); - } } // ----------------------------------------------------------------------- @@ -426,11 +420,6 @@ void HelpTextWindow::SetHelpText( const String& rHelpText ) void HelpTextWindow::ImplShow() { ImplDelData aDogTag( this ); - if ( maStatusText.Len() ) - { - ImplSVData* pSVData = ImplGetSVData(); - pSVData->mpApp->ShowHelpStatusText( maStatusText ); - } Show( TRUE, SHOW_NOACTIVATE ); if( !aDogTag.IsDelete() ) Update(); diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index f9c21b462ab0..1be1141596de 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -266,12 +266,6 @@ void Application::ShowStatusText( const XubString& ) // ----------------------------------------------------------------------- -void Application::ShowHelpStatusText( const XubString& ) -{ -} - -// ----------------------------------------------------------------------- - void Application::ActivateExtHelp() { } @@ -290,12 +284,6 @@ void Application::HideStatusText() // ----------------------------------------------------------------------- -void Application::HideHelpStatusText() -{ -} - -// ----------------------------------------------------------------------- - void Application::FocusChanged() { } diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index 2a7e9b07d1f2..571de196f594 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -1101,9 +1101,6 @@ void Menu::Deactivate() if( !aDelData.isDeleted() ) { bInCallback = FALSE; - - if ( this == pStartMenu ) - GetpApp()->HideHelpStatusText(); } } @@ -1117,9 +1114,6 @@ void Menu::Highlight() if ( pStartMenu && ( pStartMenu != this ) ) pStartMenu->aHighlightHdl.Call( this ); } - - if ( !aDelData.isDeleted() && GetCurItemId() ) - GetpApp()->ShowHelpStatusText( GetHelpText( GetCurItemId() ) ); } void Menu::ImplSelect() diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index 2672ea6b9e51..16b1f5d7a4a9 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -1618,7 +1618,6 @@ void ToolBox::ImplInit( Window* pParent, WinBits nStyle ) mbCustomize = FALSE; mbCustomizeMode = FALSE; mbDragging = FALSE; - mbHideStatusText = FALSE; mbMenuStrings = FALSE; mbIsShift = FALSE; mbIsKeyEvent = FALSE; diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx index 29e6cd3ba3c5..d4095b91b5f7 100644 --- a/vcl/source/window/toolbox2.cxx +++ b/vcl/source/window/toolbox2.cxx @@ -507,12 +507,6 @@ void ToolBox::Deactivate() mnActivateCount--; ImplCallEventListeners( VCLEVENT_TOOLBOX_DEACTIVATE ); maDeactivateHdl.Call( this ); - - if ( mbHideStatusText ) - { - GetpApp()->HideHelpStatusText(); - mbHideStatusText = FALSE; - } } // ----------------------------------------------------------------------- @@ -521,13 +515,6 @@ void ToolBox::Highlight() { ImplCallEventListeners( VCLEVENT_TOOLBOX_HIGHLIGHT ); maHighlightHdl.Call( this ); - - XubString aStr = GetHelpText( mnCurItemId ); - if ( aStr.Len() || mbHideStatusText ) - { - GetpApp()->ShowHelpStatusText( aStr ); - mbHideStatusText = TRUE; - } } // ----------------------------------------------------------------------- |