]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.h
Fixed #6335.
[lyx.git] / src / Buffer.h
index 926a20de6ce5f625b8bad3e6654d606b38b99c74..6581313965fc2961dde062ee5389ac409e9149d6 100644 (file)
@@ -186,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;
@@ -321,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;
 
@@ -467,7 +472,9 @@ public:
        Undo & undo();
 
        /// This function is called when the buffer is changed.
-       void changed() const;
+       void changed(bool update_metrics) const;
+       ///
+       void setChild(DocIterator const & dit, Buffer * child);
        ///
        void updateTocItem(std::string const &, DocIterator const &) const;
        /// This function is called when the buffer structure is changed.
@@ -506,11 +513,12 @@ public:
 
        ///
        bool doExport(std::string const & format, bool put_in_tempdir,
-               std::string & result_file) const;
+               bool includeall, std::string & result_file) const;
        ///
-       bool doExport(std::string const & format, bool put_in_tempdir) const;
+       bool doExport(std::string const & format, bool put_in_tempdir,
+                     bool includeall = false) const;
        ///
-       bool preview(std::string const & format) const;
+       bool preview(std::string const & format, bool includeall = false) const;
        ///
        bool isExportable(std::string const & format) const;
        ///
@@ -563,6 +571,8 @@ private:
        void updateMacros(DocIterator & it,
                                     DocIterator & scope) const;
        ///
+       void checkBibInfoCache() const;
+       ///
        void setLabel(ParIterator & it) const;
        ///
        void collectRelatives(BufferSet & bufs) const;