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
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
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,