]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Gui.h
cosmetics (whitespace and no-op functions)
[lyx.git] / src / frontends / Gui.h
index c79e5f54abb21a836eb24292fd8ca65e7fbc65e2..5b84e39297e615affb70da1e5f4bc2f90169e1a3 100644 (file)
@@ -38,21 +38,26 @@ public:
        virtual ~Gui() {}
 
        ///
-       virtual int newView() = 0;
+       virtual LyXView& createRegisteredView() = 0;
        ///
-       virtual LyXView & view(int id) = 0;
+       virtual bool unregisterView(int id) = 0;
+       ///
+       virtual bool closeAllViews()= 0;
 
        ///
-       virtual int newWorkArea(unsigned int width, unsigned int height, int view_id) = 0;
+       virtual LyXView& view(int id) const = 0;
        ///
-       virtual WorkArea & workArea(int id) = 0;
+       std::vector<int> const & viewIds()
+       {
+               return view_ids_;
+       }
 
+
+       virtual int newWorkArea(unsigned int width, unsigned int height, int view_id) = 0;
        ///
-       std::vector<int> const & viewIds() { return view_ids_; };
+       virtual WorkArea & workArea(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_;
 };