4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
10 * Full author contact details are available in file CREDITS.
16 #include "support/strfwd.h"
20 namespace support { class FileName; }
33 * LyXView - main LyX window
35 * This class represents the main LyX window and provides
36 * accessor functions to its content.
38 * The eventual intention is that LyX will support a number
39 * of containing LyXViews. Currently a lot of code still
40 * relies on there being a single top-level view.
42 * Additionally we would like to support multiple views
43 * in a single LyXView.
51 /// \name Generic accessor functions
53 /// \return the currently selected buffer view.
54 virtual BufferView * currentBufferView() = 0;
55 virtual BufferView const * currentBufferView() const = 0;
56 /// \return the current document buffer view.
57 virtual BufferView * documentBufferView() = 0;
58 virtual BufferView const * documentBufferView() const = 0;
61 /// display a message in the view
62 virtual void message(docstring const &) = 0;
65 virtual bool getStatus(FuncRequest const & cmd, FuncStatus & flag) = 0;
67 /// \return true if the \c FuncRequest has been dispatched.
68 virtual void dispatch(FuncRequest const & cmd, DispatchResult & dr) = 0;
71 virtual void restartCursor() = 0;
73 /// Update the completion popup and the inline completion state.
74 /// If \c start is true, then a new completion might be started.
75 /// If \c keep is true, an active completion will be kept active
76 /// even though the cursor moved. The update flags of \c cur might
78 virtual void updateCompletion(Cursor & cur, bool start, bool keep) = 0;
81 } // namespace frontend