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 "frontends/Delegates.h"
17 #include "support/strfwd.h"
21 namespace support { class FileName; }
32 * LyXView - main LyX window
34 * This class represents the main LyX window and provides
35 * accessor functions to its content.
37 * The eventual intention is that LyX will support a number
38 * of containing LyXViews. Currently a lot of code still
39 * relies on there being a single top-level view.
41 * Additionally we would like to support multiple views
42 * in a single LyXView.
52 virtual int id() const = 0;
54 virtual void close() = 0;
57 virtual void setBusy(bool) = 0;
59 //@{ generic accessor functions
61 /// \return the current buffer view.
62 virtual BufferView * view() = 0;
64 /// \return the buffer currently shown in this window
65 virtual Buffer * buffer() = 0;
66 virtual Buffer const * buffer() const = 0;
67 /// set a buffer to the current workarea.
68 virtual void setBuffer(Buffer * b) = 0; ///< \c Buffer to set.
72 /// display a message in the view
73 virtual void message(docstring const &) = 0;
76 virtual FuncStatus getStatus(FuncRequest const & cmd) = 0;
77 /// dispatch to current BufferView
78 virtual void dispatch(FuncRequest const & cmd) = 0;
81 virtual void restartCursor() = 0;
86 virtual void errors(std::string const &) = 0;
89 // This View's Dialogs
93 virtual void disconnectDialog(std::string const & name) = 0;
95 virtual Inset * getOpenInset(std::string const & name) const = 0;
99 LyXView(LyXView const &);
100 void operator=(LyXView const &);
103 } // namespace frontend