summaryrefslogtreecommitdiff
path: root/include/sfx2
diff options
context:
space:
mode:
authorSzymon Kłos <eszkadev@gmail.com>2016-07-20 16:08:38 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2016-07-22 08:59:59 +0000
commitb949604b91f77dee3b2737ea09e1ac3ade4eed1c (patch)
tree84b3f65668c933f8fc5e5ce3541df5aa0919c7ef /include/sfx2
parentb5c05876f73c31270bc374e4f481ef1d09a42e5f (diff)
GSoC notebookbar: file menu
+ added icon to the notebookbar, after click the file menu will appear Change-Id: I30e1ed7e2c4a194e150c7196652904fd4e5c9e8e Reviewed-on: https://gerrit.libreoffice.org/27347 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'include/sfx2')
-rw-r--r--include/sfx2/notebookbar/SfxNotebookBar.hxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/sfx2/notebookbar/SfxNotebookBar.hxx b/include/sfx2/notebookbar/SfxNotebookBar.hxx
index d76b35e6a16b..d3387a2e5338 100644
--- a/include/sfx2/notebookbar/SfxNotebookBar.hxx
+++ b/include/sfx2/notebookbar/SfxNotebookBar.hxx
@@ -11,6 +11,8 @@
#define INCLUDED_SFX2_NOTEBOOKBAR_SFXNOTEBOOKBAR_HXX
#include <sfx2/dllapi.h>
+#include <com/sun/star/frame/XLayoutManager.hpp>
+#include <vcl/notebookbar.hxx>
class SfxBindings;
@@ -22,6 +24,7 @@ class SFX2_DLLPUBLIC SfxNotebookBar
{
public:
static void CloseMethod(SfxBindings& rBindings);
+ static void CloseMethod(SystemWindow* pSysWindow);
/// Function to be called from the sdi's ExecMethod.
static void ExecMethod(SfxBindings& rBindings);
@@ -33,6 +36,15 @@ public:
const OUString& rUIFile);
static void RemoveListeners(SystemWindow* pSysWindow);
+
+ static void ShowMenubar(bool bShow);
+
+private:
+ static bool m_bLock;
+ static css::uno::Reference<css::frame::XLayoutManager> m_xLayoutManager;
+ static css::uno::Reference<css::frame::XFrame> m_xFrame;
+
+ DECL_STATIC_LINK_TYPED(SfxNotebookBar, ToggleMenubar, NotebookBar*, void);
};
} // namespace sfx2