| View previous topic :: View next topic |
| Author |
Message |
vv0s General User

Joined: 16 Mar 2006 Posts: 21
|
Posted: Mon May 22, 2006 2:52 am Post subject: How to do "Deselect" in Writer? |
|
|
I notice there is a dispatch command for calc, however, seems it doesn't fit for writer
does any one get idea of that? thanks! |
|
| Back to top |
|
 |
JohnV Administrator

Joined: 07 Mar 2003 Posts: 8984 Location: Lexinton, Kentucky, USA
|
Posted: Mon May 22, 2006 10:19 am Post subject: |
|
|
| What are you trying to deselect - text, frame, graphic, etc? |
|
| Back to top |
|
 |
vv0s General User

Joined: 16 Mar 2006 Posts: 21
|
Posted: Mon May 22, 2006 10:26 am Post subject: |
|
|
Actually whatever...
If it's a shape, then deselect that shape, if it's a graphic, then deselect it as well...
What I want to achieve is just to make the text view cursor positioning at the text string...
is there any elegant method to do that?
| Code: | | XDispatchHelper.executeDispatch(XDispatchProvider, ".uno:Escape", "", 0, null); |
This one seems can work, which I think is quite ugly also... |
|
| Back to top |
|
 |
JohnV Administrator

Joined: 07 Mar 2003 Posts: 8984 Location: Lexinton, Kentucky, USA
|
Posted: Mon May 22, 2006 10:50 am Post subject: |
|
|
| If it is just text then you can do something like ViewCursor.collapseToEnd or Start. If an object or frame I think you are stuck with "uno:Escape" and it may take more than one. From inside a frame takes at least two - the first selects the frame and the second jumps back into the text. |
|
| Back to top |
|
 |
|