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 /** \param name == "citation", "bibtex" etc; an identifier used
38 to update the contents of a particular dialog with \param data.
39 See the comments to 'show', above.
41 virtual void updateDialog(std::string const & name,
42 std::string const & data) = 0;
46 class GuiBufferDelegate
49 virtual ~GuiBufferDelegate() {}
50 /// This function is called when the buffer structure is changed.
51 virtual void structureChanged() = 0;
52 /// This function is called when some parsing error shows up.
53 virtual void errors(std::string const &) = 0;
54 /// This function is called when some message shows up.
55 virtual void message(docstring const &) = 0;
56 /// This function is called when the buffer busy status change.
57 virtual void setBusy(bool) = 0;
58 /// Reset autosave timers for all users.
59 virtual void resetAutosaveTimers() = 0;
62 } // namespace frontend