redlines for pyuno

Miklos Vajna vmiklos at suse.cz
Thu Aug 8 00:10:08 PDT 2013


On Thu, Aug 08, 2013 at 01:00:28AM -0400, Andrew Douglas Pitonyak <andrew at pitonyak.org> wrote:
> If I had to determine if the cursor was currently in a redline
> section, my first guess at a solution would probably be to go
> looking for redlines in the text object containing the view cursor
> and then check the start and end point of each redline to see if it
> contains the cursor. Feels like a bad solution to me (as in it is
> probably slow), but it is the best that comes to my mind (assuming I
> understand your question correctly).

Just curious: let's say the document is trivially short, you have a
cursor position start (so you have only a point) as text::XTextRange,
how do you determine if that's inside a given text portion?

Thanks,

Miklos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130808/127a53f0/attachment.pgp>


More information about the LibreOffice mailing list