2010/8/31 Johnny Rosenberg <gurus.knu...@gmail.com>:
> 2010/8/28 Séamas Ó Brógáin <s...@iol.ie>:
>> A feature that could show where styles and formatting begin and end
>> (similar to that in Wordperfect) would be hugely important to me, and
>> indeed to many others also to judge by the numerous participants in the
>> discussion at www.oooforum.org/forum/viewtopic.phtml?t=9696.
>>
>> I was delighted to learn of the macros RevealCodes2 and RevealCodes3
>> created by Ian Laurenson
>> (http://homepages.paradise.net.nz/hillview/OOo/) but very disappointed
>> to discover that they don’t work (at least for me) and instead return
>> the message “BASIC run-time error. An exception occurred. Type:
>> com.sun.star.uno.RuntimeException.” I presume this is because they were
>> written for an earlier version of Openoffice (1.1, I think), whereas I
>> have the latest (3.2)––or is something else wrong?
>
> I installed the RevealCodes3 and tried to debug it and I think I found
> it, however I am not sure if I can fix it, since I'm not an expert…
>
> It fails at the following line in the function fnDirectProperties(oTextRange):
> vValue = oTextRange.getPropertyValue(sItem)
>
> When it fails, sItem=”ParaChapterNumberingLevel”, something that is no
> longer supported, see the following issue:
> http://qa.openoffice.org/issues/show_bug.cgi?id=103670
>
> I'll give it a try to fix the macro, I think. No promises though;
> there's a lot of code that someone else (than me) wrote…
>
>
> Best regards
>
> Johnny Rosenberg

I did a really ugly ”fix” but since I don't really know how it is
supposed to work I'll let you test it. I had some errors when trying
to run it, but at least the thing started now and a dialogue appeared.
I also made some changes to two buttons…

But I'm afraid that there are a lot of more things that need to be
fixed before this baby works correctly… Besides, my ugly fix is not
complete, I only kind of ”bypassed” an error.

I uploaded the document here, maybe someone else want to help:

http://hem.bredband.net/guraknugen/RevealCodes3-Modified.sxw



Regards

Johnny Rosenberg

>
>>
>> I know almost nothing about Openoffice macros and cannot tell if this is
>> something that can be rectified. Does any kind soul know whether I might
>> be able to get these macros to work, and if so, how?
>>
>> Many thanks.
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@openoffice.org
>> For additional commands, e-mail: users-h...@openoffice.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@openoffice.org
For additional commands, e-mail: users-h...@openoffice.org

Reply via email to