Jean-Marc Lasgouttes wrote:
[EMAIL PROTECTED] writes:
Thanks, nice summary. Pretty please tell me the above is documented in
the code?
No, the idea is that the loading now happens only when it is needed.
However, this means that numbering is off until the child documents
get loaded.
When my patch is in, I think we should (optionally) load all child
document automatically when opening the master document. This has the
benefits that the numbering and label will be immediately correct. So
will be the outline and navigate menu. As I said previously, the child
documents are opened in the background and no BufferView is created for
them. They are only accessible through the Document menu or if you click
in a child section.
No, the child loading will happen only when you do one of the action
above. My patch didn't change that behavior, it just made the
loading happens faster, that's all.
Faster because buffer loading calls updateLabels?
Yes.
Does it have to?
Yes for the TocBackend purpose. A child document doesn't know about the
other child documents so it will call update
Do you actually feel it is faster?
A great deal yes. If you have 20 highly structured child documents
you'll see the difference, really. updateLabels() costs more than the
mere loading of the child document.
Abdel.