mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 00:10:59 +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
|
Used to prevent the premature generation of previews and by the
|
||||||
citation inset to prevent computation of the natbib-style label.
|
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.
|
* factory.C (createInset): remove call to InsetCitation::setLoadingBuffer.
|
||||||
|
|
||||||
2003-10-22 Martin Vermeer <martin.vermeer@hut.fi>
|
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,
|
bool Buffer::readFile(LyXLex & lex, string const & filename,
|
||||||
ParagraphList::iterator pit)
|
ParagraphList::iterator pit)
|
||||||
{
|
{
|
||||||
|
@ -372,6 +372,8 @@ public:
|
|||||||
* and by the citation inset.
|
* and by the citation inset.
|
||||||
*/
|
*/
|
||||||
bool fully_loaded() const;
|
bool fully_loaded() const;
|
||||||
|
/// Set by buffer_funcs' newFile.
|
||||||
|
void fully_loaded(bool);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/** Inserts a file into a document
|
/** Inserts a file into a document
|
||||||
|
@ -191,6 +191,7 @@ Buffer * newFile(string const & filename, string const & templatename,
|
|||||||
}
|
}
|
||||||
|
|
||||||
b->setReadonly(false);
|
b->setReadonly(false);
|
||||||
|
b->fully_loaded(true);
|
||||||
b->updateDocLang(b->params().language);
|
b->updateDocLang(b->params().language);
|
||||||
|
|
||||||
return b;
|
return b;
|
||||||
|
Loading…
Reference in New Issue
Block a user