<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"> Ptyl ,<br>
      <br>
      the secret is the vieuwcursor object who can tel you where you are
      in the document , page,or X-Y position etc...<br>
      <br>
      For basic code :<br>
      <br>
          oDoc =  ThisComponent<br>
          oText = oDoc.getText()<br>
          oCursor = oDoc.CurrentController.getViewCursor()<br>
          oCursor.gotoRange(oCursor.getEnd(), false)<br>
      <br>
      greetz<br>
      <br>
      Fernand<br>
    </div>
    <blockquote
cite="mid:CABJiMPmO-wiMmcMcWXm0dX4Pam1ntUgqtz2gKduRg6=amAGa4A@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>Hello<br>
              <br>
              We would like to implement a new GUI element (for mobile),
              so to show the current viewed location in writer. <br>
              <br>
              For this, we need to know:<br>
              <br>
            </div>
            <div>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) <br>
            </div>
            <div>2. How many lines there are in total, in the writer
              document</div>
            <br>
          </div>
          What is the simplest way to get this information? <br>
          is it available through UNO, and if not, how can we attain it?<br>
          <br>
        </div>
        <div>
          Additionally, as a fallback, we would like to simply to know
          which page writer is showing, and how many pages there are in
          total. <br>
          What is the simplest way to get this data?<br>
          <br>
        </div>
        <div>If there are no already existing accessors for this
          information, can you please direct me to methods and files to
          hack into or modify to get this data?<br>
        </div>
        <div><br>
        </div>
        <div>Thank you in advance<br>
          <br>
          Ptyl<br>
        </div>
      </div>
      <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>
  </body>
</html>