'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 : Replacements for routines in t_lists.inc adds some '* '\****************************************************************************** function hOpenHelp() as boolean '///

Function to open the Help Browser

'///Input: '///
    '///+
  1. Nothing
  2. '///
'///Returns: '///
    '///+
  1. Errorcondition (boolean)
  2. '/// '///
'///Description: '/// hOpenHelp() = brc end function '******************************************************************************* function hCloseHelp() as boolean '///

Function to close the Help Browser

'///Input: '///
    '///+
  1. Nothing
  2. '///
'///Returns: '///
    '///+
  1. Errorcondition (boolean)
  2. '/// '///
'///Description: '/// hCloseHelp() = brc 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 '///

Get the number of applications listed in the Help ListBox

'///Input: '///
    '///+
  1. Nothing
  2. '///
'///Returns: '///
    '///+
  1. Number of applications listed (integer)
  2. '/// '///
Description: '/// printlog( CFN & "Exit with item count = " & iAboutItems ) hHelpGetAboutItemCount() = iAboutItems end function '******************************************************************************* function hHelpGetSearchIndexItemCount() as integer '///

Get the number of items in the Help Search Index

'///Starting point: Help / Index page
'///Note: Workaround for incorrect value returned by .getItemCount()
'///Input: '///
    '///+
  1. Nothing
  2. '///
'///Returns: '///
    '///+
  1. Number of items in the list (integer)
  2. '///
'///Description: '/// end function '******************************************************************************* function hGetHelpContentHeader( iLength as integer ) as string '///

Get the header of the content in the help browser

'///This is the first line of the content page, truncated (if desired)

'///Parameter(s):
'///
    '///+
  1. Length of the requested string (Integer)
  2. '/// '///
'///Returns:
'///
    '///+
  1. Header (String)
  2. '/// '///
const CFN = "hGetHelpContentHeader::" printlog( CFN & "Enter with option (iLength): " & iLength ) dim cHeaderString as string '///Description: '/// printlog( CFN & "Exit: " & cHeaderString ) hGetHelpContentHeader() = cHeaderString end function