4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
15 #include "support/docstring.h"
24 class GuiBufferViewDelegate
27 virtual ~GuiBufferViewDelegate() {}
29 /// This function is called when some message shows up.
30 virtual void message(docstring const & msg) = 0;
32 /// This function is called when some dialog needs to be shown.
33 virtual void showDialog(std::string const & name) = 0;
35 /// This function is called when some dialog needs to be shown with
37 virtual void showDialogWithData(std::string const & name,
38 std::string const & data) = 0;
40 /// This function is called when some inset dialogs needs to be shown.
41 virtual void showInsetDialog(std::string const & name,
42 std::string const & data, Inset * inset) = 0;
44 /// This function is called when some dialogs needs to be updated.
45 virtual void updateDialog(std::string const & name,
46 std::string const & data) = 0;
50 class GuiBufferDelegate
53 virtual ~GuiBufferDelegate() {}
54 /// This function is called when the buffer structure is changed.
55 virtual void structureChanged() = 0;
56 /// This function is called when an embedded file is changed
57 virtual void embeddingChanged() = 0;
58 /// This function is called when some parsing error shows up.
59 virtual void errors(std::string const &) = 0;
60 /// This function is called when some message shows up.
61 virtual void message(docstring const &) = 0;
62 /// This function is called when the buffer busy status change.
63 virtual void busy(bool) = 0;
64 /// This function is called when the buffer readonly status change.
65 virtual void readonly(bool) = 0;
66 /// Update window titles of all users.
67 virtual void updateTitles() = 0;
68 /// Reset autosave timers for all users.
69 virtual void resetAutosaveTimers() = 0;
72 } // namespace frontend