'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 : helper functions for the wizards '* '\****************************************************************************** function hWaitForWizard() as integer const CFN = "hWaitForWizard::" const MAXTRIES = 10 '///

Wait for any wizard to open

'///Uses: framework/tools/input/menuentries.txt
'///NOTE: Not all wizards are known to this function yet.
'///Input: '///
    '///+
  1. Nothing
  2. '///
'///Returns: '///
    '///+
  1. Unique ID of the open wizard
  2. '/// '///
'///Description: '/// end function '******************************************************************************* function hSetTemplateSavePath( cFile as string ) as integer '///

Set the template save-path

'///Starting point: Last page on FAX-, AGENDA- or LETTERWIZARD
'///Input: '///
    '///+
  1. Fully qualified path to target template name (string)
  2. '///
'///Returns: '///
    '///+
  1. Errorcode (integer)
  2. '/// '///
'///Description: '/// end function '******************************************************************************* function hHandleSaveError() as integer const CFN = "hHandleSaveError::" '///

Handle errors while saving a template

'///Starting point: Save-As dialog from last page on FAX-, AGENDA- or LETTERWIZARD
'///Input: '///
    '///+
  1. Nothing
  2. '///
'///Returns: '///
    '///+
  1. Errorcode (integer)
  2. '/// '///
'///Description: '/// kontext "active" if ( active.exists( 2 ) ) then printlog( CFN & "Unexpected MsgBox: " & active.getText() ) try active.ok() hHandleSaveError() = 2 catch active.yes() hHandleSaveError() = 1 endcatch else hHandleSaveError() = 0 endif end function '******************************************************************************* function hClickNextButton() as boolean '///

Click the Next-Button on some wizards

'///Starting point: Last page on FAX-, AGENDA- or LETTERWIZARD
'///Refer to inline documentation for further information
'///Input: '///
    '///+
  1. Nothing
  2. '///
'///Returns: '///
    '///+
  1. Status (boolean)
  2. '/// '///
'///Description: '/// end function