Hi Christian, On Sat, 2005-10-08 at 18:07 +0200, Christian Junker wrote: > Hi Jayant, > > 2005/10/6, Jayant Balraj Madavi <[EMAIL PROTECTED]>: > > Problem 1: > > How to get the shape name ? > > The css::drawing::Shape (abstract mother class of all shapes) has a > Name property. I can't test on this machine right now, but I am pretty > sure it's just a PropertyValue with the name "Name".
For me XShape-> XNamed works now. Earlier it was not working b'se, by default, there is no names for draw object :( (I filed a bug yesterday). Also in calc there is no way to "name" the draw object. > > > Problem 2: > > drawing::XShapes myShapes ;//(Shape collection from drawPage) > > For me XSelectionSupplier->Select(myShapes) also does not > > work is it suppose to work ? > > It should work as far as I see it, have you instantiated a > css::drawing::ShapeCollection before at the office ServiceManager and > added the to-be-selected shapes to it (querying XShapes and using its > add method)? It was somehow not working for me, b'se the draw objects were "Push Buttons" :( With other objects like rectangle, circle etc it works fine. Also filed a bug for "Edit Points" in calc b'se XSelectionSupplier->Select(myShapes) selects a bigger rectangle enclosing all the shapes :( > You also need to make sure that you pass in an object of > uno type Any, in Java for example you can pass an object of type > Object. Now a days, I hardly look for java examples. I have written around 60-80 c++ programs using uno API's :) > > -- > Best Regards > Christian Junker Thanx a lot :) Regards, Jayant --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
