Re: [api-dev] How to tell a component the current XComponent?

2006-03-28 Thread Tobias Krais
Hi Andreas, I want to print the current document, but I don't know how to tell the component the XComponent the user used when clicking on the item of the menu. Can anybody tell me how to do this? If you implemented a ProtocolHandler (e.g. as part of an AddOn), which yes, I did so. is

Re: [api-dev] How to tell a component the current XComponent?

2006-03-28 Thread Mathias Bauer
Tobias Krais wrote: Hi together, I created my first component and have now a big problem: -%- private XComponent openDocument = null; [...] // Querying for the interface XPrintable on the loaded document XPrintable xPrintable = (XPrintable)

[api-dev] How to tell a component the current XComponent?

2006-03-27 Thread Tobias Krais
Hi together, I created my first component and have now a big problem: -%- private XComponent openDocument = null; [...] // Querying for the interface XPrintable on the loaded document XPrintable xPrintable = (XPrintable) UnoRuntime.queryInterface(XPrintable.class, openDocument);

Re: [api-dev] How to tell a component the current XComponent?

2006-03-27 Thread Andreas Schlüns
Tobias Krais wrote: Hi together, I created my first component and have now a big problem: -%- private XComponent openDocument = null; [...] // Querying for the interface XPrintable on the loaded document XPrintable xPrintable = (XPrintable)