You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2013/12/05 16:18:13 UTC

[Bug 113481] Cannot call Python macro from the command line using URI syntax

https://issues.apache.org/ooo/show_bug.cgi?id=113481

hanya <ha...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hanya.runo@gmail.com

--- Comment #3 from hanya <ha...@gmail.com> ---
vnd.sun.star.script protocol is handled by ScriptProtocolHandler in
scripting/source/protocolhandler/scripthandler.cxx.
The script is executed through dispatchWithNotification method but 
XController from the document frame is not valied in getScriptInvocation method
at this time.

As the side problem of this issue, when I start soffice with
vnd.sun.star.script:...?location=document, 
the instance would not exit.
It seems this happens because of the dispatch watcher for calling
dispatchWithNotification method of the protocol handler for the script.
When the protocol handler failed to access to the document's script, 
it returned without calling dispatchFinished method of the dispatch result
listener.
When I called the method with css::frame::DispatchResultState::FAILURE status, 
the instance of the office finished normally.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.