Difference between revisions of "Help context"
Line 15: | Line 15: | ||
The Online Help source files use custom tags called 'switches' to display different help texts with respect to the current context. A typical part of the source can look like the following example. | The Online Help source files use custom tags called 'switches' to display different help texts with respect to the current context. A typical part of the source can look like the following example. | ||
− | <switch select="appl"> | + | <switch select="appl"> |
<case select="IMPRESS"> | <case select="IMPRESS"> | ||
Line 27: | Line 27: | ||
</case> | </case> | ||
− | </switch> | + | </switch> |
In this example from the help source for the file open dialog, a part of the text is shown only when the current context is "Impress". Only in this case it can happen that the 'Open' button is called 'Play', and this gets another Help ID and the corresponding extended help text. | In this example from the help source for the file open dialog, a part of the text is shown only when the current context is "Impress". Only in this case it can happen that the 'Open' button is called 'Play', and this gets another Help ID and the corresponding extended help text. |
Revision as of 13:08, 20 September 2006
Help is set up to follow the modules' context.
In the Help Viewer you find a drop-down list box at the top left, where you can select another module or context.
When a user opens Help from within Writer, the user will see the Writer Help. The same is true for the other modules, Calc, Draw, Impress, Base, Basic, and Math.
By selecting another entry from the list box, the user can switch to another module's main help page.
Every context has its own set of index entries and find/search inventory. So, when you are inside the Writer help, you cannot search for a Calc function.
However, many Help topics apply to all of the modules, or to at least two of the modules. The respective Help pages and index entries are part of a 'shared' Help module, which is available for all contexts.
Why contexts?
The Online Help source files use custom tags called 'switches' to display different help texts with respect to the current context. A typical part of the source can look like the following example.
<switch select="appl">
<case select="IMPRESS">
<bookmark xml-lang="en-US" branch="hid/HID_FILESAVE_DOPLAY" id="bm_id3145324" localize="false"/>
<paragraph role="heading" id="hd_id3149984" xml-lang="en-US" level="2" l10n="U" oldref="113">Play</paragraph>
<paragraph role="paragraph" id="par_id3147289" xml-lang="en-US" l10n="U" oldref="114"><ahelp hid="HID_FILESAVE_DOPLAY">Plays the selected sound file. Click again to stop playing the sound file.</ahelp></paragraph>
</case>
</switch>
In this example from the help source for the file open dialog, a part of the text is shown only when the current context is "Impress". Only in this case it can happen that the 'Open' button is called 'Play', and this gets another Help ID and the corresponding extended help text.