OK, so I made changes and then emailed this back to Mr. Rosenberg, since he was making the initial changes.

Search for "??ADP" and you will find my changes.

(1) The property names were not sorted, but the list is sorted as though it is.... Oh fiddle sticks, this will cause everything to fail. Johnny, don't push that out, it is wrong. I need to change this so that it does NOT assume that the array is sorted. I will send another version along shortly.

(2) I selected a paragraph with a hyperlink and it failed because the property index was greater than the color array.

(3) Placed a check in case the property is not found.

OK, I will go back and use a straight search and then NOT sort the array.


On 08/31/2010 03:52 PM, Johnny Rosenberg wrote:
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



--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html


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

Reply via email to