Joel Cordeiro wrote:
Hi,
i already solved it. Now i have another doubt. I would like to replace the
selected text of the document with another text. How can i do that? I saw
some examples about replace all the ocurrence of a string with another
string, but what i want is just replace the selecte
Joel Cordeiro wrote (4-10-2008 1:51)
Hi,
i already solved it. Now i have another doubt. I would like to replace the
selected text of the document with another text. How can i do that? I saw
some examples about replace all the ocurrence of a string with another
string, but what i want is just rep
Hi,
i already solved it. Now i have another doubt. I would like to replace the
selected text of the document with another text. How can i do that? I saw
some examples about replace all the ocurrence of a string with another
string, but what i want is just replace the selected string in the documen
Hi Joel,
Joel Cordeiro escribió:
Hi,
does anyone could help me about how to get the selected text in the actual
TextDocument (Writer)? How does we cast the returned object in the method
getCurrentSelection() ? Or there is another way?
basically, you have to check if the object returned by
ge
Joel Cordeiro wrote:
in basic
oDocument = ThisComponent
if
oDocument.getCurrentSelection.SupportsService("com.sun.star.text.TextRanges")
then
oSelections = oDocument.getCurrentSelection
sSelection = oSelections.getByIndex(0).getString()
elseif
oDocument.getCurrentSelection.SupportsS
Joel Cordeiro wrote:
> does anyone could help me about how to get the selected text in the actual
> TextDocument (Writer)? How does we cast the returned object in the method
> getCurrentSelection() ? Or there is another way?
> If possible, a simple example would be really nice..
>
You could look
Hi,
does anyone could help me about how to get the selected text in the actual
TextDocument (Writer)? How does we cast the returned object in the method
getCurrentSelection() ? Or there is another way?
If possible, a simple example would be really nice..
Regards,
Joel Filipe Antunes Cordeiro
[EM