Hi Rajeev,
Rajeev J Sebastian wrote:
I did go through the area where Lange had mentioned the cursor code was
handled. Didn't find anything interesting there. Could you point out where
the the text width is computed for a range of characters ?
please have a look at sw/source/core/txtnode/fntcache.cxx, there you
will find the function SwFntObj::GetTextSize(). This function is used to
- calculate the text width for the text formatting
- calculate the cursor position.
An introduction to the Writer text formatting engine (including the
cursor travelling stuff) can be found here:
http://sw.openoffice.org/drafts/text_formatting.html
Hope this helps,
Frank
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]