Re: [api-dev] Problem using XPropertySet.setPropertyValue() with an "EllipsesShape" for properties of UNO type "long", when supplying a String object instead

2010-07-11 Thread Rony G. Flatscher
Hi there, just stumbled over the "http://api.openoffice.org/docs/common/ref/com/sun/star/drawing/ConnectorShape"; service, which has two UNO long (i.e. java.lang.Integer) properties, named "StartGluePointIndex" and "EndGluePointIndex". Here exceptions get thrown, if one supplies a String object (w

[api-dev] Problem using XPropertySet.setPropertyValue() with an "EllipsesShape" for properties of UNO type "long", when supplying a String object instead

2010-07-11 Thread Rony G. Flatscher
Hi there, while tidying up some nutshells, I ran into the following problem: * setting a PropertyValue to a value with a wrong data type will correctly cause an exception; o the Java exception handler will look up the correct property data type and will then set th

[api-dev] Adding a Comment in Calc

2010-07-11 Thread Phil Hibbs
How do I add a Comment to a cell using a macro? I haven't learned any specific macro languages yet, but I've played around with some recorded macros, and the recording of adding a Comment does nothing. I am proficient with Excel VBA and am trying to learn to apply the same techniques to OOo. Phil

[api-dev] How to copy Master-Pages from one to another Impress-Dok?

2010-07-11 Thread Thomas Krumbein
Hey, I tried to copy some Master-pages from one Impress-Dok to another one using Basic. Unfortunatly I do not have any success :-( What I tried to do: Becouse i do not find a direct way to copy the Masterpage, I thought about simulat way as doing it using the UI . Using the UI it is easy: Select