How to know the current viewed page and line in writer

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

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
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> 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 <> |
 | Facebook <> |
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the LibreOffice mailing list