]> git.lyx.org Git - features.git/commitdiff
Set 'fully_loaded' when starting a new file too...
authorAngus Leeming <leeming@lyx.org>
Wed, 22 Oct 2003 14:40:24 +0000 (14:40 +0000)
committerAngus Leeming <leeming@lyx.org>
Wed, 22 Oct 2003 14:40:24 +0000 (14:40 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7954 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/buffer.C
src/buffer.h
src/buffer_funcs.C

index a9c5ca7e6a16012ff809527861b00a99a364352d..fc6f716d7af41c30dd22077a862078bf5bf8412b 100644 (file)
@@ -5,6 +5,9 @@
        Used to prevent the premature generation of previews and by the
        citation inset to prevent computation of the natbib-style label.
 
+       * buffer_funcs.C (newFile): set Buffer::fully_loaded once the
+       templates are all set up.
+
        * factory.C (createInset): remove call to InsetCitation::setLoadingBuffer.
 
 2003-10-22  Martin Vermeer  <martin.vermeer@hut.fi>
index 5fa662477800cf598057e9cc4304f2b75faef88e..8783c30d226482874b9dbcfbef7e30ee43e88dcb 100644 (file)
@@ -618,6 +618,12 @@ bool Buffer::fully_loaded() const
 }
 
 
+void Buffer::fully_loaded(bool value)
+{
+       pimpl_->file_fully_loaded = value;
+}
+
+
 bool Buffer::readFile(LyXLex & lex, string const & filename,
                      ParagraphList::iterator pit)
 {
index 2128f4db75da34b8768efdc87d092300d7657d4a..ed55785301bd0e21e1dc35895a455f5a12d26da2 100644 (file)
@@ -372,6 +372,8 @@ public:
         *  and by the citation inset.
         */
        bool fully_loaded() const;
+       /// Set by buffer_funcs' newFile.
+       void fully_loaded(bool);
 
 private:
        /** Inserts a file into a document
index 425bb3431a06d92f1d118ba5ad002ddb21bcb34d..dbb5e556d9cdfdc63d7aa26b3172f6db5448e3f5 100644 (file)
@@ -191,6 +191,7 @@ Buffer * newFile(string const & filename, string const & templatename,
        }
 
        b->setReadonly(false);
+       b->fully_loaded(true);
        b->updateDocLang(b->params().language);
 
        return b;