]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.h
Use the proper buffer when recording undo
[lyx.git] / src / Buffer.h
index 7327de329b98ceafba285dd18bb56b8a6ac5c58e..d483de9a0839bccdc891456a46e144bc53e0f3e1 100644 (file)
@@ -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);