HomeDobuDishChange toolbar icons for Javahelp

Change toolbar icons for Javahelp


Hi,

can anybody tell me, how to change the toolbar icons when I'm creating a Javahelp project with DobuDish?

Regards,

Simon T.
Simon Thalbauer | email
February 16 2010, 01:18 PM
Not using JavaHelp myself and not having tested this, if I can suggest:

In your custom-cfg/javahelp.xsl you can customise the system/docbook-xsl/javahelp.xsl. You need to add 2 customisations, so first copy the complete helpset.content and helpmap.content templates to your file, then modify them as follows:

1. Add to the bottom of the template called helpset.content just before the </helpset> tag something like (you may not need all the toolbar buttons):

<presentation default="true">
<name>main window</name>
<size width="600" height="400"/>
<location x="0" y="0"/>
<title>Help</title>
<toolbar>
<helpaction image="backIcon">javax.help.BackAction</helpaction>
<helpaction image="forwardIcon">javax.help.ForwardAction</helpaction>
<helpaction image="homeIcon">javax.help.HomeAction</helpaction>
<helpaction image="reloadIcon">javax.help.ReloadAction</helpaction>
<helpaction image="addBookmarkIcon">javax.help.FavoritesAction</helpaction>
<helpaction image="printIcon">javax.help.PrintAction</helpaction>
<helpaction image="printSetupIcon">javax.help.PrintSetupAction</helpaction>
</toolbar>
</presentation>

2. Add to helpmap.content just before </map> something like:

<mapID target="toplevelfolder" url="icons/tree.jpg"/>
<mapID target="contentIcon" url="icons/book.gif"/>
<mapID target="searchIcon" url="icons/search.gif"/>
<mapID target="bookmarkIcon" url="icons/bookmarks.gif"/>
<mapID target="homeIcon" url="icons/home.gif"/>
<mapID target="backIcon" url="icons/back.gif"/>
<mapID target="addBookmarkIcon" url="icons/add_bookmarks.gif"/>
<mapID target="reloadIcon" url="icons/refresh.gif"/>
<mapID target="forwardIcon" url="icons/front.gif"/>
<mapID target="printIcon" url="icons/print.gif"/>
<mapID target="printSetupIcon" url="icons/page_setup.gif"/>
<mapID target="openFolderIcon" url="icons/folder_open.gif"/>
<mapID target="closedFolderIcon" url="icons/folder_closed.gif"/>
<mapID target="topicIcon" url="icons/topic.gif"/>

3. And then of course add the corresponding icons.

This seems to be the way to start - good luck!

- Etienne
etienne | email
1 week, 1 day since original post
Post a Reply





when

Subscribe to replies via email