'encoding UTF-8 Do not remove or change this line! '************************************************************************* ' ' Licensed to the Apache Software Foundation (ASF) under one ' or more contributor license agreements. See the NOTICE file ' distributed with this work for additional information ' regarding copyright ownership. The ASF licenses this file ' to you under the Apache License, Version 2.0 (the ' "License"); you may not use this file except in compliance ' with the License. You may obtain a copy of the License at ' ' http://www.apache.org/licenses/LICENSE-2.0 ' ' Unless required by applicable law or agreed to in writing, ' software distributed under the License is distributed on an ' "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ' KIND, either express or implied. See the License for the ' specific language governing permissions and limitations ' under the License. ' '************************************************************************* '* '* short description : Extensible help '* '\****************************************************************************** testcase tExtensibleHelp '///

Extensible help

'///
Synopsis
Beginning with CWS ab38 extensions can extend the help application with index entries and content
'///
Specification document
'///+http://specs.openoffice.org/appwide/help/ExtensibleHelp.odt
'///
Files used:
.../extensions/features/input/extensible_help/*.info, *.oxt
'///
Test case specification
' This is the base path to the input directory where all workfiles are located dim cExtName as string dim cExtPath as string cExtPath = gTesttoolPath & "extensions\optional\input\extensible_help\" cExtPath = convertpath( cExtPath ) ' This is the configuration file for the test extensions. This approach was chosen ' because the extensions have a lot in common but not enough to make a general ' routine without any special cases. It is possible to add more extensions easily ' by just configuring them in the config file. Ideally no canges to the test case ' itself are required. const CONFIG_FILE = "extension.info" dim cCfgPath as string cCfgPath = cExtPath cCfgPath = convertpath( cCfgPath & CONFIG_FILE ) ' In this array we store the config file. Always make sure it is large enough ' to hold the entire file dim cCfgArray( 60 ) as string ' Some returnvalues/status variables, general purpose dim iStatus as integer dim bStatus as boolean ' Control variables for the outer loop (actions for each extension) dim iCurrentExtension as integer dim iExtensionCount as integer ' Control variables for the inner loop (items to test for an extension) dim cCurrentHelpItem as string dim iCurrentHelpItem as integer dim iHelpItemCount as integer ' Values retrieved from the config file or the help content dim cItem as string dim cHead as string dim cLine as string ' Correct the position within the index list. If we have a main item with ' sub-items we might need to move a few entries down in the list to get the ' sub-items. dim cMove as string dim iMove as integer dim iMoveDown as integer do while ( getDocumentCount > 0 ) call hCloseDocument() loop '/// endcase