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/strfwd.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 inset dialogs needs to be shown.
33 virtual void showDialog(std::string const & name,
34 std::string const & data, Inset * inset = 0) = 0;
36 /// This function is called when some dialogs needs to be updated.
37 virtual void updateDialog(std::string const & name,
38 std::string const & data) = 0;
42 class GuiBufferDelegate
45 virtual ~GuiBufferDelegate() {}
46 /// This function is called when the buffer structure is changed.
47 virtual void structureChanged() = 0;
48 /// This function is called when some parsing error shows up.
49 virtual void errors(std::string const &) = 0;
50 /// This function is called when some message shows up.
51 virtual void message(docstring const &) = 0;
52 /// This function is called when the buffer busy status change.
53 virtual void setBusy(bool) = 0;
54 /// Reset autosave timers for all users.
55 virtual void resetAutosaveTimers() = 0;
58 } // namespace frontend