To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=68511
                 Issue #|68511
                 Summary|TextCursor with numbered paragraph
               Component|api
                 Version|OOo 2.0.3
                Platform|PC
                     URL|
              OS/Version|Windows XP
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|jsc
             Reported by|noelson





------- Additional comments from [EMAIL PROTECTED] Thu Aug 10 17:48:15 -0700 
2006 -------
It seems that there's something wrong with text cursors at the begin of a 
numbered paragraph. Follow a few tests:

1) select the first word of a numbered paragraph and run this code:

sub test1
   oSel = thisComponent.getCurrentSelection()
   print oSel(0).getString()
   ' print numbers and word
end sub

2) with the view_cursor after the 1st character of the 1st word in a numbered 
paragraph, run this code:

sub test2
   oSel = thisComponent.getCurrentSelection()
   txtCur = oSel(0).getText().createTextCursorByRange(oSel(0))
   txtCur.goLeft(1,True)
   print txtCur.getString()
   ' print numbers AND char
end sub

3) with the view_cursor before the numbering:

sub test3
   oSel = thisComponent.getCurrentSelection()
   txtCur = oSel(0).getText().createTextCursorByRange(oSel(0))
   txtCur.goRight(1,True)
   print txtCur.getString()
   ' print numbering AND 1st char of 1st word
end sub

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

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


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

Reply via email to