2000-07-24 13:53:19 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
/* This file is part of
|
|
|
|
|
* ======================================================
|
2002-03-21 21:21:28 +00:00
|
|
|
|
*
|
2000-07-24 13:53:19 +00:00
|
|
|
|
* LyX, The Document Processor
|
|
|
|
|
* Copyright 1995 Matthias Ettrich
|
2001-05-30 13:53:44 +00:00
|
|
|
|
* Copyright 1995-2001 The LyX Team.
|
2000-07-24 13:53:19 +00:00
|
|
|
|
*
|
2001-05-30 13:53:44 +00:00
|
|
|
|
* This file is Copyright 1996-2001
|
2000-07-24 13:53:19 +00:00
|
|
|
|
* Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
*
|
|
|
|
|
* ====================================================== */
|
|
|
|
|
|
|
|
|
|
#ifndef MENUBAR_H
|
|
|
|
|
#define MENUBAR_H
|
|
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
|
#pragma interface
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include "LString.h"
|
|
|
|
|
|
|
|
|
|
class LyXView;
|
|
|
|
|
class MenuBackend;
|
|
|
|
|
|
|
|
|
|
/** The LyX GUI independent menubar class
|
2002-03-21 21:21:28 +00:00
|
|
|
|
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();
|
|
|
|
|
///
|
|
|
|
|
void set(string const &);
|
|
|
|
|
/// 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_;
|
|
|
|
|
};
|
|
|
|
|
#endif
|