X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FXFormsMenubar.h;h=07c945ef16481166d7e638d3d8c85aed9600985e;hb=37e82a546392d43f787826b85481a11f2a27af15;hp=552738b0409a6d07f040d54bee1b2454ecb60f3b;hpb=c7f1fcdc65d5d2873ff0446cb658ac1340fc1b82;p=lyx.git diff --git a/src/frontends/xforms/XFormsMenubar.h b/src/frontends/xforms/XFormsMenubar.h index 552738b040..07c945ef16 100644 --- a/src/frontends/xforms/XFormsMenubar.h +++ b/src/frontends/xforms/XFormsMenubar.h @@ -6,31 +6,38 @@ * * \author Lars Gullik Bjønnes * - * Full author contact details are available in file CREDITS + * Full author contact details are available in file CREDITS. */ #ifndef XFORMSMENUBAR_H #define XFORMSMENUBAR_H -#include "LString.h" +#include "funcrequest.h" #include "frontends/Menubar.h" +#include "LayoutEngine.h" + #include #include "forms_fwd.h" #include // Window #include -#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 &); /// @@ -40,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); @@ -64,6 +72,10 @@ private: /// MenuBackend const * menubackend_; /// + boost::shared_ptr menubar_; + /// + WidgetMap widgets_; + /// struct ItemInfo { /// ItemInfo(XFormsMenubar * p, MenuItem const * i, @@ -82,4 +94,8 @@ private: /// ButtonList buttonlist_; }; + +} // namespace frontend +} // namespace lyx + #endif