[libreoffice-users] Re: macro to add annotation to selected text range

2014-11-20 Thread Andreas Säger
Am 19.11.2014 um 21:19 schrieb Matt Price: Thank you Andreas. Unfortunately I don't seem to be able to install either version of the MRI tool -- the unreleased 1.1.4 appears not to be a valid zipfile, whiel 1.1.2 throws this error: (com.sun.star.uno.RuntimeException) { { Message = class

[libreoffice-users] Re: macro to add annotation to selected text range

2014-11-20 Thread Andreas Säger
Am 20.11.2014 um 01:29 schrieb Jim Byrnes: On 11/19/2014 12:30 PM, Matt Price wrote: Yes, lack of more comprehensive documentation is a real pain. Hopefully someone with more knowledge than myself will comment on what I am about to write if I am wrong. With the exception of ThisComponent,

Re: [libreoffice-users] Re: macro to add annotation to selected text range

2014-11-20 Thread Matt Price
Andrew, Thank you for the navigation help. Your book was the first place I looked, but I was too many layers away to really understand how to get the help I needed. Hopefully next time I will be able to do it on my own! Many thanks also for all your work over the last decade!! Matt On Wed,

[libreoffice-users] Re: macro to add annotation to selected text range

2014-11-19 Thread Jim Byrnes
On 11/19/2014 10:55 AM, Matt Price wrote: Thanks Tom, I've just spent some time looking htrough Andrew Pitonyak's macro guide. It helps a little but there doesn't seem to be any direct documentation of hte functions. What I'm looking at is the second line reproduced below: oVC =

Re: [libreoffice-users] Re: macro to add annotation to selected text range

2014-11-19 Thread Matt Price
Jim, That was it! Or, almost. I changed the line to: oText.insertTextContent(oVC, oAnno, True) And the annotation now gets attached to the whole range. I wish I knew how to find the documentation for these functions! I don't know what the various parameters actually d -- what is the final

Re: [libreoffice-users] Re: macro to add annotation to selected text range

2014-11-19 Thread Matt Price
So, I gues there is an API reference: http://api.libreoffice.org/docs/idl/ref/index.html But unfortunately it doesn't give direct documentation for Basic functions. I found this document instead, which tells me where in the API the actual function calls come from:

Re: [libreoffice-users] Re: macro to add annotation to selected text range

2014-11-19 Thread Tom Davies
Hi :) On a linux command-line you can type whatever command and then add a --help or -h tag to get a really neat quick-cheat-sheet, 2 examples; ls --help dir -h Also can often type a command after man (short for manual) to get a much more verbose, but still quite geeky, detail about what the

[libreoffice-users] Re: macro to add annotation to selected text range

2014-11-19 Thread Andreas Säger
Am 19.11.2014 um 18:59 schrieb Matt Price: Jim, That was it! Or, almost. I changed the line to: oText.insertTextContent(oVC, oAnno, True) And the annotation now gets attached to the whole range. I wish I knew how to find the documentation for these functions! I don't know what

Re: [libreoffice-users] Re: macro to add annotation to selected text range

2014-11-19 Thread Matt Price
Thank you Andreas. Unfortunately I don't seem to be able to install either version of the MRI tool -- the unreleased 1.1.4 appears not to be a valid zipfile, whiel 1.1.2 throws this error: (com.sun.star.uno.RuntimeException) { { Message = class 'SyntaxError': invalid syntax (MRI.py, line 21),

Re: [libreoffice-users] Re: macro to add annotation to selected text range

2014-11-19 Thread Andrew Douglas Pitonyak
Matt, It occurs to me that I might come off a bit arrogant in my response, but, my intention is to point you at a couple of places that contain the answer to one of your questions. So, please grant me some grace while reading and assume that I have the best of intentions. I have been having

[libreoffice-users] Re: macro to add annotation to selected text range

2014-11-19 Thread Jim Byrnes
On 11/19/2014 12:30 PM, Matt Price wrote: So, I gues there is an API reference: http://api.libreoffice.org/docs/idl/ref/index.html I had trouble loading that page. I usually use the OpenOffice one at: http://www.openoffice.org/api/docs/common/ref/index-files/index-1.html But unfortunately