Paolo Mantovani wrote:
Hi Tom,

Alle 11:09, marted� 15 marzo 2005, Tom Schindl ha scritto:

Hi Paolo,

Paolo Mantovani wrote:

[...]

For Tom:
I've tried to use the new extensions:
{see $IDL_Reference}
{link $IDL_Reference}

I hope to have done it correctly, but please, have a look before to put
the snippet in the repository.

the new Linking feature is looks really nice with your snippet. Great job Paolo.

http://codesnippets.services.openoffice.org/Office/Office.PropertyBrowserCo
ntroller.snip


Thank you Tom, but perhaps I misunderstood something, because there's a problem with API constants and enums.

For example:

{see com.sun.star.awt.WindowClass.TOP}

is converted as
http://api.openoffice.org/docs/common/ref/com/sun/star/awt/WindowClass/TOP.html

that results uncorrect.

I see two solutions:

1) modify the snippet source - f.e.:
{see com.sun.star.awt.WindowClass}.TOP

Not good. See below.


2) modify the engine on your side to recognize and cut the UPPER ending part before to build the link



Great catch Paolo haven't looked that exactly i must admit and haven't thought about this when creating the linking stuff. To be more reusable for other codesnippet pages (as already said I want to release the snippet-page as a standalone application which can be used by any OS-project around the world).


The reference to attributes and methods is now the following:
[EMAIL PROTECTED] com.sun.star.awt.WindowAttribute/BORDER} this translates into:
<a href="https://.../com/sun/star/awt/WindowAttribute.html#BORDER"; style="color: inherit" target="_new">com.sun.star.awt.WindowAttribute.BORDER</a>


I wanted to use the # instead of / but that interfered with my syntax-highlighter (in some languages a # has a meaning where as / is used in almost all languages as an operator and thus is not highlighted). Any other suggestions are welcome :-)

I have updated your snippet already please take a look at it.

http://codesnippets.services.openoffice.org/Office/Office.PropertyBrowserController.snip

Tom


let me know

Ciao
Paolo M






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to