Issue 23396 - API: sw.SwXTextCursor::XSentenceCursor
Summary: API: sw.SwXTextCursor::XSentenceCursor
Status: ACCEPTED
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: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-10 12:31 UTC by stephan.wunderlich
Modified: 2013-02-24 21:08 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:31:54 UTC
The method isEndOfSentence() returns false even if one used the method
gotoEndOfSentence previously.

To reproduce this behaviour execute the following macro.

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

oCursor.setString("Just a little sentence")
oText.insertControlCharacter(oCursor,
com.sun.star.text.ControlCharacter.PARAGRAPH_BREAK, false)
oText.insertControlCharacter(oCursor,
com.sun.star.text.ControlCharacter.LINE_BREAK, false)

oCursor.gotoStartOfSentence(false)
print oCursor.isStartOfSentence()

oCursor.gotoEndOfSentence(false)
print oCursor.isEndOfSentence()
Comment 1 thomas.lange 2003-12-16 11:25:21 UTC
.
Comment 2 chne 2004-06-17 10:54:58 UTC
tl/cn: office later