X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2FMenubar.h;h=2056651a91c70789fb771bb8b1a27c14651dbd43;hb=2f1d525ee1d41bc20adbfe766a9c5d90469aa4b2;hp=5bef504b2dc97de2ed7337d2ffe06c1ce1265590;hpb=99d1627a471b92f403598d03dfc861ddc3c11be0;p=lyx.git diff --git a/src/frontends/Menubar.h b/src/frontends/Menubar.h index 5bef504b2d..2056651a91 100644 --- a/src/frontends/Menubar.h +++ b/src/frontends/Menubar.h @@ -5,42 +5,27 @@ * 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 - -#include "LString.h" - -class LyXView; -class MenuBackend; +#include /** * 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