To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=66141
                  Issue #:|66141
                  Summary:|gotoEndofWord, isEndofWord misbehavior with footnote
                          |anchor
                Component:|api
                  Version:|OOo 2.0.2
                 Platform:|PC
                      URL:|
               OS/Version:|Windows 2000
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|jsc
              Reported by:|untel





------- Additional comments from [EMAIL PROTECTED] Mon Jun  5 16:51:02 -0700 
2006 -------
In a Write document, if a word is followed by a footnote anchor, the method
gotoEndofWord() returns FALSE. Related to this, if the cursor is placed at the
end of that word, the method isEndofWord() also returns FALSE.

To reproduce this, create a Write document with some words. At the end of one
word, insert a footnote. Then place your cursor within that word.

Use the following macro:

Sub Main
  oDoc = thiscomponent
  oVCursor = oDoc.getCurrentController().getViewCursor()
  oText = oVCursor.getText()
  mySelection = oText.createTextCursorByRange (oVCursor.getstart())
  msgbox "isEndOfWord= " + mySelection.isEndofword()
  msgbox "gotoEndofWord= " + mySelection.gotoEndOfWord(TRUE)
End Sub

Upon execution, the second message shows that gotoEndOfWord returns FALSE (using
gotoEndOfWord(FALSE) does the same).
If now you put the cursor at the end of that word, just before the footnote
anchor, executing the macro shows both methods return FALSE.
(Putting the cursor after the footnote anchor also gives isEndofWord=FALSE)

The same tests executed on words not followed by footnote anchors give the
expected appropriate behavior.

(If the footnote is within a word -- who would do that!? -- the method is
working; in fact, it works if a period, letter or number is inserted after the
footnote. But doesn't work if a comma or semi-colon is after the footnote. I had
these details in the hope it could help pinpoint the problem.)


There was a similar issue here by andrewb, but which involved smart quotes:
http://www.openoffice.org/issues/show_bug.cgi?id=12036
It was closed in March 2004.

---------------------------------------------------------------------
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