]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Delegates.h
Use real italic slope for slanted caret
[lyx.git] / src / frontends / Delegates.h
index 96c134bf56b706bf2f9fc152ea3e39f397ae8de8..b5844470e1827740b21cb7cc5ec7a0007eb3999f 100644 (file)
 namespace lyx {
 
 class Buffer;
+class DocIterator;
 class Inset;
 
 namespace frontend {
 
-class GuiBufferViewDelegate 
+class GuiBufferViewDelegate
 {
 public:
        virtual ~GuiBufferViewDelegate() {}
@@ -45,9 +46,9 @@ public:
        virtual void showDialog(std::string const & name,
                std::string const & data, Inset * inset = 0) = 0;
 
-       /// This function is called when some dialogs needs to be updated.
+       /// This function is called when some dialogs needs to be reset.
        /** \param name == "citation", "bibtex" etc; an identifier used
-           to update the contents of a particular dialog with \param data.
+           to reset the contents of a particular dialog with \param data.
            See the comments to 'show', above.
        */
        virtual void updateDialog(std::string const & name,
@@ -61,8 +62,10 @@ public:
        virtual ~GuiBufferDelegate() {}
        /// This function is called when the buffer structure is changed.
        virtual void structureChanged() = 0;
+       /// This function is called when the buffer structure has been updated.
+       virtual void updateTocItem(std::string const &, DocIterator const &) = 0;
        /// This function is called when some parsing error shows up.
-       virtual void errors(std::string const &) = 0;
+       virtual void errors(std::string const &, bool from_master = false) = 0;
        /// This function is called when some message shows up.
        virtual void message(docstring const &) = 0;
        /// This function is called when the buffer busy status change.