Hi Frank,
Frank Meies - Sun Germany - Development - Software Engineer wrote:
Hi Giuseppe,
On 06/02/07 19:31, Giuseppe Castagno wrote:
I'm trying to work out a patch for issue 39977, and I have the
following question:
How can I obtain a Point object suitable to be used in
SwCrsrShell::SetCrsr() method, starting from a SwTextnode object?
I guess it's somehow layout related, but I couldn't find a suitable
example to be used or to examine.
Before to reinvent the wheel I thought to ask if there is already some
code to do the job, usable from inside SwEditShell.
in order to fix this issue I guess you have to set the current cursor
position in SwFEShell::InsertLabel() to the end of the paragraph
containing the label text and avoid the call of SelectFlyFrm(). This
should be done depending on a new parameter which has to be added to the
function signature.
that's what I have in mind.
When the program flow is from AutoCaption, instead of selecting the
frame containing the object, go to the end of the only paragraph inside it.
My problem is this is the first time I look into the guts of Writer core
code, and I have no idea what is the correct way to set the visual
cursor at the end of a paragraph, having available the internal text node.
Any hint where to look for a similar code sequence? Or more simply the
method(s) that can be used from SwFEShell class to position the visual
cursor. Then with LXR and doxygen I'll look into it myself.
--
Kind Regards,
Giuseppe
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]