X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBuffer.h;h=d483de9a0839bccdc891456a46e144bc53e0f3e1;hb=f7768c994dc6aa6c79c32a8eee77eaa41662f9a4;hp=957d54c290ef1592d24599ee114a8dd951902d46;hpb=cf3c035266486b797e4bc3fe1a9e95c87f45f66d;p=lyx.git diff --git a/src/Buffer.h b/src/Buffer.h index 957d54c290..d483de9a08 100644 --- a/src/Buffer.h +++ b/src/Buffer.h @@ -231,7 +231,7 @@ private: typedef std::map 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);