Hello,

I will read and set the Option:

Tools-Options-Load/Save-General-Save URLs relative to file system

with a Macro.


For Changing the MacroSecurityLevel i found this:

Sub ChangeMacroSecurity
   Dim sNodePath As String
   Dim oCP, oCUA
   
   sNodePath = "/org.openoffice.Office.Common/Security/Scripting"
   
     Dim aProps(0) As New com.sun.star.beans.PropertyValue

   oCP = CreateUnoService("com.sun.star.configuration.ConfigurationProvider" )
   aProps(0).Name = "nodepath"
   aProps(0).Value = sNodePath
   oCUA = 
oCP.createInstanceWithArguments("com.sun.star.configuration.ConfigurationUpdateAccess",
 aProps )
   
   oCUA.MacroSecurityLevel = 0
   oCUA.commitChanges()
End Sub


But how should the line "sNodePath = 
"/org.openoffice.Office.Common/Security/Scripting"" look for my requirement?

Unfortunately, when I use the XRAY-tool for inspect "oCUA" crashes OpenOffice.



Greetings,
Jörg



---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscr...@openoffice.apache.org
For additional commands, e-mail: api-h...@openoffice.apache.org

Reply via email to