Hi Jakob,

On 02.01.2007 14:56, Jakob Lechner wrote:

On Tue, 2007-01-02 at 12:23 +0100, Frank Meies - Sun Germany -
Development - Software Engineer wrote:
Change your code to use the SwSpecialPos stuff:

SwCrsrMoveState aTmpState( MV_SETONLYTEXT );
SwSpecialPos aSpecialPos;
aTmpState.pSpecialPos = &aSpecialPos;
GetLayout()->GetCrsrOfst( &aPos, aPt, &aTmpState )

After the call to GetCrsrOfst() aSpecialPos should contain the correct offset.

I did what you said but after the call to GetCrsrOfst()
"aSpecialPos.nCharOfst" is zero. Therefore I have read through the code
of that function but I haven't found the lines that modify the
aSpecialPos structure.

it looks like the SwSpecialPos has only been implemented for GetCharRect(), which basically is the inversion of GetCrsrOfst(), i.e. GetCharRect() converts a document position into a screen position. We can discuss this in detail next week when I'm back from holidays.

Regards,

Frank

--
Sun Microsystems GmbH      Frank Meies
http://www.sun.de          mailto:[EMAIL PROTECTED]

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

  • [sw-discussion... Jakob Lechner
    • Re: [sw-d... Frank Meies - Sun Germany - Development - Software Engineer
      • Re: [... Jakob Lechner
        • R... Frank Meies - Sun Germany - Development - Software Engineer

Reply via email to