]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.h
do what the FIXME suggested
[lyx.git] / src / Buffer.h
index ace9986f23880a6e5111f255335618e1d3ba39d8..4e01081476bf854474ce40c1c38e22f8164e1512 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;
@@ -453,11 +454,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,