Omni Systems, Inc. |  | Mif2Go User's Guide, Version 55 |  |  |  |  |

> 11 Generating JavaHelp or Oracle Help > 11.4 Generating contents and index > 11.4.2 Assigning TOC images and expansion levels in JavaHelp 2

### 11.4.2 Assigning TOC images and expansion levels in JavaHelp 2

Mif2Go supports several JavaHelp 2 <toc> and <tocitem> attributes that allow you to control which TOC levels are expanded and collapsed, and what images are displayed in the TOC tree.

To set the <tocitem> expand attribute by level, assign Yes (expand) or No (collapse) to each level number:

[TocLevelExpand]

; The JH default is to expand only top-level (1) items; this sets the

; <tocitem> expand attribute according to level.

1 = Yes

2 = No

The JavaHelp default is to expand only top-level (level 1) items.

To designate images to be displayed in the TOC tree, assign an image ID to each different TOC item. For example:

[JavaHelpOptions]

; The JH default is to use the Toc*Image graphics for all levels; this

; replaces those graphics by setting the <tocitem> image attributes.

; The image IDs are mapped in [JHImages] as usual

TocClosedImage = closedsign

TocOpenImage = opensign

TocTopicImage = topicicon

The JavaHelp default is to use the assigned Toc*Image graphics for all TOC levels. However, to use the same graphic for all TOC items at a given level, you can assign an image ID to the level number. For example:

[TocLevelImage]

; The image IDs are mapped in [JHImages]

1=overview

You must map each image ID to the location of its corresponding graphic in section [JHImages]; see §11.8.1.2 Mapping image names to graphics files.

> 11 Generating JavaHelp or Oracle Help > 11.4 Generating contents and index > 11.4.2 Assigning TOC images and expansion levels in JavaHelp 2

| Mif2Go User's Guide: 11.4.1 Configuring contents entries for JavaHelp or Oracle Help |  | Mif2Go User's Guide: 11.4.3 Configuring index entries for JavaHelp or Oracle Help |