Lívio Cipriano wrote:
On 10 April 2007 03:50, Andrew Douglas Pitonyak wrote: CharacterCount, ParagraphCount, and WordCount you can get directly from
 the document.

Hi Andrew,

But in Writer File->Properties->Statistics, it gives the TOTAL Number of Lines in a documents - after you Update - so, must exist a variable that holds this data.
As I state above, you must get it from the current controller:

ThisComponent.currentController.LineCount


The model contains the data. You can identify characters, words, and paragraphs from the data model. You can not know the line number at a point, page number at a point, number of lines, or number of pages without rendering. Therefore, to ask these questions, you must ask the view, not the model. Similar for current selection or cursor position, the model can not know this, only the view knows this.

--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to