Ask Your Question
0

simplest macro letter m [closed]

asked 2014-05-16 19:41:16 +0100

altair gravatar image

updated 2014-05-16 20:01:29 +0100

Hello! I wrote the most simple macro, writing just one letter. Here is its code:

sub letter_m
dim document as object
dim dispatcher as object
document  =This.Component.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
dim args(0) as new com.sun.star.beans.PropertyValue
args1(0) .Name = "Text"
args1(0) .Value = "Value"
dispatcher.executeDispatch(document, " .uno:InsertText", "", 0, args1())
end sub

Please, what meant args1(0)

p.s. Any links about this would be extremely helpfull! I appologise, cause I am a beginner, and did not manage to google sth for my level

MANY THANKS!!!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-02-22 17:35:11.291946

1 Answer

Sort by » oldest newest most voted
0

answered 2014-05-17 07:04:33 +0100

mahfiaz gravatar image

The best explanation out there is in a tutorial: http://libreoffice-na.us/English-4.0-...

In short it is used to compile a list of arguments to be passed on at once in the following dispatch call.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-05-16 19:41:16 +0100

Seen: 68 times

Last updated: May 17 '14