On Wed, Sep 10, 2008 at 6:38 PM, Frank Meies <[EMAIL PROTECTED]> wrote:

Hi Frank,

> well, I only wanted to give an idea what *might* work (or not ;-) without
> actually having a solution at hand. The XViewCursor has a goDown() method
> but if you cannot use the view cursor I'm afraid I have to throw in the
> towel...

I tried it in more complicated way and it works.

 - select paragraph's start (to move text view cursor)
 - save text view cursor Y position
 - select paragraph's end (to move text view cursor)
 - compare text view cursor Y position with the saved one

If Y values differs, it has more than one line otherwise only one.
Which is enough for now, because I want to know if it has one or two
lines.

I'll try to look at goDown() of XViewCursor to calculate correct
number of lines.

Thanks for your time,

-- 
Robert Vojta

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to