openoffice-api mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schmidt <>
Subject read and set the option "Save URLs relative to file system"
Date Sat, 12 Sep 2015 12:51:00 GMT

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

   oCP = CreateUnoService("" )
   aProps(0).Name = "nodepath"
   aProps(0).Value = sNodePath
   oCUA = oCP.createInstanceWithArguments("",
aProps )
   oCUA.MacroSecurityLevel = 0
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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message