]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Application.C
hopefully fix tex2lyx linking.
[lyx.git] / src / frontends / Application.C
index 1993b45b5d0814f17cc9067e8439a7d1e815af89..a4902161f27a7356fc0e241cff924cb70d61c7b6 100644 (file)
@@ -48,12 +48,6 @@ Application::Application(int &, char **)
 }
 
 
-void Application::setBufferView(BufferView * buffer_view)
-{
-       buffer_view_ = buffer_view;
-}
-
-
 LyXView & Application::createView(unsigned int width,
                                                                  unsigned int height,
                                                                  int posx, int posy,
@@ -69,10 +63,30 @@ LyXView & Application::createView(unsigned int width,
        view.init();
        view.setGeometry(width, height, posx, posy, maximize);
 
+       setCurrentView(view);
+
        return view;
 }
 
 
+LyXView const & Application::currentView() const
+{
+       return *current_view_;
+}
+
+
+LyXView & Application::currentView()
+{
+       return *current_view_;
+}
+
+
+void Application::setCurrentView(LyXView & current_view)
+{
+       current_view_ = &current_view;
+}
+
+
 int Application::start(std::string const & /*batch*/)
 {
        return exec();