Issue 94332

Summary: RFE Get number of text lines in paragraph
Product: App Dev Reporter: rvojta
Component: apiAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: 3.3.0 or older (OOo)   
Target Milestone: ---   
Hardware: Unknown   
OS: All   
Issue Type: ENHANCEMENT Latest Confirmation in: ---
Developer Difficulty: ---

Description rvojta 2008-09-25 16:18:06 UTC
I can't get the number of text in paragraph via API in an easy way. It would be 
nice to have some function which can return the number of text lines in 
paragraph.

I can workaround it, but it's ugly ...

 - put view cursor at paragraph start, get Y position
 - go right
 - if Y position changes, increment number of lines
 - if paragraph changes, end

... but there are many cases where this approach doesn't work. I know that my 
paragraph is on one page only, so, it's enough, but it would be nice to have 
more general and easier way how to count lines.

Thread in dev@sw:

  http://sw.openoffice.org/servlets/ReadMsg?list=dev&msgNo=2175
Comment 1 rvojta 2008-09-25 16:18:55 UTC
s/number of text/number of text lines/g
Comment 2 jsc 2008-09-26 05:36:19 UTC
jsc -> tl: it's a RFE for the writer API
Comment 3 thomas.lange 2008-09-26 06:49:49 UTC
.