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

Problem creating an add-on

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


Joined: 21 Jul 2004
Posts: 564
Location: Århus, Denmark

PostPosted: Thu Oct 05, 2006 6:01 am    Post subject: Problem creating an add-on Reply with quote

Hello,

I'm trying to create a simple add-on using the Add-on Installer tool, but I just can't make it work. The final .zip package installs fine and adds the specified menu items, but selecting the menu item doesn't lauch the assigned macro. I wonder whether our forum's gurus could take a look at it? Here is the file:

http://www.nothickmanuals.info/basket/WordNet.zip

Thank you!

Kind regards,
Dmitri
_________________
http://code.google.com/p/writertools/
Back to top
View user's profile Send private message Visit poster's website
B Marcelly
Super User
Super User


Joined: 12 May 2004
Posts: 1453
Location: France

PostPosted: Thu Oct 05, 2006 10:34 am    Post subject: Reply with quote

Read again chapter 2.1 of the HowTo of Addon Tool.
Your code was in module WordNet and you transfered only it. This is incorrect.

You should have a library WordNet, with your module named anything else.
Then transfer the whole directory, not the module.

In your addon.xcu your URL is incorrect. You just have to use the tool dialog and fill the module name and the macro name. The tool will do the rest.

By the way, installation with OOo 2.0.x is much simpler for a single user. Use Tools > Package manager.
Back to top
View user's profile Send private message Visit poster's website
Lazy-legs
Super User
Super User


Joined: 21 Jul 2004
Posts: 564
Location: Århus, Denmark

PostPosted: Thu Oct 05, 2006 12:36 pm    Post subject: Reply with quote

Hi B Marcelly,

Ah, of course! Everything works like a charm now. Thank you very much!

Kind regards,
Dmitri
_________________
http://code.google.com/p/writertools/
Back to top
View user's profile Send private message Visit poster's website
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