Apache OpenOffice (AOO) Bugzilla – Issue 37766
AdvancedTextDocument should have a property to gain the PageCount
Last modified: 2013-02-24 21:07:58 UTC
Currently the css.text.AdvancedTextDocument only has properties to gain the Character-, Word- and ParagraphCount. The one for the PageCount is missing.
LineCount given from the writer core would be also more performant than gaining it by traveling line by line with the uno-api
For page count use the document has an interafce ::com::sun::star::view::XRenderable with a function getRendererCount (usually only used by PDF export) that returns the page count.
.
For both tasks have a look how the pdf export calculates the page count. For the line count, you can use SwEditShell::GetLineCount().
Fixed in CWS tl07. Files changed: offapi: - TextDocumentView.idl new revision: 1.7.136.1 sw: - unomap.hxx new revision: 1.47.24.1 - unoprnms.hxx new revision: 1.103.24.1 - unomap.cxx new revision: 1.170.24.1 - unoprnms.cxx new revision: 1.107.24.1 - unotxvw.hxx new revision: 1.9.44.1 - unotxvw.cxx new revision: 1.50.44.1
There are now the following properties available: - PageCount - LineCount - IsConstantSpellcheck - IsHideSpellMarks
The properties are available at the object SwXTextView that is the service "com.sun.star.text.TextDocumentView" and are documented in the respective IDL. re-open issue and try to reassign to sw@openoffice.org
try to reassign to sw@openoffice.org
try to reset resolution to FIXED
idl css.text.TextDocumentView has been adjusted and the properties work as expected => verified
ok in src680_m91 => closed