List Info

Thread: Sorting of XTextRanges




Sorting of XTextRanges
user name
2007-10-22 07:15:00
Hi,

I have to sort a number of XTextRanges according to their
visual
representation. Is there a smarter way than jumping to each
range with
the XViewCursor and putting it's position in a sortable
array(list)?

Regards

Peter

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesw.openoffice.org
For additional commands, e-mail: dev-helpsw.openoffice.org


Re: Sorting of XTextRanges
user name
2007-10-23 01:16:31
Peter Eberlein wrote:
> Hi,
> 
> I have to sort a number of XTextRanges according to
their visual
> representation. Is there a smarter way than jumping to
each range with
> the XViewCursor and putting it's position in a sortable
array(list)?
> 
Hi,
as an XTextRange doesn't know about it's layout position
there's no 
other way than getting this position with an XViewCursor.

Regards,
Oliver

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesw.openoffice.org
For additional commands, e-mail: dev-helpsw.openoffice.org


Re: Sorting of XTextRanges
user name
2007-10-23 01:28:56
Thanks Oliver,

Regards Peter


Oliver Specht - Sun Germany -Hamburg schrieb:
> Peter Eberlein wrote:
>> Hi,
>>
>> I have to sort a number of XTextRanges according to
their visual
>> representation. Is there a smarter way than jumping
to each range with
>> the XViewCursor and putting it's position in a
sortable array(list)?
>>
> Hi,
> as an XTextRange doesn't know about it's layout
position there's no 
> other way than getting this position with an
XViewCursor.
> 
> Regards,
> Oliver
> 
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: dev-unsubscribesw.openoffice.org
> For additional commands, e-mail: dev-helpsw.openoffice.org
> 


------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesw.openoffice.org
For additional commands, e-mail: dev-helpsw.openoffice.org


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )