X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FXFormsMenubar.h;h=07c945ef16481166d7e638d3d8c85aed9600985e;hb=37e82a546392d43f787826b85481a11f2a27af15;hp=8d01d077ca994ff3f11ba39e3264522011ca12c9;hpb=0705dae8a3a2bcdd6be55eb468547c1389e84d2c;p=lyx.git diff --git a/src/frontends/xforms/XFormsMenubar.h b/src/frontends/xforms/XFormsMenubar.h index 8d01d077ca..07c945ef16 100644 --- a/src/frontends/xforms/XFormsMenubar.h +++ b/src/frontends/xforms/XFormsMenubar.h @@ -12,24 +12,32 @@ #ifndef XFORMSMENUBAR_H #define XFORMSMENUBAR_H +#include "funcrequest.h" #include "frontends/Menubar.h" +#include "LayoutEngine.h" + #include #include "forms_fwd.h" #include // Window -#include "support/std_string.h" #include class LyXView; -class XFormsView; class Menu; class MenuItem; class MenuBackend; +namespace lyx { +namespace frontend { + +class XFormsView; + class XFormsMenubar : public Menubar { public: + /// + typedef std::vector Funcs; /// XFormsMenubar(LyXView *, MenuBackend const &); /// @@ -39,21 +47,22 @@ public: void update(); /// Opens a top-level submenu given its name - void openByName(string const &); + void openByName(std::string const &); /// static void MenuCallback(FL_OBJECT *, long); private: /// - void add_toc(int menu, string const & extra_label, + void add_toc(int menu, std::string const & extra_label, std::vector & smn, Window win); /// - void add_references(int menu, string const & extra_label, + void add_references(int menu, std::string const & extra_label, std::vector & smn, Window win); /// int create_submenu(Window win, XFormsView * view, - Menu const & menu, std::vector & smn); + Menu const & menu, + std::vector & smn, Funcs & funcs); // void makeMenubar(Menu const & menu); @@ -63,6 +72,10 @@ private: /// MenuBackend const * menubackend_; /// + boost::shared_ptr menubar_; + /// + WidgetMap widgets_; + /// struct ItemInfo { /// ItemInfo(XFormsMenubar * p, MenuItem const * i, @@ -81,4 +94,8 @@ private: /// ButtonList buttonlist_; }; + +} // namespace frontend +} // namespace lyx + #endif