]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.h
Continue working on the embedding feature. An additional parameter updateFile is...
[lyx.git] / src / Buffer.h
index ace9986f23880a6e5111f255335618e1d3ba39d8..33d019b3de1746d886ec1d16ef227b9181261f8d 100644 (file)
@@ -31,6 +31,8 @@ class ErrorItem;
 class ErrorList;
 class FuncRequest;
 class Inset;
+class InsetRef;
+class InsetLabel;
 class Font;
 class Format;
 class Lexer;
@@ -50,7 +52,6 @@ class TeXErrors;
 class TexRow;
 class TocBackend;
 class Undo;
-class WordList;
 
 namespace frontend {
 class GuiBufferDelegate;
@@ -433,10 +434,6 @@ public:
 
        ///
        void autoSave() const;
-       ///
-       void loadChildDocuments() const;
-       ///
-       void resetChildDocuments(bool close_them) const;
 
        /// return the format of the buffer on a string
        std::string bufferFormat() const;
@@ -453,11 +450,14 @@ public:
        ///
        std::vector<Format const *> exportableFormats(bool only_viewable) const;
 
-       /// Register word for completion word list.
-       void registerWord(docstring const & word);
        ///
-       WordList const & registeredWords() const;
-       
+       typedef std::vector<std::pair<InsetRef *, ParIterator> > References;
+       References & references(docstring const & label);
+       References const & references(docstring const & label) const;
+       void clearReferenceCache() const;
+       void setInsetLabel(docstring const & label, InsetLabel const * il);
+       InsetLabel const * insetLabel(docstring const & label) const;
+
 private:
        /// search for macro in local (buffer) table or in children
        MacroData const * getBufferMacro(docstring const & name,