[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libreoffice-users] Re: stubborn macro security
- Subject: Re: [libreoffice-users] Re: stubborn macro security
- From: "Girvin R. Herr" <firstname.lastname@example.org>
- Date: Sat, 30 Jun 2012 18:19:30 -0700
- To: email@example.com
That helped a lot. I found the "UpdateFromTemplate" definition in the settings.xml file as you suggested. I was able to change the assignment from "false" to "true" and tried it, but it didn't seem to pick up on the changed template. I will have to do some more work on this but I wanted to let you know your help was appreciated and opened a door for me to fix this problem. Maybe I can write a shell script to make the change to the settings.xml directly instead of using the suggested macro approach. I have a lot of files that need this change.
Dennis E. Hamilton wrote:
From what Andreas says, it appears that the flag you care about is in settings.xml within the Zipped .odt package.
It is generally benign to simply delete the settings.xml file. Try it on a copy to see if it accomplishes what you want.
From: Girvin R. Herr [mailto:firstname.lastname@example.org] Sent: Saturday, June 30, 2012 14:45
Subject: Re: [libreoffice-users] Re: stubborn macro security
Andreas SÃ¤ger wrote:
Where is the macro stored? Obviously you store it in the template and all resulting documents from that template inherit the macro.I assume the macro is stored in the particular document I wanted to change. I used the process in the 3.4 Writer Guide, "Updating a Document From a Changed Template" attempting to change that document's template update flag. In this document and some others, in the past I must have clicked on "Keep Old Styles" in the popup and according to the Writer Guide, that sets a flag to never allow template updates again for the document. Apparently, the only way to re-enable it is to run this BASIC Macro to set the "oDocSettings.UpdateFromTemplate" flag to "True". It is supposed to cancel the "Keep Old Styles" selection. The macro function is called "FixDocV3" if that helps.
When you store a new document from that template in some untrusted location, the macro can not be trusted anymore.
I just realized that this is a *BASIC* macro, not the usual keystroke type macro. That difference may have confused you and other users when reading my message. Does a BASIC macro have a different security option somewhere?
Not knowing what the file format is, is it possible to unzip the document and search for "UpdateFromTemplate" and edit it to "True", as an alternate to the BASIC macro?
If "UpdateFromTemplate" is hard-coded into the document rather than the symbolic name, I would need to know where it is in the document to change it, which I don't know.
For unsubscribe instructions e-mail to: email@example.com
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
|[libreoffice-users] stubborn macro security||"Girvin R. Herr" <firstname.lastname@example.org>|
|[libreoffice-users] Re: stubborn macro security||Andreas Säger <email@example.com>|
|Re: [libreoffice-users] Re: stubborn macro security||"Girvin R. Herr" <firstname.lastname@example.org>|
|RE: [libreoffice-users] Re: stubborn macro security||"Dennis E. Hamilton" <email@example.com>|
- Prev by Date: Re: [libreoffice-users] Startup positioning problem with LO 188.8.131.52
- Next by Date: [libreoffice-users] Re: stubborn macro security
- Previous by thread: RE: [libreoffice-users] Re: stubborn macro security
- Next by thread: [libreoffice-users] Re: stubborn macro security