X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbuffer.h;h=dcb3fd17690188b779051b57dac497db1b0eff36;hb=7c98b3bd37f41ad05e9770d66774f999fbd17ff8;hp=90004d0d7eba16ca92cfb8f9310a0ce5c2d7bbe4;hpb=1c52d8f898a221afca246a808df86266023d022e;p=lyx.git diff --git a/src/buffer.h b/src/buffer.h index 90004d0d7e..dcb3fd1769 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -35,9 +35,6 @@ class LaTeXFeatures; class Language; class ParIterator; -// When lyx 1.3.x starts we should enable this -// btw. we should also test this with 1.2 so that we -// do not get any surprises. (Lgb) #define NO_COMPABILITY 1 /// @@ -148,7 +145,7 @@ public: bool save() const; /// Write file. Returns \c false if unsuccesful. - bool writeFile(string const &, bool) const; + bool writeFile(string const &) const; /// void writeFileAscii(string const & , int); @@ -200,15 +197,15 @@ public: Language const * getLanguage() const; /// int runChktex(); - /// - bool isLyxClean() const; + /// return true if the main lyx file does not need saving + bool isClean() const; /// bool isBakClean() const; /// bool isDepClean(string const & name) const; - /// - void markLyxClean() const; + /// mark the main lyx file as not needing saving + void markClean() const; /// void markBakClean(); @@ -394,6 +391,7 @@ public: } return tmp; } + /// Inset * operator*() { return *it; } @@ -463,7 +461,7 @@ Language const * Buffer::getLanguage() const inline -bool Buffer::isLyxClean() const +bool Buffer::isClean() const { return lyx_clean; } @@ -477,7 +475,7 @@ bool Buffer::isBakClean() const inline -void Buffer::markLyxClean() const +void Buffer::markClean() const { if (!lyx_clean) { lyx_clean = true;