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
|
2003-07-25 21:34:45 +00:00
|
|
|
|
* \author Jean-Marc Lasgouttes
|
2002-09-05 14:10:50 +00:00
|
|
|
|
*
|
2003-08-23 00:17:00 +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
|
|
|
|
|
|
2006-09-09 22:27:22 +00:00
|
|
|
|
#include "support/docstring.h"
|
2003-10-07 08:16:04 +00:00
|
|
|
|
|
2002-06-12 02:54:19 +00:00
|
|
|
|
/**
|
|
|
|
|
* The LyX GUI independent menubar class
|
2003-07-25 21:34:45 +00:00
|
|
|
|
* The GUI interface is implemented in the frontends
|
2002-06-12 02:54:19 +00:00
|
|
|
|
*/
|
2000-07-24 13:53:19 +00:00
|
|
|
|
class Menubar {
|
|
|
|
|
public:
|
|
|
|
|
///
|
2003-07-25 21:34:45 +00:00
|
|
|
|
virtual ~Menubar() {}
|
2000-07-24 13:53:19 +00:00
|
|
|
|
/// Opens a top-level submenu given its name
|
2006-09-09 22:27:22 +00:00
|
|
|
|
virtual void openByName(lyx::docstring const &) = 0;
|
2000-08-09 13:51:59 +00:00
|
|
|
|
/// update the state of the menuitems
|
2003-07-25 21:34:45 +00:00
|
|
|
|
virtual void update() = 0;
|
2000-07-24 13:53:19 +00:00
|
|
|
|
};
|
2002-06-12 02:54:19 +00:00
|
|
|
|
#endif // MENUBAR_H
|