Abdelrazak Younes wrote:
Juergen Spitzmueller wrote:
Abdelrazak Younes wrote:
This patch does that and a bit more. It ensures that the coords are
saved and restored in any case (closeEvent and buffer switching). It
also does move the preamble related code in apply() and updateParam() in
the new PreambleModule class. Ideally I'd like all modules to follow the
same route.
I have no time to check that now, but if you find your solution
working also
with buffer changes (and buffer changes with open dialogs and buffer
changes with different documents with identical preambles), please go
ahead
and put it in. Even if I invested some time, I'm not particularly happy
with my proposal.
Here is my current patch. I added and 'id()' method in ControlDocument
to get the id of the current buffer (which is in fact his address). As
explained before, I could not rely on the address of the BufferParam as
it is a local copy. AFAIAC, this is as clean as it can be. This Document
dialog needs a lot of cleanup... 1.6 stuff.
Guys, this is a new feature as bug 3201 is already solved. This patch is
well tested and I am confident that it works. But, to show that I am a
good boy, I will not commit it unless there's an explicit approval from
the majority. If not, this will be a good candidate for 1.5.1.
Jose, Jurgen, what should I do with this patch?
If you ask me, I think it is safe to apply (way much safer than the
inset listing stuff). And I guess LateX expert would like to have it.
Abdel.