Cleanup virtual interfaces.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31533 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2009-10-05 21:32:20 +00:00
parent 6abd0d0edf
commit ea0cac6e7b
3 changed files with 9 additions and 20 deletions

View File

@ -57,15 +57,6 @@ public:
virtual BufferView const * documentBufferView() const = 0; 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 /// display a message in the view
virtual void message(docstring const &) = 0; virtual void message(docstring const &) = 0;

View File

@ -42,14 +42,6 @@ public:
/// redraw the screen, without using existing pixmap /// redraw the screen, without using existing pixmap
virtual void redraw() = 0; 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. /// close this work area.
/// Slot for Buffer::closing signal. /// Slot for Buffer::closing signal.
virtual void close() = 0; virtual void close() = 0;

View File

@ -70,9 +70,6 @@ public:
BufferView const * currentBufferView() const; BufferView const * currentBufferView() const;
BufferView * documentBufferView(); BufferView * documentBufferView();
BufferView const * documentBufferView() const; BufferView const * documentBufferView() const;
void setBuffer(Buffer * b);
Buffer * loadDocument(support::FileName const & name,
bool tolastfiles = true);
void newDocument(std::string const & filename, void newDocument(std::string const & filename,
bool fromTemplate); bool fromTemplate);
void message(docstring const &); void message(docstring const &);
@ -83,6 +80,15 @@ public:
void setFocus(); 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 /// add toolbar, if newline==true, add a toolbar break before the toolbar
GuiToolbar * makeToolbar(ToolbarInfo const & tbinfo, bool newline); GuiToolbar * makeToolbar(ToolbarInfo const & tbinfo, bool newline);
void updateStatusBar(); void updateStatusBar();