shizhoubo[OOoFrm] wrote:
> hi all,
> 
> I'm reading the "Using the Dispatch Framework" in OOo Developers Guide
> 7.1.6,
> I have two question about Dispatching a Command and Command URL.
> a.) Are all user action defined Command URL?
> b.) What is the relationship between Command URL and Dispatching a
> Command? Are they one-one correspondence?
> c.) What value the com.sun.star.util.URL's Protocol should be in the OOo?
> 
Hi shizhoubo,

a) All actions which reside in generic user interface elements (e.g.
menu bar, toolbar, status bar) are defined by a command URL.

b) You have to provide a command URL to dispatch an action. That means
the command URL defines what you want to execute. Dispatching a command
is needed to execute the command.

c) The value of the procotol is not pre-defined. You can use anything
you want. Especially protocol handlers define their own protocol.
OpenOffice.org uses ".uno:" for internal commands.

Regards,
Carsten

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to