diff options
author | Antonio Fernandez <antonio.fernandez@aentos.es> | 2012-08-01 16:52:50 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2012-11-14 13:52:39 +0100 |
commit | ba8ab7935c9d12b3f5ce1df64fafc2e4f68c4510 (patch) | |
tree | 1d898f1cb448667985fd73bed856764b3e6dc7f5 /vcl/inc/unx/gtk/gtksalmenu.hxx | |
parent | c8635ff858e85031780c36258321bf7c51d4c2ff (diff) |
Internal native menu is created in steps, but is incomplete at the moment.
Change-Id: I323b80b74218be853fe2893b3f328ff3ef74d4cb
Diffstat (limited to 'vcl/inc/unx/gtk/gtksalmenu.hxx')
-rw-r--r-- | vcl/inc/unx/gtk/gtksalmenu.hxx | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/vcl/inc/unx/gtk/gtksalmenu.hxx b/vcl/inc/unx/gtk/gtksalmenu.hxx index 69fcec834cb9..65c2bc8051e8 100644 --- a/vcl/inc/unx/gtk/gtksalmenu.hxx +++ b/vcl/inc/unx/gtk/gtksalmenu.hxx @@ -35,22 +35,29 @@ #include <unx/salmenu.h> #include <gio/gio.h> +#include <vector> + +class GtkSalMenuItem; +class GtkSalMenuSection; class GtkSalMenu : public SalMenu { private: + sal_Bool mbMenuBar; - virtual void publishMenu(); + virtual void publishMenu( GMenuModel* ); public: + std::vector< GtkSalMenuSection* > maSections; + std::vector< GtkSalMenuItem* > maItems; + GtkSalMenuSection* mpCurrentSection; + Menu* mpVCLMenu; const GtkSalFrame* mpFrame; - GMenuModel* mpParentMenuModel; - GMenuModel* mpMenuModel; - GMenuModel* mpSectionMenuModel; gchar* aDBusMenubarPath; GDBusConnection* pSessionBus; + sal_Int32 mBusId; sal_Int32 mMenubarId; GtkSalMenu( sal_Bool bMenuBar ); @@ -72,6 +79,16 @@ public: virtual void Freeze(); }; +class GtkSalMenuItem; + +class GtkSalMenuSection +{ +public: + std::vector< GtkSalMenuItem* > maItems; + + virtual ~GtkSalMenuSection(); +}; + class GtkSalMenuItem : public SalMenuItem { public: |