<div dir="ltr">thanks!<div>still, this gives the page of the cursor, not the page of the viewer, which when scrolling, can be different</div><div>from what i could see XViewDataSupplier does not have this data</div><div>
<br></div><div>we want this data to implement a location indicator similar to that on iOS browsers, on the iOS app, using iOS UI controls. </div><div>Is it possible to extract this data from the libreoffice VCL scrollbar elements using UNO, instead of calculating it ourselves?<br>


</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 17, 2013 at 10:18 AM, Miklos Vajna <span dir="ltr"><<a href="mailto:vmiklos@suse.cz" target="_blank">vmiklos@suse.cz</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div><br>
On Tue, Jul 16, 2013 at 07:59:43PM +0300, Ptyl Dragon <<a href="mailto:ptyl@cloudon.com" target="_blank">ptyl@cloudon.com</a>> wrote:<br>
> 1. Which line the writer GUI is currently showing (which may be different<br>
> from the line the caret / cursor is on - such as when scrolling, for<br>
> example)<br>
<br>
</div>The GUI is typically showing an area of the document, which is more a<br>
rectangle than a given set of lines. You can use<br>
document::XViewDataSupplier to read/write that data:<br>
<br>
<a href="http://api.libreoffice.org/docs/common/ref/com/sun/star/document/XViewDataSupplier.html" target="_blank">http://api.libreoffice.org/docs/common/ref/com/sun/star/document/XViewDataSupplier.html</a><br>
<div><br>
> 2. How many lines there are in total, in the writer document<br>
<br>
</div>Isn't that available as part of the document stats?<br>
<div><br>
> Additionally, as a fallback, we would like to simply to know which page<br>
> writer is showing, and how many pages there are in total.<br>
<br>
</div>See<br>
<br>
<a href="http://opengrok.libreoffice.org/xref/core/sw/qa/extras/inc/swmodeltestbase.hxx#getPages" target="_blank">http://opengrok.libreoffice.org/xref/core/sw/qa/extras/inc/swmodeltestbase.hxx#getPages</a><br>
<br>
on how to get the number of pages using UNO.<br>
<span><font color="#888888"><br>
Miklos<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">
        <table border="0" cellpadding="0" cellspacing="0" style="font-family:arial;font-size:small">
                <tbody>
                        <tr>
                                <td style="width:51pt;padding:0.75pt" width="68">
                                        <p style="margin-right:0.4pt;margin-bottom:0.0001pt;margin-left:0.4pt">
                                                <a name="14005d76e5aaa034_SafeHtmlFilter_SafeHtmlFilter_13ed1a8c2f9e26a1__MailAutoSig" style="color:rgb(17,85,204)"></a><span style="font-size:9pt;font-family:Helvetica,sans-serif"><img alt="appicon.png" height="63" src="http://site.cloudon.com/wp-content/uploads/2012/05/appicon.png" width="64"></span></p>



                                </td>
                                <td>
                                         </td>
                                <td style="width:207pt;padding:0.75pt" width="276">
                                        <p style="margin-right:0.4pt;margin-bottom:0.0001pt;margin-left:0.4pt">
                                                <strong>Ptyl Dragon</strong><br>
                                                <br>
                                                <a href="http://www.twitter.com/cloudoninc" style="color:rgb(17,85,204)" target="_blank"><span style="font-size:10pt;font-family:Helvetica,sans-serif;color:rgb(148,201,71);text-decoration:none">Twitter</span></a><span style="font-size:11.5pt;font-family:Helvetica,sans-serif"> </span><span style="font-size:10pt;font-family:Helvetica,sans-serif;color:rgb(102,102,102)">|</span><span style="font-size:11.5pt;font-family:Helvetica,sans-serif"> </span><a href="http://www.linkedin.com/company/cloudon" style="color:rgb(17,85,204)" target="_blank"><span style="font-size:10pt;font-family:Helvetica,sans-serif;color:rgb(148,201,71);text-decoration:none">LinkedIn</span></a><span style="font-size:10pt;font-family:Helvetica,sans-serif;color:rgb(102,102,102)"> |</span><span style="font-size:11.5pt;font-family:Helvetica,sans-serif"> </span><a href="http://www.facebook.com/cloudoninc" style="color:rgb(17,85,204)" target="_blank"><span style="font-size:10pt;font-family:Helvetica,sans-serif;color:rgb(148,201,71);text-decoration:none">Facebook</span></a><span style="font-size:11.5pt;font-family:Helvetica,sans-serif"> </span><span style="font-size:10pt;font-family:Helvetica,sans-serif;color:rgb(102,102,102)">|</span><span style="font-size:11.5pt;font-family:Helvetica,sans-serif"> </span><a href="http://site.cloudon.com/blog" style="color:rgb(17,85,204)" target="_blank"><span style="font-size:10pt;font-family:Helvetica,sans-serif;color:rgb(148,201,71);text-decoration:none">Blog</span></a></p>



                                </td>
                        </tr>
                </tbody>
        </table>
        <table border="0" cellpadding="0" cellspacing="0">
                <tbody>
                        <tr>
                                <td style="width:51.0pt;padding:.75pt .75pt .75pt .75pt" width="68">
                                         </td>
                                <td style="width:207.0pt;padding:.75pt .75pt .75pt .75pt" width="276">
                                        <p style="margin-top:0in;margin-right:.4pt;margin-bottom:0in;margin-left:.4pt;margin-bottom:.0001pt">
                                                 </p>
                                </td>
                        </tr>
                </tbody>
        </table>
</div>
<br>
</div></div>