]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/LyXView.h
remove unused stuff
[lyx.git] / src / frontends / LyXView.h
index 13776f252978dd2def4d0ecbebb9a4f799be995d..0d95729f45bb843a131d62ab557ee4c46f1e77c6 100644 (file)
@@ -13,6 +13,7 @@
 #ifndef LYXVIEW_H
 #define LYXVIEW_H
 
+#include "frontends/Application.h"
 #include "frontends/Toolbars.h"
 
 #include <boost/scoped_ptr.hpp>
@@ -34,7 +35,6 @@ class FuncRequest;
 
 namespace lyx {
 namespace frontend {
-class Gui;
 class WorkArea;
 class ControlCommandBuffer;
 } // namespace frontend
@@ -57,7 +57,7 @@ class ControlCommandBuffer;
 class LyXView : public boost::signals::trackable, boost::noncopyable {
 public:
 
-       LyXView(lyx::frontend::Gui & owner);
+       LyXView();
 
        virtual ~LyXView();
 
@@ -86,10 +86,19 @@ public:
        /// return the buffer currently shown in this window
        Buffer * buffer() const;
 
+       /* FIXME: Abdel 22/09/71
+       there is only one lyxFunc() for now but there is maybe a need
+       for more in the feature. Something like that:
+       
+               LyXFunc & getLyXFunc() { return theApp->lyxFunc(id_); }
+
+       where id_ would be the this LyXView ID.
+       That's the reason why I didn't remove these methods for now.
+       */
        /// return the LyX function handler for this view
-       LyXFunc & getLyXFunc() { return *lyxfunc_.get(); }
+       LyXFunc & getLyXFunc() { return theApp->lyxFunc(); }
        ///
-       LyXFunc const & getLyXFunc() const { return *lyxfunc_.get(); }
+       LyXFunc const & getLyXFunc() const { return theApp->lyxFunc(); }
 
        /// return the toolbar for this view
        Toolbars & getToolbars() { return *toolbars_.get(); }
@@ -152,9 +161,6 @@ public:
        /// returns true if this view has the focus.
        virtual bool hasFocus() const = 0;
 
-       ///
-       virtual lyx::frontend::Gui & gui();
-
        /// Temporary method used by the kernel to redraw the work area.
        virtual void redrawWorkArea();
 
@@ -181,7 +187,6 @@ protected:
        boost::scoped_ptr<Menubar> menubar_;
 
 private:
-       lyx::frontend::Gui & owner_;
        /**
         * setWindowTitle - set title of window
         * @param t main window title