]> git.lyx.org Git - lyx.git/blobdiff - src/buffer.h
Angus insetindex patch + protect patch from Dekel
[lyx.git] / src / buffer.h
index 1d5609a86e4177df95321d5abc6b128820ecf16a..598ea56015991c8dd20318aef7555926083617e4 100644 (file)
@@ -138,7 +138,10 @@ public:
                                        LyXParagraph::footnote_kind &
 #endif
                );
-
+private:
+       // Parse a single inset.
+       void readInset(LyXLex &, LyXParagraph *& par, int & pos, LyXFont &);
+public:
        /** Save file
            Takes care of auto-save files and backup file if requested.
            Returns true if the save is successful, false otherwise.
@@ -220,7 +223,13 @@ public:
        
         ///
         void markNwDirty() { nw_clean = false; }
-       
+
+       ///
+       void setUnnamed(bool flag=true) { unnamed = flag; }
+
+       ///
+       bool isUnnamed() { return unnamed; }
+
        ///
        void markDirty() {
                if (lyx_clean) {
@@ -394,6 +403,9 @@ private:
         /// do we need to run weave/tangle
         bool nw_clean;
 
+       /// is this a unnamed file (New...)
+       bool unnamed;
+
        /// is regenerating .tex necessary
        DEPCLEAN * dep_clean;