2000-07-24 13:53:19 +00:00
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 1995 Matthias Ettrich
|
|
|
|
* Copyright 1995-2000 The LyX Team.
|
|
|
|
*
|
|
|
|
* This file is Copyright 2000 Jean-Marc Lasgouttes
|
|
|
|
*
|
|
|
|
* ====================================================== */
|
|
|
|
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "Menubar.h"
|
|
|
|
#include "Menubar_pimpl.h"
|
|
|
|
|
2000-08-24 23:10:28 +00:00
|
|
|
Menubar::Menubar(LyXView * o, MenuBackend const & md)
|
2000-07-24 13:53:19 +00:00
|
|
|
{
|
|
|
|
pimpl_ = new Pimpl(o, md);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Menubar::~Menubar()
|
|
|
|
{
|
|
|
|
delete pimpl_;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Menubar::set(string const & name)
|
|
|
|
{
|
|
|
|
pimpl_->set(name);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Menubar::openByName(string const & name)
|
|
|
|
{
|
|
|
|
pimpl_->openByName(name);
|
|
|
|
}
|
2000-08-09 13:51:59 +00:00
|
|
|
|
2000-08-24 23:10:28 +00:00
|
|
|
|
2000-08-09 13:51:59 +00:00
|
|
|
void Menubar::update()
|
|
|
|
{
|
|
|
|
pimpl_->update();
|
|
|
|
}
|