'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 : Replacements for routines in t_lists.inc adds some '* '\****************************************************************************** function hOpenHelp() as boolean printlog( "Open Help Browser" ) HelpContents kontext "StarOfficeHelp" if ( StarOfficeHelp.exists( 5 ) ) then hOpenHelp() = TRUE else warnlog( "Unable to open help browser" ) hOpenHelp() = FALSE endif end function '******************************************************************************* function hCloseHelp() as boolean printlog( "Close Help Browser" ) kontext "StarOfficeHelp" StarOfficeHelp.typeKeys( "" ) if ( StarOfficeHelp.notExists( 3 ) ) then hCloseHelp() = TRUE else warnlog( "Help browser could not be closed" ) hCloseHelp() = FALSE endif end function '****************************************************************************** function hSelectHelpTab( cTab as string ) as boolean '///

Select a tab on the help dialog by name

'///Input: '///
    '///+
  1. The tab to open (string)
  2. '/// '///
'///Returns: '///
    '///+
  1. Errorcondition (boolean)
  2. '/// '///
'///Description: '/// end function '******************************************************************************* function hUseBookmarksContextMenu( cAction as string ) as boolean '///

handle the bookmarks context menu in Help Browser

'///Input: '///
    '///+
  1. The context item to execute (string)
  2. '/// '///
'///Returns: '///
    '///+
  1. Errorcondition (boolean)
  2. '/// '///
'///Description: '/// end function '******************************************************************************* function hHelpGetAboutItemCount() as integer printlog( "Get the number of applications listed in the help listbox (should be 8)" ) const ABOUT_ITEMS = 8 dim itemcount as integer hOpenHelp() hSelectHelpTab( "index" ) Kontext "IndexPage" itemcount = HelpAbout.getItemCount() if ( itemcount <> ABOUT_ITEMS ) then warnlog( "Number of applications is incorrect" ) printlog( "Found...: " & itemcount ) printlog( "Expected: " & ABOUT_ITEMS endif hCloseHelp() hHelpGetAboutItemCount() = itemcount end function