]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Gui.h
Fixed some lines that were too long. It compiled afterwards.
[lyx.git] / src / frontends / Gui.h
index 76321770486a02d07eeb850e57d79832ffc60d09..5b84e39297e615affb70da1e5f4bc2f90169e1a3 100644 (file)
 #include <boost/shared_ptr.hpp>
 
 #include <map>
+#include <vector>
+
+namespace lyx {
 
 class LyXView;
 class BufferView;
 
-namespace lyx {
 namespace frontend {
 
-class Clipboard;
 class WorkArea;
 
 
@@ -37,25 +38,28 @@ public:
        virtual ~Gui() {}
 
        ///
-       virtual Clipboard & clipboard() = 0;
-
-       ///
-       virtual int newView(unsigned int width, unsigned int height) = 0;
+       virtual LyXView& createRegisteredView() = 0;
        ///
-       virtual LyXView & view(int id) = 0;
+       virtual bool unregisterView(int id) = 0;
        ///
-       virtual void destroyView(int id) = 0;
+       virtual bool closeAllViews()= 0;
 
        ///
+       virtual LyXView& view(int id) const = 0;
+       ///
+       std::vector<int> const & viewIds()
+       {
+               return view_ids_;
+       }
+
+
        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_;
+
+       std::vector<int> view_ids_;
 };
 
 } // namespace frontend