]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.h
Fix bug #6388
[lyx.git] / src / Buffer.h
index f745aa04b8563cc2fb43eff35324156c2f5966dd..59ee44480595f527f0c7d2daf2598980b14dd00c 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.
@@ -318,6 +321,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;
 
@@ -512,6 +518,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;