summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-09-12 09:10:32 +0200
committerJan Holesovsky <kendy@collabora.com>2014-09-12 09:10:32 +0200
commit050c4a13b6d2569c9ae3ddb4fbd01956f9d7d4cd (patch)
tree0d48751a7f5210d9aca1ca9412c3c73fcd3f0a9f
parentvcl: It's a close button, there is no such a thing as a 'closer'. (diff)
downloadcore-050c4a13b6d2569c9ae3ddb4fbd01956f9d7d4cd.tar.gz
core-050c4a13b6d2569c9ae3ddb4fbd01956f9d7d4cd.zip
vcl: The DecoToolBox has grown its own legs, it cannot be a button any more.
Change-Id: I44497df5a5506127247cdef0924e9f7b76ed7d9b
-rw-r--r--vcl/source/window/menubarwindow.hxx21
1 files changed, 9 insertions, 12 deletions
diff --git a/vcl/source/window/menubarwindow.hxx b/vcl/source/window/menubarwindow.hxx
index 9a2f21a7fc9a..a2ce2be8fd23 100644
--- a/vcl/source/window/menubarwindow.hxx
+++ b/vcl/source/window/menubarwindow.hxx
@@ -27,13 +27,10 @@
#include <vcl/toolbox.hxx>
#include <vcl/window.hxx>
-/** Toolbox specialization for the 'closer' - the cross to close the document.
+/** Toolbox that holds the close button (right hand side of the menubar).
-To get the transparent mouse-over look, the closer is actually a toolbox
-overload DataChange to handle style changes correctly
-
-TODO: PushButtons can be transparent too; check if this DecoToolBox is still
-necessary...
+This is also used by the online update check; when an update is available, it
+inserts here the button that leads to the download of the update.
*/
class DecoToolBox : public ToolBox
{
@@ -135,12 +132,12 @@ public:
void ImplLayoutChanged();
Size MinCloseButtonSize();
- // add an arbitrary button to the menubar (will appear next to closer)
- sal_uInt16 AddMenuBarButton( const Image&, const Link&, const OUString&, sal_uInt16 nPos );
- void SetMenuBarButtonHighlightHdl( sal_uInt16 nId, const Link& );
- Rectangle GetMenuBarButtonRectPixel( sal_uInt16 nId );
- void RemoveMenuBarButton( sal_uInt16 nId );
- bool HandleMenuButtonEvent( sal_uInt16 i_nButtonId );
+ /// Add an arbitrary button to the menubar that will appear next to the close button.
+ sal_uInt16 AddMenuBarButton( const Image&, const Link&, const OUString&, sal_uInt16 nPos );
+ void SetMenuBarButtonHighlightHdl( sal_uInt16 nId, const Link& );
+ Rectangle GetMenuBarButtonRectPixel( sal_uInt16 nId );
+ void RemoveMenuBarButton( sal_uInt16 nId );
+ bool HandleMenuButtonEvent( sal_uInt16 i_nButtonId );
};
#endif // INCLUDED_VCL_SOURCE_WINDOW_MENUBARWINDOW_HXX