>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:

Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: |
Lars> Now, in Document>Settings, change the textclass to article. This
Lars> gives | 3 errors, since the chapter headings have been changed
Lars> to Standard. | But the error list does not work: it searches for
Lars> id 994 (which was | 266 before switching class: document
Lars> allocated three more time), but | 994 does not exist anymore, it
Lars> is 1258 already :)

Lars> We shouldn't use par id for anything... only paragraph offsets
Lars> (offsets into the vector...)

No. Think bookmarks. Think error list.

A paragraph does not change because something got inserted before it.
This notion of ID is nice because it really identify the paragraph
independently from its position in the text.

I remember in Paris you wanted to keep the par IDs in the document
format itself.

Lars> By going back to std::list now would mean more months of hacking
Lars> ... I am pretty sure about that...

So what do we do in the meantime to have things like error lists
almost work?

A question: in SwitchBetweenClasses, there is code like

        InsetText in;
        std::swap(in.paragraphs(), pars);
[...]
        std::swap(in.paragraphs(), pars);


If I understand correctly, this causes the whole document to be cloned
twice. Is there any practical use to this?

JMarc

Reply via email to