]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Menubar.h
Handle Qt-style file filters like
[lyx.git] / src / frontends / Menubar.h
index 0114bae456d030c3d96f9ddba7226d677f4433be..2056651a91c70789fb771bb8b1a27c14651dbd43 100644 (file)
@@ -1,47 +1,31 @@
 // -*- C++ -*-
 /**
  * \file Menubar.h
- * Copyright 1995-2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * 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.
  */
 
 #ifndef MENUBAR_H
 #define MENUBAR_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include "LString.h"
-
-class LyXView;
-class MenuBackend;
+#include <string>
 
 /**
  * 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(std::string const &) = 0;
        /// update the state of the menuitems
-       void update();
-
-
-       //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_;
+       virtual void update() = 0;
 };
 #endif // MENUBAR_H