Ask Your Question
1

Where can i find a list of property names that are supported for each UNO DispatchCommand URL?

asked 2017-03-21 14:14:07 +0200

librebel gravatar image

A list of UNO dispatch command URLs is published here. These command URLs can be passed to DispatchHelper.executeDispatch(). The Arguments parameter passed to this same function is an array of PropertyValues. Where can i find which Property Names/Values are allowed in the Arguments parameter for each of the DispatchCommand URLs ?

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
1

answered 2018-03-20 08:40:19 +0200

Mike Kaganski gravatar image

All the code is available online, in the project's git.

https://opengrok.libreoffice.org/xref/core/sfx2/sdi/sfx.sdi

https://opengrok.libreoffice.org/xref/core/svx/sdi/svx.sdi

The slots that take parameters have second line in parentheses (see, e.g., SID_DRAW_ELLIPSE in svx.sdi).

edit flag offensive delete link more
2

answered 2017-03-21 14:51:37 +0200

karolus gravatar image

Hallo

AFAIK there is no way to pull out every possible Name|Value -pair, as you can see the list itself is quite long, and any of this Commands maybe accept zero up to some dozens of pairs…

So far the only way to examine the properties seems to record some Action, and to look into the recorded stuff :-(

edit flag offensive delete link more

Comments

Humm? In Base I'm only getting record grayed out. Am I looking at the right thing, i.e. Menu>ToolsMacrosRecord Macro ?

EasyTrieve gravatar imageEasyTrieve ( 2017-03-21 17:12:26 +0200 )edit
Mike Kaganski gravatar imageMike Kaganski ( 2017-03-21 17:56:27 +0200 )edit

Thanks Karolus, i had placed my last hope on an old openoffice file called "slots.sxc" which was mentioned in some forums.. but it seems that file is deprecated by now. Since Macro Recording doesn't work for Base, it seems i'm left to "guessing" the correct property name by trial & error..

librebel gravatar imagelibrebel ( 2017-03-21 21:26:35 +0200 )edit
1

I came across this thread by chance while searching online for dispatch commands. I have a local copy of the slots.sxc file if you want it. It's from 2003 when I was doing some programming in OpenOffice early versions. Not sure how accurate the contents are today, but you might find something useful in it.

LibreLauro gravatar imageLibreLauro ( 2018-03-19 21:43:35 +0200 )edit

Thank you @LibreLauro, i would greatly appreciate it if you could upload the slots.sxc file either as a separate Answer is this thread, or as a link to some upload service.

librebel gravatar imagelibrebel ( 2018-03-19 23:42:27 +0200 )edit
1

All the code is available online, in the project's git.

https://opengrok.libreoffice.org/xref/core/sfx2/sdi/sfx.sdi

https://opengrok.libreoffice.org/xref/core/svx/sdi/svx.sdi

The slots that take parameters have second line in parentheses (see, e.g., SID_DRAW_ELLIPSE in svx.sdi).

Mike Kaganski gravatar imageMike Kaganski ( 2018-03-20 06:59:40 +0200 )edit

How wonderful, thank you for this great find @Mike Kaganski!

This is precisely what i had been looking for.

If you would make an Answer out of it, i'll gladly mark it as the correct answer.

librebel gravatar imagelibrebel ( 2018-03-20 08:15:34 +0200 )edit
1

answered 2018-03-22 19:21:37 +0200

LibreLauro gravatar image

Thanks for the links to the slots code in the project's git. Attached to this answer is the slots.sxc file from 2003, but I had to save it as slots.ods in order to upload it here. (.sxc was not allowed file type)C:\fakepath\slots.ods

edit flag offensive delete link more

Comments

Thank you!

Mike Kaganski gravatar imageMike Kaganski ( 2018-03-22 20:43:31 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-03-21 14:14:07 +0200

Seen: 173 times

Last updated: Mar 22