How to know the current viewed page and line in writer

Ptyl Dragon ptyl at cloudon.com
Mon Jul 22 08:47:15 PDT 2013


Hi
I looked into fdo#40465, but could not find any code snippets or something
similar i could integrate in my code.
Moreover, using XRays, i saw that getViewData returns the location and size
of the window, with respect to the desktop, and not the relative location
of the viewer, with respect to the document. The view data remains as is,
no matter which portion of the document i view. Moreover, the ZoomFactor
shows incorrect values, a fact which may be related with fro#40465.

Still, it is a fact, LibreOffice knows which portions of the document to
show.
So what component holds this data, and is it reachable via UNO?
If it is not reachable through UNO, what is the "closest component" which
is reachable through UNO, so that we could extend its UNO support, so to
provide us this data?


On Mon, Jul 22, 2013 at 2:33 PM, Winfried Donkers <
W.Donkers at dci-electronics.nl> wrote:

> Hi Ptyl,****
>
> ** **
>
> Bug fdo#40465 may give you (some) information you seek. There appears to
> be a problem in correctly calculating/getting the page in the viewer.****
>
> ** **
>
> HTH,****
>
> ** **
>
> ** **
>
> Winfried****
>
> ** **
>



-- 

[image: appicon.png]


*Ptyl Dragon*

Twitter <http://www.twitter.com/cloudoninc> |
LinkedIn<http://www.linkedin.com/company/cloudon>
 | Facebook <http://www.facebook.com/cloudoninc> |
Blog<http://site.cloudon.com/blog>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130722/6f43f8da/attachment.html>


More information about the LibreOffice mailing list