| View previous topic :: View next topic |
| Author |
Message |
veru Power User

Joined: 09 Jul 2004 Posts: 80
|
Posted: Thu Oct 21, 2004 6:17 am Post subject: Positioning the ViewCursor |
|
|
Hi,
I'd like to set the visible Curser at a specific position inside a writer document, e. g. the beginning of the section called "mySection". The Service View Cursor only supports methods to go up/down left/right, but not to jump to a specific position like a bookmark or a text section. I can move the TextCursor to this positon, but is there a way to set the ViewCursor to the current position of the TextCursor?
thanks,
Verena |
|
| Back to top |
|
 |
JohnV Administrator

Joined: 07 Mar 2003 Posts: 8979 Location: Lexinton, Kentucky, USA
|
Posted: Thu Oct 21, 2004 10:15 am Post subject: |
|
|
| ViewCursor.gotoRange(TextCursor, false) |
|
| Back to top |
|
 |
pitonyak Administrator


Joined: 09 Mar 2004 Posts: 3618 Location: Columbus, Ohio, USA
|
Posted: Thu Oct 21, 2004 1:51 pm Post subject: |
|
|
you also may be able to tell the current controller to "select" certain things, if you are not satisfied with the correct solution provided by JohnV. _________________ --
Andrew Pitonyak
http://www.pitonyak.org/oo.php |
|
| Back to top |
|
 |
veru Power User

Joined: 09 Jul 2004 Posts: 80
|
Posted: Thu Oct 21, 2004 11:20 pm Post subject: |
|
|
Thank you, that is exacly what I need.
Verena |
|
| Back to top |
|
 |
|