On Mon, 2012-04-23 at 09:24 -0700, brainflakes wrote:
Sorry, I don't know anything about Base - but in Writer you just insert a
"Hyperlink", chose "Document" and enter a Document URL. If the document
extension/MIMEtype/whatever which is known to the system, the default app
open the document. That's at least how it works here.
As I said, I don't see a "type" for URL other than text. But, it looks like
I could implement a macro or I also see there is some sort of python link in
OL. I don't know much about how to write OL macros, but on briefly looking,
it looks like it is too hard.
Anyone know if python integration is supported well?
Thanks for your help. I appreciate it.
Sure, python is supported as a scripting language in LibreOffice.
I put together an example file from some questions on the list regarding
storing relative paths for images along with some a basic script,
embedded in an odb file just the other day.
So - I went back into that and added a button on the form there, lower
right of the image control.
And added two procedures to the basic library embedded in the odb file,
one which is called for button execute (click or keyboard shortcut [if I
had set one]) and this calls a doEdit procedure.
Also added a new table called config, which has a field "GraphicEditor",
in which I store the value currently of "gimp" this works for me under
linux and windows but perhaps others under windows would want to edit
that to "mspaint" or whatever is appropriate.
Anyway - I choose in that script to store URLs so the script, you will
if you look, uses the convertFromURL to grab the file name passed. If
you wanted to add options to the command you would that also in the
config.GraphicEditor field - or at least that is how I would do it.
View this message in context:
Sent from the Users mailing list archive at Nabble.com.
For unsubscribe instructions e-mail to: firstname.lastname@example.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
- Re: [libreoffice-users] Re: launching app from within base (continued)
Impressum (Legal Info)
: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (MPLv2
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our trademark policy