]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Menubar.h
Fix bug 1749. CAUTION: lyx2lyx not fully working yet (see FIXMEs).
[lyx.git] / src / frontends / Menubar.h
index 0b4f2058fae63b91d44ca3482ab2dfbf3737e88f..74e8c59ac564f6af33b054783a94079525909ffb 100644 (file)
@@ -5,45 +5,33 @@
  * Licence details can be found in the file COPYING.
  *
  * \author Lars Gullik Bjønnes
+ * \author Jean-Marc Lasgouttes
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef MENUBAR_H
 #define MENUBAR_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
+#include "support/docstring.h"
 
-#include "LString.h"
 
-class LyXView;
-class MenuBackend;
+namespace lyx {
 
 /**
  * The LyX GUI independent menubar class
- * The GUI interface is implemented in the corresponding Menubar_pimpl class.
+ * The GUI interface is implemented in the frontends
  */
 class Menubar {
 public:
        ///
-       Menubar(LyXView * o, MenuBackend const &);
-       ///
-       ~Menubar();
+       virtual ~Menubar() {}
        /// Opens a top-level submenu given its name
-       void openByName(string const &);
+       virtual void openByName(docstring const &) = 0;
        /// update the state of the menuitems
-       void update();
+       virtual void update() = 0;
+};
 
+} // namespace lyx
 
-       //I disable this temporarily until I find a nice way to make it work
-       //with compaq cxx. (Jean-Marc)
-       // Is this a new comment? (Lgb)
-       struct Pimpl;
-       friend struct Pimpl;
-private:
-       ///
-       Pimpl * pimpl_;
-};
 #endif // MENUBAR_H