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

Capturing paste event in Writer

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


Joined: 11 May 2007
Posts: 15

PostPosted: Sun May 13, 2007 4:41 am    Post subject: Capturing paste event in Writer Reply with quote

Hi, all,

I would like to capture the paste text event to do something with the copyied text,
say, transform it into hyperlink.

Is it possible in OO? I guess, that can be done throught an action listener, but I cannot find a proper one..

cheers,
vol
Back to top
View user's profile Send private message
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10106
Location: Germany

PostPosted: Mon May 14, 2007 12:28 pm    Post subject: Reply with quote

Have a look at chapter 4.4. "Intercept menu commands using Basic" in http://www.pitonyak.org/AndrewMacro.odt
and search the snippets-forum for "DataFlavor".
_________________
Rest in peace, oooforum.org
Get help on https://forum.openoffice.org
Back to top
View user's profile Send private message
vol
General User
General User


Joined: 11 May 2007
Posts: 15

PostPosted: Wed May 16, 2007 6:12 am    Post subject: Reply with quote

Thanks for quick and comprehensive reply!
Back to top
View user's profile Send private message
vol
General User
General User


Joined: 11 May 2007
Posts: 15

PostPosted: Thu May 17, 2007 3:05 am    Post subject: Reply with quote

Quote:

Have a look at chapter 4.4. "Intercept menu commands using Basic" in http://www.pitonyak.org/AndrewMacro.odt


This is OK, but what about the case, when user drags text from anywhere and drops it on OO document. Can it be intercepted the similar way?
Back to top
View user's profile Send private message
pitonyak
Administrator
Administrator


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

PostPosted: Sat May 19, 2007 8:12 pm    Post subject: Reply with quote

I have never seen a drag/drop handler written for OOo. You might want to ask that on the Dev mailing list. If you can not find the mailing list,. send me a personal email (which I might not see for a few days because I am traveling).
_________________
--
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
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