[api-dev] Exported Interface of Selection

2005-06-13 Thread Liao Yu
Hi, When I tried to query an XTextRange interface from an any- type Selection returned by XModel.getCurrentSelection(), I always got a null pointer. I also tried other interfaces such as XText, but none of them worked. So I've been wondering if I could query Interfaces from the Selection via

Re: [api-dev] Exported Interface of Selection

2005-06-13 Thread Mathias Bauer
Liao Yu wrote: Hi, When I tried to query an XTextRange interface from an any- type Selection returned by XModel.getCurrentSelection(), I always got a null pointer. I also tried other interfaces such as XText, but none of them worked. So I've been wondering if I could query Interfaces from

Re: [api-dev] Exported Interface of Selection

2005-06-13 Thread Liao Yu
Hi Stephan, mmm ... XModel is no XSelectionSupplier and so won't have a current Selection. From the XModel you can get the currentController and this will support a XSelectionSupplier ... pseudo code might be Actually I got XModel.getCurrentSelection() from P389 and P391 of Developer's Guide,