]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.h
Routines for calculating numerical labels for BibTeX citations.
[lyx.git] / src / Buffer.h
index 50bdf77bc9df2877eacea889a48b5564cd29f6a7..f52bb828b8de79914c90e46451c5b0e866954453 100644 (file)
@@ -133,6 +133,8 @@ public:
 
        ///
        Buffer * clone() const;
+       ///
+       bool isClone() const;
 
        /** High-level interface to buffer functionality.
            This function parses a command string and executes it.
@@ -184,6 +186,8 @@ public:
 
        /// Loads LyX file \c filename into buffer, *  and return success
        bool loadLyXFile(support::FileName const & s);
+       /// Reloads the LyX file
+       bool reload();
 
        /// Fill in the ErrorList with the TeXErrors
        void bufferErrors(TeXErrors const &, ErrorList &) const;
@@ -319,6 +323,9 @@ public:
        /// return a vector with all children (and grandchildren)
        std::vector<Buffer *> getChildren(bool grand_children = true) const;
 
+       /// Add all children (and grandchildren) to supplied vector
+       void getChildren(std::vector<Buffer *> & children, bool grand_children = true) const;
+
        /// Is buffer read-only?
        bool isReadonly() const;
 
@@ -465,7 +472,7 @@ public:
        Undo & undo();
 
        /// This function is called when the buffer is changed.
-       void changed() const;
+       void changed(bool update_metrics) const;
        ///
        void updateTocItem(std::string const &, DocIterator const &) const;
        /// This function is called when the buffer structure is changed.
@@ -561,6 +568,8 @@ private:
        void updateMacros(DocIterator & it,
                                     DocIterator & scope) const;
        ///
+       void checkBibInfoCache() const;
+       ///
        void setLabel(ParIterator & it) const;
        ///
        void collectRelatives(BufferSet & bufs) const;