> From: Andrew Douglas Pitonyak [mailto:[EMAIL PROTECTED]
> Sent: vrijdag 19 augustus 2005 5:27
> To: [email protected]
> Cc: Victoria, Sven
> Subject: Re: [users] OpenOffice UNO and Java

> As already stated, the dev list and also, not stated, the oooforum has 
> some Java people there as well.

Yes I agree that the dev-list is more appropriate.
I have some problems subscribing to this list at this moment so I
will continue here for now.

> For the most part, an object will implement services. If you have an 
> object that implements a interface, then you can obtain that interface 
> from the object. Now, given a particular object, you just need to know 
> which interfaces it implements. Basic hides most of these details, Java 
> does not. So, a nice place to start is the API documentation. If you 
> look here:
> http://api.openoffice.org/docs/common/ref/com/sun/star/text/XTextDocument.html
> You will see that the XTextDocument interface also inherts from some 
> others. Usefulinformation...

Correct, I  misinterpreted the function. I saw the following javascript
code:

    model = context.getDocument(); 
    textdoc = (XTextDocument)
        UnoRuntime.queryInterface(XTextDocument.class, model);

and thought "jee, what other classes can I can pass via the zInterface 
parameter which makes some sense in this context?"

I should have read this as:

    doc = context.getDocument();
    if (doc instanceof XTextDocument) {
         textdoc = (XTextDocument) doc;
    }

Regards,
Sven

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to