Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | AdvancedTextDocument should have a property to gain the PageCount | ||
---|---|---|---|
Product: | App Dev | Reporter: | stephan.wunderlich |
Component: | api | Assignee: | stephan.wunderlich |
Status: | CLOSED FIXED | QA Contact: | issues@api <issues> |
Severity: | Trivial | ||
Priority: | P3 | CC: | issues |
Version: | 3.3.0 or older (OOo) | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Latest Confirmation in: | --- |
Developer Difficulty: | --- |
Description
stephan.wunderlich
2004-11-24 11:11:17 UTC
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 |