According to Martin Sevior <[EMAIL PROTECTED]>:
> 
> Hi Hub,
>       That call can only safely be made after the the PieceTable has
> finished loading. Loads are done via "append" and populate methods. These
> do not do all the extra stuff to keep the PieceTable consistent during
> file loads to speed things up.

So if I use append...() I can't do anything else...

> Regarding you question about Header/Footers I'm afraid you'll have to
> store header/footers in some data structure until the rest of the document
> has loaded then do appendStrux's on the data structures to store the
> header/footers. 
> 
> I think the bext way to do this is to save the raw RTF text inside the
> header/footer definition as regular RTF text in a special buffer. When the
> rest of the document has loaded, run this text back through RTF importer
> with the appropriate section tags before and after each chunk of RTF text.
> 
> I believe that that it should be possible to do this without too much
> effort since the RTF importer can stream from at least two source
> already. (The clipboard and a file.)

That's what I thought in the first place, but this raise some consistency
problems with the RTF parser. Afterall, perhaps this is a good time to
rewritte what needs to be allow this kind on trickery as well. I already
have some job done.

Thanks for the hints. This will delay the feature, but not for long.

Hub

Reply via email to