'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 : gregor.hartmann@oracle.com '* '* short description : check the internal file dialog ( extended tests ) '* '\****************************************************************************** function hSaveLoadDelSuccess( cFile as string ) as integer '///

Successfully save, close, load, close and delete a file

'///Uses: framework\tools\t_stringtools.inc

'///Input: '///
    '///+
  1. Filename incl. extension (string)
  2. '///
'///Returns: '///
    '///+
  1. Errorcode (integer)
  2. '/// '///
'///Description: '/// end function '******************************************************************************* function hLoadFileExpectSuccess( fpath as string ) as boolean '///

Load a file where failure is expected

'///Uses: framework\tools\t_stringtools.inc

'///This function is quite similar to hLoadFile but does much less '///+ errorhandling so the information of the type of failure is a little '///+ more exact

'///Input: '///
    '///+
  1. Filename incl. extension (string)
  2. '///
'///Returns: '///
    '///+
  1. Errorcondition (boolean)
  2. '/// '///
'///Description: '/// end function '******************************************************************************* function hSaveFileExpectSuccess( fpath as string , bReplace as boolean ) as boolean '///

Save a file with optional replace where success is expected

'///Uses: framework\tools\t_stringtools.inc

'///Input: '///
    '///+
  1. Filename incl. extension (string)
  2. '///+
  3. Replace file (boolean)
  4. '/// '///
'///Returns: '///
    '///+
  1. Errorcondition (boolean)
  2. '/// '///
'///Description: '/// end function '******************************************************************************* function hSaveFileExpectFailure( fpath as string , errortype as integer ) as boolean '///

Save a file where failure is expected

'///Uses: framework\tools\t_stringtools.inc

'///Input: '///
    '///+
  1. Filename incl. extension (string)
  2. '///+
  3. Errortype (Integer). Valid options are:
  4. '/// '///
'///Returns: '///
    '///+
  1. Errorcondition (boolean)
  2. '/// '///
'///Description: '/// end function '******************************************************************************* function hDeleteFileViaFileOpen( cFile as String ) as boolean '///

Delete a file using the File Open dialog

'///Uses: framework\tools\t_stringtools.inc

'///Input: '///
    '///+
  1. Filename incl. extension (string)
  2. '///
'///Returns: '///
    '///+
  1. Errorcondition (boolean)
  2. '/// '///
'///Description: '/// end function '******************************************************************************* function hNameGen_append( iDecChar as long ) as string '///

Create a filename with specified character at the end

'///Input: '///
    '///+
  1. Character as number (integer)
  2. '/// '///
'///Returns: '///
    '///+
  1. A filename containing a special character at the end (before suffix)
  2. '///
'///Description: '/// end function '******************************************************************************* function hNameGen_lead( iDecChar as long ) as string '///

Create a filename with specified character at the beginning

'///Input: '///
    '///+
  1. Character as number (integer)
  2. '/// '///
'///Returns: '///
    '///+
  1. A filename containing a special character at the beginning
  2. '///
'///Description: '/// end function '******************************************************************************* function hFindFileObjectViaFileOpen( cName as string ) as integer '///

Get the position of a filesystem object in filelist of fileopen dialog

'///Note that the filepicker must be open in order to use this function.
'///The object with the given name is selected when leaving the function.

'///Input: '///
    '///+
  1. Filename incl. extension (string) but without any pathseparator
  2. '///
'///Returns: '///
    '///+
  1. Position of the object in the filepicker list
  2. '/// '///
'///Description: '/// end function