I made a macro a while ago that converts some common special
characters to their html entity form, or whatever to call it. However,
my macro converts the whole document. I want it to convert only the
current selection.

Here is the line that creates the replace descriptor:
oReplace = ThisComponent.createReplaceDescriptor()

This line does not work, because there is no such method:
oReplace = 
ThisComponent.getCurrentController().getSelection().createReplaceDescriptor()

So is this possible at all?
Shouldn't it be?
It is, right? But how?

Regards

Johnny Rosenberg

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to