]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.h
When running latex one needs to have a proper buffer
[lyx.git] / src / Buffer.h
index 957d54c290ef1592d24599ee114a8dd951902d46..d483de9a0839bccdc891456a46e144bc53e0f3e1 100644 (file)
@@ -231,7 +231,7 @@ private:
        typedef std::map<Buffer const *, Buffer *> BufferMap;
        ///
        void cloneWithChildren(BufferMap &, CloneList *) const;
-       /// save timestamp and checksum of the given file.
+       /// save checksum of the given file.
        void saveCheckSum() const;
        /// read a new file
        ReadStatus readFile(support::FileName const & fn);
@@ -471,9 +471,13 @@ public:
        /// thing from whichever Buffer it is called.
        ListOfBuffers allRelatives() const;
 
-       /// Is buffer read-only?
+       /// Is buffer read-only? True if it has either the read-only flag or the
+       /// externally modified flag.
        bool isReadonly() const;
 
+       /// Does the buffer have the read-only flag?
+       bool hasReadonlyFlag() const;
+
        /// Set buffer read-only flag
        void setReadonly(bool flag = true);