Kaydet (Commit) ba7de17d authored tarafından Noel Power's avatar Noel Power

Use fully qualified uris, otherwise potentially the doc security could prevent…

Use fully qualified uris, otherwise potentially the doc security could prevent script from resolving.
üst d1cd08e3
...@@ -608,7 +608,7 @@ Sub UpdateCfgFile ( fileName as String ) ...@@ -608,7 +608,7 @@ Sub UpdateCfgFile ( fileName as String )
args(0) = ThisComponent args(0) = ThisComponent
FuncProvider = createUnoService("drafts.com.sun.star.script.framework.provider.FunctionProvider") FuncProvider = createUnoService("drafts.com.sun.star.script.framework.provider.FunctionProvider")
FuncProvider.initialize( args() ) FuncProvider.initialize( args() )
Func = FuncProvider.getFunction("script://ScriptFrmwrkHelper.updateCfgFile") Func = FuncProvider.getFunction("script://ScriptFrmwrkHelper.updateCfgFile?language=Java+function=ScriptFrmwrkHelper.updateCfgFile+location=user")
Dim inArgs(2) Dim inArgs(2)
Dim outArgs() Dim outArgs()
Dim outIndex() Dim outIndex()
...@@ -1703,10 +1703,10 @@ sub DeleteEvent( event as String ) ...@@ -1703,10 +1703,10 @@ sub DeleteEvent( event as String )
dim args(0) as new com.sun.star.beans.PropertyValue dim args(0) as new com.sun.star.beans.PropertyValue
args(0).Name = "" args(0).Name = ""
args(0).Value = event args(0).Value = event
url.Complete = "script://ScriptFrmwrkHelper.removeEvent" url.Complete = "script://ScriptFrmwrkHelper.removeEvent?language=Java+function=ScriptFrmwrkHelper.removeEvent+location=user"
parser.parseStrict(url) parser.parseStrict(url)
disp = document.queryDispatch(url,"",0) disp = document.queryDispatch(url,"",0)
disp.dispatch(url,args()) disp.dispatch(url,args())
end sub end sub
</script:module> </script:module>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment