]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.h
Kornel's gcc compile fix.
[lyx.git] / src / Buffer.h
index e3b0e7da1543dfbf2f9601bb28b7d040cc5a2243..af69950eb1a74443136eac2624d64a353c617ef7 100644 (file)
@@ -262,9 +262,16 @@ public:
        ///
        void setUnnamed(bool flag = true);
 
-       ///
+       /// Whether or not a filename has been assigned to this buffer
        bool isUnnamed() const;
 
+       /// Whether or not this buffer is internal.
+       ///
+       /// An internal buffer does not contain a real document, but some auxiliary text segment.
+       /// It is not associated with a filename, it is never saved, thus it does not need to be
+       /// automatically saved, nor it needs to trigger any "do you want to save ?" question.
+       bool isInternal() const;
+
        /// Mark this buffer as dirty.
        void markDirty();