<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Does not really answer your question, but:<br>
<br>
MsgBox "PageCount = " &
ThisComponent.CurrentController.PageCount & CHR$(10) & _<br>
"LineCount = " & ThisComponent.CurrentController.LineCount
& CHR$(10) & _<br>
"Current Page = " &
ThisComponent.CurrentController.ViewCursor.Page<br>
<br>
In AndrewMacro.odt, look for a section titled "Where is the Display
Cursor?", which also does not answer your question, but it might be
useful.<br>
<br>
<div class="moz-cite-prefix">On 07/17/2013 03:18 AM, Miklos Vajna
wrote:<br>
</div>
<blockquote cite="mid:20130717071824.GB5905@suse.cz" type="cite">
<pre wrap="">Hi,
On Tue, Jul 16, 2013 at 07:59:43PM +0300, Ptyl Dragon <a class="moz-txt-link-rfc2396E" href="mailto:ptyl@cloudon.com"><ptyl@cloudon.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">1. Which line the writer GUI is currently showing (which may be different
from the line the caret / cursor is on - such as when scrolling, for
example)
</pre>
</blockquote>
<pre wrap="">
The GUI is typically showing an area of the document, which is more a
rectangle than a given set of lines. You can use
document::XViewDataSupplier to read/write that data:
<a class="moz-txt-link-freetext" href="http://api.libreoffice.org/docs/common/ref/com/sun/star/document/XViewDataSupplier.html">http://api.libreoffice.org/docs/common/ref/com/sun/star/document/XViewDataSupplier.html</a>
</pre>
<blockquote type="cite">
<pre wrap="">2. How many lines there are in total, in the writer document
</pre>
</blockquote>
<pre wrap="">
Isn't that available as part of the document stats?
</pre>
<blockquote type="cite">
<pre wrap="">Additionally, as a fallback, we would like to simply to know which page
writer is showing, and how many pages there are in total.
</pre>
</blockquote>
<pre wrap="">
See
<a class="moz-txt-link-freetext" href="http://opengrok.libreoffice.org/xref/core/sw/qa/extras/inc/swmodeltestbase.hxx#getPages">http://opengrok.libreoffice.org/xref/core/sw/qa/extras/inc/swmodeltestbase.hxx#getPages</a>
on how to get the number of pages using UNO.
Miklos
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LibreOffice mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/libreoffice">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Andrew Pitonyak
My Macro Document: <a class="moz-txt-link-freetext" href="http://www.pitonyak.org/AndrewMacro.odt">http://www.pitonyak.org/AndrewMacro.odt</a>
Info: <a class="moz-txt-link-freetext" href="http://www.pitonyak.org/oo.php">http://www.pitonyak.org/oo.php</a>
</pre>
</body>
</html>