1 'encoding UTF-8 Do not remove or change this line!
2 '**************************************************************************
3 ' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 ' Copyright 2000, 2010 Oracle and/or its affiliates.
7 ' OpenOffice.org - a multi-platform office productivity suite
9 ' This file is part of OpenOffice.org.
11 ' OpenOffice.org is free software: you can redistribute it and/or modify
12 ' it under the terms of the GNU Lesser General Public License version 3
13 ' only, as published by the Free Software Foundation.
15 ' OpenOffice.org is distributed in the hope that it will be useful,
16 ' but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ' GNU Lesser General Public License version 3 for more details
19 ' (a copy is included in the LICENSE file that accompanied this code).
21 ' You should have received a copy of the GNU Lesser General Public License
22 ' version 3 along with OpenOffice.org. If not, see
23 ' <http://www.openoffice.org/license.html>
24 ' for a copy of the LGPLv3 License.
26 '/************************************************************************
28 '* owner : oliver.craemer@oracle.com
30 '* short description : Simply load max. 1000 files in .../spreadsheet/required/input/loadsave/
32 '\***********************************************************************
34 global gsSourceDocument(1000) as string
35 global giWhichSecurityLevel
as integer
36 global gsSourcePath
as string
39 use
"spreadsheet\optional\includes\import_general\c_import_general.inc"
41 gsSourcePath
= ConvertPath(gTestToolPath
+ "spreadsheet\optional\input\loadsave\")
42 'Checking in .../common sub-directory if there is a file
43 'to be sure to have access to the files
44 if Dir(gsSourcePath
) & "common\" = "" then
45 warnlog
"qa:qatesttool:spreadsheet:optional:c_import_general.bas: Unable to find document directory! Please adapt 'gsSourcePath'"
50 Call hStatusIn ( "spreadsheet", "c_import_general.bas" )
51 Call tLoadAllDocuments (gsSourcePath
)
53 Call sResetSystemUnderTest
56 '-------------------------------------------------------------------------------
59 use
"global\system\includes\master.inc"
60 use
"global\system\includes\gvariabl.inc"
66 '-------------------------------------------------------------------------------
69 'Init the iWhichSecurityLevel() variable with 2
70 'which would be the normal state if it's impossible
71 'to detect the macro security level.
72 giWhichSecurityLevel
= 2
73 'Get the macro security level and remember it.
74 'and then set the Macro security level to (0) low
75 giWhichSecurityLevel
= hSetMacroSecurity(0)
78 '-------------------------------------------------------------------------------
80 sub sResetSystemUnderTest
81 'Set the macro security level back to the value
82 'which has it before the system was under test
83 call hSetMacroSecurity(giWhichSecurityLevel
)
86 '-------------------------------------------------------------------------------