#include <boost/shared_ptr.hpp>
#include <map>
+#include <vector>
+
+namespace lyx {
class LyXView;
class BufferView;
-namespace lyx {
namespace frontend {
-class Clipboard;
-class Selection;
class WorkArea;
virtual ~Gui() {}
///
- virtual Clipboard & clipboard() = 0;
- ///
- virtual Selection & selection() = 0;
-
- ///
- virtual int newView(unsigned int width, unsigned int height) = 0;
+ 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;
+ virtual bool closeAll() = 0;
+
+ ///
+ std::vector<int> const & viewIds() { return view_ids_; };
protected:
/// view of a buffer. Eventually there will be several.
std::map<int, boost::shared_ptr<BufferView> > buffer_views_;
+
+ std::vector<int> view_ids_;
};
} // namespace frontend