Issue 94332 - RFE Get number of text lines in paragraph
Summary: RFE Get number of text lines in paragraph
Status: CONFIRMED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: Unknown All
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-25 16:18 UTC by rvojta
Modified: 2013-02-24 21:09 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
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
.