I would like to be able to show the current view cursor position in the
status bar.
Instead of the Point struct which returns the cursors position relative
to the top left of the first page, I would like to return how many
characters from the left edge and how many lines down the page.

If anyone has suggestions on how I can solve this problem I would be
very grateful.

Questions that might help me to solve this problem:

In 1.9.74 I can't change the statusIndicator with the following code,
which works 1.1.4. Is this a bug or policy change?

oStatus = ThisComponent.CurrentController.Frame.createStatusIndicator
oStatus.setText("Hello World")


In a Writer document the SelectionChangeListener only appears to fire
when the cursor changes to a new "word" when using the keyboard - is
this the way that it is supposed to work?

Is there a way of having a second ViewCursor in a Writer document other
than having a new window?

How does one create, via the API, a new window of ThisComponent?
Is it possible to have this window hidden, and the ViewCursor still
work?

The following code (tested in OOo1.14 for Linux) gets called each time
the SelectionChangeListener fires. The text between the old ViewCursor
location and the new ViewCursor location ends up being selected but I
can't see why? To me it should just return the ViewCursor to the new
location.

ThisComponent.CurrentController.RemoveSelectionChangeListener(IannzSelectionListener)
oVC = ThisComponent.CurrentController.ViewCursor
oCursor = oVC.text.createTextCursorByRange(oVC)
oVC.gotoStartOfLine(true)
x = len(oVC.string)
oVC.gotoRange(oCursor, false)
ThisComponent.CurrentController.AddSelectionChangeListener(IannzSelectionListener)

Thanks, Ian Laurenson


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to