2000-07-24 13:53:19 +00:00
|
|
|
|
// -*- C++ -*-
|
2002-06-12 02:54:19 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file Menubar.h
|
2002-09-05 15:14:23 +00:00
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-03-21 21:21:28 +00:00
|
|
|
|
*
|
2002-06-12 02:54:19 +00:00
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
2002-09-05 14:10:50 +00:00
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS
|
2002-06-12 02:54:19 +00:00
|
|
|
|
*/
|
2000-07-24 13:53:19 +00:00
|
|
|
|
|
|
|
|
|
#ifndef MENUBAR_H
|
|
|
|
|
#define MENUBAR_H
|
|
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
|
#pragma interface
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include "LString.h"
|
|
|
|
|
|
|
|
|
|
class LyXView;
|
|
|
|
|
class MenuBackend;
|
|
|
|
|
|
2002-06-12 02:54:19 +00:00
|
|
|
|
/**
|
|
|
|
|
* The LyX GUI independent menubar class
|
|
|
|
|
* The GUI interface is implemented in the corresponding Menubar_pimpl class.
|
|
|
|
|
*/
|
2000-07-24 13:53:19 +00:00
|
|
|
|
class Menubar {
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
Menubar(LyXView * o, MenuBackend const &);
|
|
|
|
|
///
|
|
|
|
|
~Menubar();
|
|
|
|
|
/// Opens a top-level submenu given its name
|
|
|
|
|
void openByName(string const &);
|
2000-08-09 13:51:59 +00:00
|
|
|
|
/// update the state of the menuitems
|
|
|
|
|
void update();
|
2000-07-24 13:53:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//I disable this temporarily until I find a nice way to make it work
|
2000-07-26 07:09:53 +00:00
|
|
|
|
//with compaq cxx. (Jean-Marc)
|
|
|
|
|
// Is this a new comment? (Lgb)
|
2000-07-24 13:53:19 +00:00
|
|
|
|
struct Pimpl;
|
|
|
|
|
friend struct Pimpl;
|
2000-07-26 12:38:16 +00:00
|
|
|
|
private:
|
2000-08-24 23:10:28 +00:00
|
|
|
|
///
|
2000-07-24 13:53:19 +00:00
|
|
|
|
Pimpl * pimpl_;
|
|
|
|
|
};
|
2002-06-12 02:54:19 +00:00
|
|
|
|
#endif // MENUBAR_H
|