Dennis,
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.
Thanks much.
Girvin
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.
- Dennis
-----Original Message-----
From: Girvin R. Herr [mailto:girvin.h...@sbcglobal.net]
Sent: Saturday, June 30, 2012 14:45
To: users@global.libreoffice.org
Subject: Re: [libreoffice-users] Re: stubborn macro security
Andreas,
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.
When you store a new document from that template in some untrusted
location, the macro can not be trusted anymore.
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.
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.
Thanks.
Girvin
--
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
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