lyx_mirror/src/frontends/Menubar.h

49 lines
883 B
C
Raw Normal View History

// -*- C++ -*-
/**
* \file Menubar.h
* Read the file COPYING
*
* \author Lars Gullik Bj<EFBFBD>nnes
*
* 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;
/**
* The LyX GUI independent menubar class
* The GUI interface is implemented in the corresponding Menubar_pimpl class.
*/
class Menubar {
public:
///
Menubar(LyXView * o, MenuBackend const &);
///
~Menubar();
/// Opens a top-level submenu given its name
void openByName(string const &);
/// 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_;
};
#endif // MENUBAR_H