 | OO-Snippets: Using Dispatch APICommons| Keywords | dispatch |
|---|
| Language | Python |
|---|
| Application | Office |
|---|
| Authors | Darragh Sherwin (initial)
Tom Schindl (initial)
|
|---|
| Supported Versions | |
|---|
| Supported OS | All |
|---|
| Question | How do I use the dispatch API in pyuno
|
|---|
| Answer |
Code is taken from a mail from Darragh Sherwin on dev@api.openoffice.org
|
|---|
def executeSlot( ctx, controller, islot ):
dispatchHelper = ctx.ServiceManager.createInstanceWithContext( "com.sun.star.frame.DispatchHelper", ctx )
frame = controller.getFrame()
dispatchHelper.executeDispatch( frame, islot, "", 0, () )
|
Changelog| Date | User | Modification |
|---|
| 2005-10-15 | tomsontom | Initial version |
|