2002-06-19 05:20:29 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
/**
|
|
|
|
|
* \file Menubar_pimpl.h
|
|
|
|
|
* Copyright 2002 the LyX Team
|
|
|
|
|
* Read the file COPYING
|
|
|
|
|
*
|
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes <larsbj@lyx.org>
|
|
|
|
|
* \author John Levon <moz@compsoc.man.ac.uk>
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef MENUBAR_PIMPL_H
|
|
|
|
|
#define MENUBAR_PIMPL_H
|
|
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
|
#pragma interface
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include "LString.h"
|
|
|
|
|
#include "frontends/Menubar.h"
|
|
|
|
|
|
|
|
|
|
class LyXView;
|
|
|
|
|
class QtView;
|
|
|
|
|
class MenuBackend;
|
|
|
|
|
|
|
|
|
|
struct Menubar::Pimpl {
|
|
|
|
|
public:
|
|
|
|
|
Pimpl(LyXView *, MenuBackend const &);
|
2002-07-22 01:53:26 +00:00
|
|
|
|
|
|
|
|
|
/// opens a top-level submenu given its name
|
2002-06-19 05:20:29 +00:00
|
|
|
|
void openByName(string const &);
|
|
|
|
|
|
2002-08-25 18:26:45 +00:00
|
|
|
|
/// update the state of the menuitems - not needed
|
|
|
|
|
void update() {};
|
2002-06-19 05:20:29 +00:00
|
|
|
|
|
2002-08-25 18:26:45 +00:00
|
|
|
|
/// return the owning view
|
|
|
|
|
QtView * view() { return owner_; }
|
2002-07-22 01:53:26 +00:00
|
|
|
|
|
2002-08-25 18:26:45 +00:00
|
|
|
|
/// return the menu controller
|
|
|
|
|
MenuBackend const & backend() { return menubackend_; }
|
|
|
|
|
private:
|
2002-07-22 01:53:26 +00:00
|
|
|
|
/// owning view
|
2002-06-19 05:20:29 +00:00
|
|
|
|
QtView * owner_;
|
|
|
|
|
|
2002-07-22 01:53:26 +00:00
|
|
|
|
/// menu controller
|
2002-06-19 05:20:29 +00:00
|
|
|
|
MenuBackend const & menubackend_;
|
|
|
|
|
};
|
|
|
|
|
|
2002-07-22 01:53:26 +00:00
|
|
|
|
#endif // MENUBAR_PIMPL_H
|