Thank you all for your replies.
My last question never got answered (the one about re-selecting a multi
selection), so I guess I should ask it again in a new thread and also do
more experiments on my own.
Johnny Andersson
2007/4/17, Mathias Bauer [EMAIL PROTECTED]:
Johnny Andersson wrote:
Johnny Andersson wrote:
In your example you go for an object directly:
ThisComponent.CurrentSelection(0).
In my example I do like this to obtain the same (?) thing:
ThisComponent.getCurrentSelection().getByIndex(0)
Simplified explanation: in Basic this is the same. In fact the first
variant
2007/4/17, Paolo Mantovani [EMAIL PROTECTED]:
Alle 00:31, martedì 17 aprile 2007, Johnny Andersson ha scritto:
I have a small problem that I just can't figure out at these late hours
(00:13 right now):
I have written a macro that reads highlighted text and replaces it with
something else
I was playing around a bit with the ThisComponent.CurrentSelection.getCount()
function and I found that when I had one selection,
ThisComponent.CurrentSelection.getCount() returned 1, but when I had more
than one selection (and I am still talking about Writer),
I am sorry to bother again. Actually, i made the whole thing to work
properly now.
However i ran into a new problem:
I modified the macro to make it possible to handle several selections. The
problem is, that when i restore the selection,
ThisComponent.CurrentController.select(oRange) in your
Am 17.04.2007 11:45 schrieb Johnny Andersson:
Is this what always happens or did I do something wrong?
I think no (twice).
I filed a issue:
http://api.openoffice.org/issues/show_bug.cgi?id=76449
Greetings MRoe
--
·-· cut here ·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-8·-·
Mathias Röllig wrote:
Am 17.04.2007 11:45 schrieb Johnny Andersson:
Is this what always happens or did I do something wrong?
I think no (twice).
I filed a issue:
http://api.openoffice.org/issues/show_bug.cgi?id=76449
Greetings MRoe
I replied to the issue, but I would have
I have a small problem that I just can't figure out at these late hours
(00:13 right now):
I have written a macro that reads highlighted text and replaces it with
something else (which is calculated by the macro).
To read the highlighted text I use ThisComponent.getCurrentSelection
Alle 00:31, martedì 17 aprile 2007, Johnny Andersson ha scritto:
I have a small problem that I just can't figure out at these late hours
(00:13 right now):
I have written a macro that reads highlighted text and replaces it with
something else (which is calculated by the macro).
To read the