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
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 th
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
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedes
thanks!
still, this gives the page of the cursor, not the page of the viewer, which
when scrolling, can be different
from what i could see XViewDataSupplier does not have this data
we want this data to implement a location indicator similar to that on iOS
browsers, on the iOS app, using iOS UI con
Ptyl ,
the secret is the vieuwcursor object who can tel you where you are in
the document , page,or X-Y position etc...
For basic code :
oDoc = ThisComponent
oText = oDoc.getText()
oCursor = oDoc.CurrentController.getViewCursor()
oCursor.gotoRange(oCursor.getEnd(), false)
g
Does not really answer your question, but:
MsgBox "PageCount = " & ThisComponent.CurrentController.PageCount &
CHR$(10) & _
"LineCount = " & ThisComponent.CurrentController.LineCount &
CHR$(10) & _
"Current Page = " & ThisComponent.CurrentController.ViewCursor.Page
In AndrewMacro.
Hi,
On Tue, Jul 16, 2013 at 07:59:43PM +0300, Ptyl Dragon wrote:
> 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)
The GUI is typically showing an area of the document, which is more a
rec
Hello
We would like to implement a new GUI element (for mobile), so to show the
current viewed location in writer.
For this, we need to know:
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)
2.