Re: [api-dev] null XComponent

2007-11-28 Thread Mathias Bauer
Makaray wrote: > Hi, i have problem with embedded object. I'm using > XTextEmbeddedObjectsSupplier in writter document, to get access to > this object. This object give me a list of all embedded elements in > document. Property "Model" should give me a XComponent object, but > sometimes it's null

Re: [api-dev] null XComponent

2007-11-27 Thread Sascha Jensen
hi, I have two horizontal lines in my Word Document. In OOo they become embedded objects (OLE) because they are drawings in Word. In OOoBasic I can get the Component for these objects. But my CLSID is not 0. Maybe the zero CLSID indicates that there is no OLE2 available for those objects. Sor

Re: Re: [api-dev] null XComponent

2007-11-27 Thread Makaray
Hi, Yes, OLE object...For example xls or ppt document embedded in doc document... Makaray Sascha Jensen napisał(a): > Hi > > Makaray schrieb: > > I created this document in MsOffice, and embedded object are created in > MsOffice too... > > I dont know that OOo does with those embedded obeject fr

Re: [api-dev] null XComponent

2007-11-27 Thread Sascha Jensen
Hi Makaray schrieb: I created this document in MsOffice, and embedded object are created in MsOffice too... I dont know that OOo does with those embedded obeject from MSOffice. I opened a Word Document with 2 pictures inside and checked the CLSIDs. Those are definitely not zero. What kind

Re: Re: [api-dev] null XComponent

2007-11-27 Thread Makaray
I created this document in MsOffice, and embedded object are created in MsOffice too... Sascha Jensen napisał(a): > Hi again > > first: you did not reply to the list. > > how do you get your document? Is it an existing MSOffice Document you > opened in OOo? > > Sascha > > Makaray schrieb: >

Re: [api-dev] null XComponent

2007-11-27 Thread Sascha Jensen
Hi, this is documented in the API documentation. If you look at the service TextEmbeddedObject you can see that the properties Model and Component are defined as maybevoid. This is due to the fact that not all embedded objects have a model/component. AFAIK a Formula is only represented by a pr