]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.h
Move the collection of citations and sorting routines into BiblioInfo.
[lyx.git] / src / Buffer.h
index f745aa04b8563cc2fb43eff35324156c2f5966dd..f52bb828b8de79914c90e46451c5b0e866954453 100644 (file)
@@ -125,13 +125,16 @@ public:
        };
 
        /// Constructor
-       explicit Buffer(std::string const & file, bool b = false);
+       explicit Buffer(std::string const & file, bool readonly = false,
+               Buffer const * cloned_buffer = 0);
 
        /// Destructor
        ~Buffer();
 
        ///
        Buffer * clone() const;
+       ///
+       bool isClone() const;
 
        /** High-level interface to buffer functionality.
            This function parses a command string and executes it.
@@ -183,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;
@@ -318,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;
 
@@ -464,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.
@@ -512,6 +520,8 @@ public:
        bool isExportable(std::string const & format) const;
        ///
        std::vector<Format const *> exportableFormats(bool only_viewable) const;
+       ///
+       bool isExportableFormat(std::string const & format) const;
 
        ///
        typedef std::vector<std::pair<InsetRef *, ParIterator> > References;
@@ -558,6 +568,8 @@ private:
        void updateMacros(DocIterator & it,
                                     DocIterator & scope) const;
        ///
+       void checkBibInfoCache() const;
+       ///
        void setLabel(ParIterator & it) const;
        ///
        void collectRelatives(BufferSet & bufs) const;