OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Positioning the ViewCursor

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
veru
Power User
Power User


Joined: 09 Jul 2004
Posts: 80

PostPosted: Thu Oct 21, 2004 6:17 am    Post subject: Positioning the ViewCursor Reply with quote

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
View user's profile Send private message
JohnV
Administrator
Administrator


Joined: 07 Mar 2003
Posts: 8979
Location: Lexinton, Kentucky, USA

PostPosted: Thu Oct 21, 2004 10:15 am    Post subject: Reply with quote

ViewCursor.gotoRange(TextCursor, false)
Back to top
View user's profile Send private message
pitonyak
Administrator
Administrator


Joined: 09 Mar 2004
Posts: 3618
Location: Columbus, Ohio, USA

PostPosted: Thu Oct 21, 2004 1:51 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address
veru
Power User
Power User


Joined: 09 Jul 2004
Posts: 80

PostPosted: Thu Oct 21, 2004 11:20 pm    Post subject: Reply with quote

Thank you, that is exacly what I need.
Verena
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group