Issue 37766 - AdvancedTextDocument should have a property to gain the PageCount
Summary: AdvancedTextDocument should have a property to gain the PageCount
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: stephan.wunderlich
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-24 11:11 UTC by stephan.wunderlich
Modified: 2013-02-24 21:07 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description stephan.wunderlich 2004-11-24 11:11:17 UTC
Currently the css.text.AdvancedTextDocument only has properties to gain the
Character-, Word- and ParagraphCount. The one for the PageCount is missing.
Comment 1 stephan.wunderlich 2004-11-24 11:16:07 UTC
LineCount given from the writer core would be also more performant than gaining
it by traveling line by line with the uno-api
Comment 2 thomas.lange 2004-11-25 12:45:14 UTC
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.
Comment 3 thomas.lange 2004-11-29 14:02:31 UTC
.
Comment 4 frank.meies 2004-12-01 15:47:26 UTC
For both tasks have a look how the pdf export calculates the page count. For the
line count, you can use SwEditShell::GetLineCount().
Comment 5 thomas.lange 2004-12-13 14:20:51 UTC
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
Comment 6 thomas.lange 2004-12-13 14:21:57 UTC
There are now the following properties available:
- PageCount
- LineCount
- IsConstantSpellcheck
- IsHideSpellMarks
Comment 7 thomas.lange 2005-02-24 12:33:56 UTC
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
Comment 8 thomas.lange 2005-02-24 12:34:02 UTC
try to reassign to sw@openoffice.org
Comment 9 thomas.lange 2005-02-24 12:34:10 UTC
try to reset resolution to FIXED
Comment 10 stephan.wunderlich 2005-03-01 13:57:52 UTC
idl css.text.TextDocumentView has been adjusted and the properties work as
expected => verified
Comment 11 stephan.wunderlich 2005-04-06 11:05:40 UTC
ok in src680_m91 => closed