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

Create textCursor in the Basic-IDE

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


Joined: 01 Aug 2004
Posts: 18
Location: germany

PostPosted: Tue Nov 02, 2004 1:01 am    Post subject: Create textCursor in the Basic-IDE Reply with quote

It is possible to create a textcursor in the Basic-IDE? I will read and write the Basic-Code of a macro with another macro.

Stephan
Back to top
View user's profile Send private message
SergeM
Super User
Super User


Joined: 09 Sep 2003
Posts: 3211
Location: Troyes France

PostPosted: Tue Nov 02, 2004 9:33 am    Post subject: Reply with quote

Sorry no good answer.
The only thing I know, it is possible to access to OOBasic container and then add modules and so on. But getting in text module, I don't know. I only say : probably yes.
_________________
Linux & Windows OOo3.0
UNO & C++ : WIKI
http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
In French
http://wiki.services.openoffice.org/wiki/Documentation/FR/Cpp_Guide
Back to top
View user's profile Send private message Visit poster's website
Stephan_02
General User
General User


Joined: 01 Aug 2004
Posts: 18
Location: germany

PostPosted: Tue Nov 02, 2004 11:22 am    Post subject: Reply with quote

Quote:
it is possible to access to OOBasic container and then add modules and so on

yes, thats clear

What i need is a solution to locate in which macro is (or stands) the visible Cursor in the Basic-IDE (i need the name of the macro).
My idea was when i can create a textcursor i can interate the Basic-code from line to line and so i can found the line which begin with "sub" ...
Back to top
View user's profile Send private message
Cybb20
Super User
Super User


Joined: 02 Mar 2004
Posts: 1569
Location: Frankfurt, Germany

PostPosted: Tue Nov 02, 2004 3:04 pm    Post subject: Reply with quote

No you cannot do it in the IDE, I think.
But you can parse the xml files, that are contained in OOO_path/user/basic/<yourlib>/<yourmodule>.xba

Hope this helps

Christian
_________________
- Knowledge is Power -
Back to top
View user's profile Send private message Send e-mail
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