Issue 23397 - API: sw.SwXTextCursor::XWordCursor
Summary: API: sw.SwXTextCursor::XWordCursor
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: stephan.wunderlich
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-10 12:48 UTC by stephan.wunderlich
Modified: 2013-02-24 21:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description stephan.wunderlich 2003-12-10 12:48:23 UTC
The method isEndOfWord returns false eventhough gotoEndOfWord was called previously.

Just execute the following macro to reproduce the behaviour.

oDoc = ThisComponent
oText = oDoc.Text
oCursor = oText.createTextCursor()

for i=0 to 3
 oText.insertString(oCursor, "" + (3 - i), false)

 for j=0 to 5
  oText.insertString(oCursor, "XTextCursor,XTextCursor", false)
  oText.insertString(oCursor, "The quick brown fox ", false)
  oText.insertString(oCursor, "jumps over the lazy dog ", false)
 next
 oText.insertControlCharacter(oCursor,
com.sun.star.text.ControlCharacter.PARAGRAPH_BREAK, false)
 oText.insertControlCharacter(oCursor,
com.sun.star.text.ControlCharacter.LINE_BREAK, false)
next

print "StartOfWord " + oCursor.gotoStartOfWord(false)
print "EndOfWord " + oCursor.gotoEndOfWord(false)
print "isEndOfWord "+oCursor.isEndOfWord()
Comment 1 thomas.lange 2003-12-16 11:30:20 UTC
.
Comment 2 thomas.lange 2004-02-03 07:01:28 UTC
When testing this one #i24098# (similiar issue with sentences fixed in CWS
i18n11) should best be tested also.
Comment 3 thomas.lange 2004-06-21 07:41:21 UTC
Fixed in CWS tleamisc.

Files changed:
offapi:
- XWordCursor.idl 1.8.6.1
sw:
- unoobj.cxx 1.74.26.3

Note: XSentenceCursor and XParagraphCursor should be changed similarly.
Comment 4 thomas.lange 2004-08-06 12:18:03 UTC
.
Comment 5 thomas.lange 2004-08-06 12:18:27 UTC
OK in CWS tleamisc.
Comment 6 stephan.wunderlich 2004-08-09 11:10:43 UTC
SW->TL: isEndOfWord still returns false
Comment 7 thomas.lange 2004-08-09 14:11:46 UTC
TL->SW: Because it is located in an empty paragraph...
Comment 8 stephan.wunderlich 2004-08-10 14:45:41 UTC
fixed in cws_tleamisc
Comment 9 stephan.wunderlich 2004-08-10 14:46:21 UTC
works as expected in cws_tleamisc => verified
Comment 10 stephan.wunderlich 2004-09-10 10:27:51 UTC
ok in src680_m52 => closed