'encoding UTF-8 Do not remove or change this line! '************************************************************************** ' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. ' ' Copyright 2000, 2010 Oracle and/or its affiliates. ' ' OpenOffice.org - a multi-platform office productivity suite ' ' This file is part of OpenOffice.org. ' ' OpenOffice.org is free software: you can redistribute it and/or modify ' it under the terms of the GNU Lesser General Public License version 3 ' only, as published by the Free Software Foundation. ' ' OpenOffice.org is distributed in the hope that it will be useful, ' but WITHOUT ANY WARRANTY; without even the implied warranty of ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ' GNU Lesser General Public License version 3 for more details ' (a copy is included in the LICENSE file that accompanied this code). ' ' You should have received a copy of the GNU Lesser General Public License ' version 3 along with OpenOffice.org. If not, see ' ' for a copy of the LGPLv3 License. ' '/****************************************************************************** '* '* owner : joerg.skottke@sun.com '* '* 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