From ea0cac6e7b62e05c956e904f3b0bb937d8e4b573 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 5 Oct 2009 21:32:20 +0000 Subject: [PATCH] Cleanup virtual interfaces. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31533 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/LyXView.h | 9 --------- src/frontends/WorkArea.h | 8 -------- src/frontends/qt4/GuiView.h | 12 +++++++++--- 3 files changed, 9 insertions(+), 20 deletions(-) diff --git a/src/frontends/LyXView.h b/src/frontends/LyXView.h index 8793c78eb7..6813d759bd 100644 --- a/src/frontends/LyXView.h +++ b/src/frontends/LyXView.h @@ -57,15 +57,6 @@ public: virtual BufferView const * documentBufferView() const = 0; //@} - /// set a buffer to the current workarea. - virtual void setBuffer(Buffer * b) = 0; ///< \c Buffer to set. - - /// load a document into the current workarea. - virtual Buffer * loadDocument( - support::FileName const & name, ///< File to load. - bool tolastfiles = true ///< append to the "Open recent" menu? - ) = 0; - /// display a message in the view virtual void message(docstring const &) = 0; diff --git a/src/frontends/WorkArea.h b/src/frontends/WorkArea.h index dcf5fc40ba..4d9ec2fca4 100644 --- a/src/frontends/WorkArea.h +++ b/src/frontends/WorkArea.h @@ -42,14 +42,6 @@ public: /// redraw the screen, without using existing pixmap virtual void redraw() = 0; - /// Process Key pressed event. - /// This needs to be public because it is accessed externally by GuiView. - virtual void processKeySym(KeySymbol const & key, KeyModifier mod) = 0; - - /// Return the LyXView this workArea belongs to - LyXView const & view() const { return *lyx_view_; } - LyXView & view() { return *lyx_view_; } - /// close this work area. /// Slot for Buffer::closing signal. virtual void close() = 0; diff --git a/src/frontends/qt4/GuiView.h b/src/frontends/qt4/GuiView.h index c3e6dd039d..ae85894e5f 100644 --- a/src/frontends/qt4/GuiView.h +++ b/src/frontends/qt4/GuiView.h @@ -70,9 +70,6 @@ public: BufferView const * currentBufferView() const; BufferView * documentBufferView(); BufferView const * documentBufferView() const; - void setBuffer(Buffer * b); - Buffer * loadDocument(support::FileName const & name, - bool tolastfiles = true); void newDocument(std::string const & filename, bool fromTemplate); void message(docstring const &); @@ -83,6 +80,15 @@ public: void setFocus(); ///@} + /// set a buffer to the current workarea. + void setBuffer(Buffer * b); ///< \c Buffer to set. + + /// load a document into the current workarea. + Buffer * loadDocument( + support::FileName const & name, ///< File to load. + bool tolastfiles = true ///< append to the "Open recent" menu? + ); + /// add toolbar, if newline==true, add a toolbar break before the toolbar GuiToolbar * makeToolbar(ToolbarInfo const & tbinfo, bool newline); void updateStatusBar(); -- 2.39.5