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

Assign a macro to the context menu

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


Joined: 29 Mar 2006
Posts: 70
Location: Toulouse - France

PostPosted: Wed Mar 29, 2006 4:19 am    Post subject: Assign a macro to the context menu Reply with quote

Hi,
I'd like to know if it's possible to assign an OpenOffice Writer's (2.0) macro to a command in the context menu (the one that appears whith a right click).

Thank you.
Back to top
View user's profile Send private message
SergeM
Super User
Super User


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

PostPosted: Wed Mar 29, 2006 8:03 am    Post subject: Reply with quote

For a start, have a look here :
Context Menu Intercepting http://www.oooforum.org/forum/viewtopic.phtml?t=26669
_________________
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
Gastiflex
Power User
Power User


Joined: 29 Mar 2006
Posts: 70
Location: Toulouse - France

PostPosted: Wed Mar 29, 2006 11:55 pm    Post subject: Reply with quote

Thank you Serge !
I've used this solution and it works.
http://codesnippets.services.openoffice.org/Office/Office.ContexMenuInterceptor.snip
Back to top
View user's profile Send private message
SergeM
Super User
Super User


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

PostPosted: Thu Mar 30, 2006 11:22 am    Post subject: Reply with quote

You are welcome.
I bilieved it was only for a start but surpisingly see it resolves you problem.
_________________
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
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