mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
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:
parent
6abd0d0edf
commit
ea0cac6e7b
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user