How to know the current viewed page and line in writer

Fernand Vanrie sos at pmgroup.be
Wed Jul 24 00:12:17 PDT 2013


  Ptyl ,

as told before, you find all position information in the viewcursor object
> 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 <mailto: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
>
>
>
>
> -- 
>
> 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>
>
> 	
>
>
>
>
> _______________________________________________
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130724/833639cf/attachment.html>


More information about the LibreOffice mailing list