Apache OpenOffice (AOO) Bugzilla – Issue 94332
RFE Get number of text lines in paragraph
Last modified: 2013-02-24 21:09:33 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
s/number of text/number of text lines/g
jsc -> tl: it's a RFE for the writer API
.