Re: [dev] how to select a paragraph

2006-07-17 Thread Sascha Jensen
Mohammad Alhammouri schrieb: You can install an XSelectionChangeListener. This will notify you whenever selection changes. Inside the listener you can use the principle demostrated in the script xsel = thiscomponent.currentcontroller.getselection xrange = xsel(0) xcur = thiscomponent.gettext

Re: [dev] how to select a paragraph

2006-07-16 Thread Mohammad Alhammouri
Frank thanks for ur help, I think my Q wasnt that clear. I use java for programming so I want to get that text through java code. I'm integrating OO with another system and I use it to create documents and apply some operations on it. On 7/17/06, Frank Meies <[EMAIL PROTECTED]> wrote: Hi Moh

Re: [dev] how to select a paragraph

2006-07-16 Thread Frank Meies
Hi Mohammad, On 07/17/06 05:56, Mohammad Alhammouri wrote: Is there any way that I can capture the text of a paragraph if the user only clicks anywhere inside that paragraph. can I specify the boundaries of that paragraph and capture the text of that paragraph ?? this litte macro displays th

[dev] how to select a paragraph

2006-07-16 Thread Mohammad Alhammouri
Hello, Is there any way that I can capture the text of a paragraph if the user only clicks anywhere inside that paragraph. can I specify the boundaries of that paragraph and capture the text of that paragraph ?? thanks -- Mohammad.