Do not recommend at all to spend time searching for the method parameters executeDispatch, you get much more if you learn to program macros using own objects, methods and properties ... here can answer your questions this.
______________________________________________
Everything not given is lost
AOO 4.1 / LibO 4.3 on ArchLinux with Gnome3 Please, I do not answer private questions, you use the forum
If you really need to know them, search in *.sdi files of the source tree.
Please, edit this thread's initial post and add "[Solved]" to the subject line if your problem has been solved.
Apache OpenOffice 4-dev on Xubuntu 14.04
The first line contains "Type name in command pool", "Name of the command" and "Numerical id of the command".
The second line lists arguments in round parentheses that the command allows to be specified. In this case, each arguments contains "Type name of the argument", "Name" and "Numerical id". So this section tells you what arguments can be passed. If this line is empty, the command does not take any arguments or it does not allow any arguments, maybe depends on some UI. If the type of some arguments is complicated type that can not be represented in your target language, it seems that it can not be passed.
Third sections lists some information and status information for commands placed in the menubar or toolbar.
Please, edit this thread's initial post and add "[Solved]" to the subject line if your problem has been solved.
Apache OpenOffice 4-dev on Xubuntu 14.04
Thanks for the info. It would seem that .uno:SaveGraphic doesn't have any parameters, which was throwing me (I assumed I could specify the details like file name).
First let me identify that I am new to the OO forum. (I don't know if there is any advantage with regard to using macros between LibreOffice as opposed to Open Office, but I welcome any opinions)
My specific question is similar to one given by member mcasperson on Apr 15, 2013, "Deducing parameters for .uno:whatever calls.
This question pertains to using macros with Writer. I'm running off Windows for now, and I'm pretty acquainted with Microsoft's VBA but not at all yet with OO basic. But I think I could pick it up quickly.
Specifically I'm trying to create a Text Frame from a macro and set some property values. I used "Record Macro" to get started, but the recording only sets 5 property values, and not some of the other properties that I need. So how do I find reference to property names to set the other property values? Specifically, how do I refer to the properties that correspond with the [Insert] Frame dialog box for the properties at the bottom, labeled "Position":
Horizontal position: __________
by __________
from __________
___ Mirror on Even Pages
Vertical position: __________
by __________
from __________
(1.) By the UNO dispatch method, (as created using "Record Macro"), the code is essentially. . .
dim args1(4) as new com.sun.star.beans.PropertyValue
args1(0).Name = "AnchorType", . . . etc., Pos.X, Pos.Y, Size.Width, Size.Height
But how do I find the UNO reference for the OTHER properties I need.
(2.) Or, better yet, as member mauriciobaez responded in the same thread, ". . . you get much more if you learn to program macros using own objects, methods and properties. . . "
Could someone be so kind as to give me a little snippet example of how to do what I'm asking without UNO dispatches? (Insert a Text Frame and set the needed properties.)
(3.) And finally, member hanya added to the thread, "If you really need to know them, search in *.sdi files of the source tree."
Hate to be ignorant, but where are these *.sdi files you refer to and what do you mean by source tree. I searched the folders installed with both LibreOffice and Open Office and came up empty-handed.
All these questions expose of course, that I'm a total beginner. So I look to help from any of you who better understand the ropes!