at first, sorry for my bad english, I am German, but I try to get help in this forum.
I'd like to creat a macro for a table in writer to make a left align and set a left margin. The macro-recorder can not record the way over the tabledialoge. So I try to write it myself in the macro.
The dispatcher command for left margin have I found, for example:
Code: Select all
dim args1(4) as new com.sun.star.beans.PropertyValue
args1(0).Name = "LeftRightMargin.LeftMargin"
args1(0).Value = 1499
args1(2).Name = "LeftRightMargin.RightMargin"
args1(2).Value = 0
args1(3).Name = "LeftRightMargin.LeftRelMargin"
args1(3).Value = 100
args1(4).Name = "LeftRightMargin.RightRelMargin"
args1(4).Value = 100
dispatcher.executeDispatch(document, ".uno:LeftRightMargin", "", 0, args1())
Look at this picture.
Does anybody have an idea?
Best regards Heike