mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 14:32:04 +00:00
6c300f72a2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15422 a592a061-630c-0410-9148-cb99ea01b6c8
62 lines
1.0 KiB
C++
62 lines
1.0 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file Gui.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author unknown
|
|
* \author John Levon
|
|
* \author Abdelrazak Younes
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef BASE_GUI_H
|
|
#define BASE_GUI_H
|
|
|
|
#include <boost/shared_ptr.hpp>
|
|
|
|
#include <map>
|
|
|
|
namespace lyx {
|
|
|
|
class LyXView;
|
|
class BufferView;
|
|
|
|
namespace frontend {
|
|
|
|
class WorkArea;
|
|
|
|
|
|
/**
|
|
* A Gui class manages the different frontend elements.
|
|
*/
|
|
class Gui
|
|
{
|
|
public:
|
|
virtual ~Gui() {}
|
|
|
|
///
|
|
virtual int newView() = 0;
|
|
///
|
|
virtual LyXView & view(int id) = 0;
|
|
///
|
|
virtual void destroyView(int id) = 0;
|
|
|
|
///
|
|
virtual int newWorkArea(unsigned int width, unsigned int height, int view_id) = 0;
|
|
///
|
|
virtual WorkArea & workArea(int id) = 0;
|
|
///
|
|
virtual void destroyWorkArea(int id) = 0;
|
|
|
|
protected:
|
|
/// view of a buffer. Eventually there will be several.
|
|
std::map<int, boost::shared_ptr<BufferView> > buffer_views_;
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // BASE_GUI_H
|