]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/XFormsMenubar.h
Tiny clean-ups.
[lyx.git] / src / frontends / xforms / XFormsMenubar.h
index 8d01d077ca994ff3f11ba39e3264522011ca12c9..d43061d71bfced7b0b686b9d5c051cf0773b043c 100644 (file)
@@ -12,6 +12,7 @@
 #ifndef XFORMSMENUBAR_H
 #define XFORMSMENUBAR_H
 
+#include "funcrequest.h"
 #include "frontends/Menubar.h"
 
 #include <boost/shared_ptr.hpp>
@@ -19,9 +20,9 @@
 #include "forms_fwd.h"
 #include <X11/X.h> // Window
 
-#include "support/std_string.h"
 #include <vector>
 
+
 class LyXView;
 class XFormsView;
 class Menu;
@@ -30,6 +31,8 @@ class MenuBackend;
 
 class XFormsMenubar : public Menubar {
 public:
+       ///
+       typedef std::vector<FuncRequest> Funcs;
        ///
        XFormsMenubar(LyXView *, MenuBackend const &);
        ///
@@ -39,21 +42,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<int> & smn, Window win);
        ///
-       void add_references(int menu, string const & extra_label,
+       void add_references(int menu, std::string const & extra_label,
                            std::vector<int> & smn, Window win);
        ///
        int create_submenu(Window win, XFormsView * view,
-                          Menu const & menu, std::vector<int> & smn);
+                          Menu const & menu,
+                          std::vector<int> & smn, Funcs & funcs);
 
        //
        void makeMenubar(Menu const & menu);