Am 06.03.2008 um 22:34 schrieb Abdelrazak Younes:

Abdelrazak Younes wrote:
Stefan,
The way we do the macro tables update is not optimal and I think time consuming. I've cleaned up child document handling now except for everything macro related. I believe you can do all this stuff in updateLabels(), please have a look.

I had a closer look at the macro stuff. This is really complicated Stefan. WRT child/parent handling, I think you should take the same solution as for the labels and the toc backend, namely that only the _master_ macro table is updated and maintained. IOW, this means that the macro registering presently done in Buffer::updateEnvironmentMacros():

Please take a look at the two Buffer::updateMacros methods now after my commmit. I is _much_ simpler now. No mutual recursions anymore to get the scopes right for macro definitions inside font changes or environments. Probably there is even more room for simplification now with the new global semantics.

Stefan

Reply via email to