diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-09-12 09:10:32 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-09-12 09:10:32 +0200 |
commit | 050c4a13b6d2569c9ae3ddb4fbd01956f9d7d4cd (patch) | |
tree | 0d48751a7f5210d9aca1ca9412c3c73fcd3f0a9f | |
parent | d22edd44b59df11df94dc10f9678973b0f04557c (diff) |
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.hxx | 21 |
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 |