mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-22 16:04:07 +00:00
91d370433f
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5101 a592a061-630c-0410-9148-cb99ea01b6c8
55 lines
966 B
C++
55 lines
966 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file Menubar_pimpl.h
|
|
* Copyright 2002 the LyX Team
|
|
* Read the file COPYING
|
|
*
|
|
* \author Lars Gullik Bjø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 &);
|
|
|
|
/// opens a top-level submenu given its name
|
|
void openByName(string const &);
|
|
|
|
/// update the state of the menuitems - not needed
|
|
void update() {};
|
|
|
|
/// return the owning view
|
|
QtView * view() { return owner_; }
|
|
|
|
/// return the menu controller
|
|
MenuBackend const & backend() { return menubackend_; }
|
|
private:
|
|
/// owning view
|
|
QtView * owner_;
|
|
|
|
/// menu controller
|
|
MenuBackend const & menubackend_;
|
|
};
|
|
|
|
#endif // MENUBAR_PIMPL_H
|