Laurent Godard wrote: > Hi Mathias > >> This strange looking macro will set an internal switch in the document >> meta data that enables the template update procedure. >> BTW: the same macro will re-enable the update procedure in case you have >> switched it off by answering the question "do you want to update your >> styles" with "No". >> > > yes it is strange :-) > some magics behind ;-)
The magics is simply that setting the "Template" property works even if you overwrite it with its current value. And setting this property automatically also sets the (hidden) property that enables the update check - that's it. >> You can execute this macro on every document if you want (e.g. by >> assigning it to the "OnLoad" event on application level), if the >> document is not based on a template it will not be modified by this macro. >> > > Do you think an addon would be valuable ? I don't think so. This is a defect only in documents created from templates by using OOo2.0.2. You will not need a fix for documents created with 2.0.x and x<2 or x>3. But of course nobody hinders anybody to create one. :-) Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
