Hi Peter,
On 02/17/09 11:48, Peter Eberlein wrote:
MacroExecutionMode is not set. Beside that, I think that this was only
designed for macros "OnNew", "OnOpen", not for Macros generally.
MacroExecutionMode argument affects all the macros contained in the
document loaded with the loadComponentFromURL() call that gets the
argument. Thus in your case no macros from the document is allowed to be
executed, and in case the document contains macros a dialog should be
shown on loading.
Of course, to be able to show the dialog the loadComponentFromURL()
should get the correct InteractionHanler argument in the MediaDescriptor.
Another possibility could be that the document uses macros from the
office installation. These macros are treated as completely safe
currently and thus can be executed even in case of high security level.
Best regards,
Mikhail.
So macros triggered by form elements are not affected, I think.
Regards Peter
On 02/17/09 10:28, Peter Eberlein wrote:
Hi,
We've set the security level to the highest value (3) in common.xcu.
Nevertheless there ain't a warning message appearing.
All macros can be executed.
The reason for this seems to be the localization of the documents.
They are stored in a database and loadComponentfromURL() has an
XInputStream as parameter.
Any hints how to prohibit the execution of macros?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@framework.openoffice.org
For additional commands, e-mail: dev-h...@framework.openoffice.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@framework.openoffice.org
For additional commands, e-mail: dev-h...@framework.openoffice.org