Is it Possible to Create a Link that Sends File as Attachments

Greetings:

I am curious if it is possible to combine the “Insert Hyperlink → Email” and “File → Send → Email Document” features? Essentially, I would like to be able to insert a link into a document that, when clicked, brings up the same dialog as selecting the “Email Document” option would.

I am working on using the API with a Java program; the end goal is to create a timesheet generator that could, once filled out, be readily mailed to the appropriate supervisor.

Is this possible?

Thanks!

Maybe using a macro? This forum post looks promising: http://ooo-forums.apache.org/en/forum/viewtopic.php?t=86112&p=402544.

The Insert Hyperlink dialog has a function to activate a macro on click. It’s a textless button under Further Settings on LO 5.4.