X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2FDelegates.h;h=d13af7eec5b3c7fdef0f12f6d30854135e7866fa;hb=161f7b7f62cb33dab681add6c5b5b68a887e2ea1;hp=c1ef6556a40c455bdb0e829ddf359d145b260189;hpb=b9c526aaa2603c6ffa77ede1543b0dda86f7ab74;p=lyx.git diff --git a/src/frontends/Delegates.h b/src/frontends/Delegates.h index c1ef6556a4..d13af7eec5 100644 --- a/src/frontends/Delegates.h +++ b/src/frontends/Delegates.h @@ -17,6 +17,7 @@ namespace lyx { class Buffer; +class DocIterator; class Inset; namespace frontend { @@ -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.