]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.h
Whitespace.
[lyx.git] / src / Buffer.h
index 697994c9854009feee0adb325348fa0894ab65fc..02635d97e7524f5ad3b35248c0c0ab737bc248c0 100644 (file)
@@ -110,10 +110,7 @@ public:
                timestamp_method, ///< Use timestamp, and checksum if timestamp has changed
        };
 
-       /** Constructor
-           \param file
-           \param b  optional \c false by default
-       */
+       /// Constructor
        explicit Buffer(std::string const & file, bool b = false);
 
        /// Destructor
@@ -140,7 +137,7 @@ public:
 
        /** Reads a file without header.
            \param par if != 0 insert the file.
-           \return \c false if file is not completely read.
+           \return \c true if file is not completely read.
        */
        bool readDocument(Lexer &);
 
@@ -167,7 +164,7 @@ public:
        /// Write file. Returns \c false if unsuccesful.
        bool writeFile(support::FileName const &) const;
 
-  /// Loads LyX file \c filename into buffer, *  and \return success
+       /// Loads LyX file \c filename into buffer, *  and \return success
        bool loadLyXFile(support::FileName const & s);
 
        /// Fill in the ErrorList with the TeXErrors
@@ -285,6 +282,9 @@ public:
 
        /// \return true if \p child is a child of this \c Buffer.
        bool isChild(Buffer * child) const;
+       
+       /// return a vector with all children and grandchildren
+       std::vector<Buffer *> getChildren() const;
 
        /// Is buffer read-only?
        bool isReadonly() const;
@@ -445,7 +445,10 @@ public:
        ///
        void message(docstring const & msg) const;
 
+       ///
        void setGuiDelegate(frontend::GuiBufferDelegate * gui);
+       ///
+       bool hasGuiDelegate() const;
 
        ///
        void autoSave() const;