mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
Set 'fully_loaded' when starting a new file too...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7954 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
78046794cc
commit
78d3fbdac3
@ -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>
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user