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 2008 by Sun Microsystems, Inc.
7 '* OpenOffice.org - a multi-platform office productivity suite
9 '* $RCSfile: f_ole.bas,v $
13 '* last change: $Author: jsk $ $Date: 2008-06-20 08:07:02 $
15 '* This file is part of OpenOffice.org.
17 '* OpenOffice.org is free software: you can redistribute it and/or modify
18 '* it under the terms of the GNU Lesser General Public License version 3
19 '* only, as published by the Free Software Foundation.
21 '* OpenOffice.org is distributed in the hope that it will be useful,
22 '* but WITHOUT ANY WARRANTY; without even the implied warranty of
23 '* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 '* GNU Lesser General Public License version 3 for more details
25 '* (a copy is included in the LICENSE file that accompanied this code).
27 '* You should have received a copy of the GNU Lesser General Public License
28 '* version 3 along with OpenOffice.org. If not, see
29 '* <http://www.openoffice.org/license.html>
30 '* for a copy of the LGPLv3 License.
32 '/************************************************************************
34 '* owner : thorsten.bosbach@sun.com
36 '* short description : OLE
38 '\******************************************************************************
42 use
"framework\optional\includes\ole_tools.inc"
43 use
"framework\optional\includes\ole_1.inc"
44 use
"framework\optional\includes\ole_2.inc"
45 use
"framework\optional\includes\ole_3.inc"
47 dim iCurrentApp
as integer
49 call hStatusIn ( "framework", "f_ole.bas" )
52 printlog( "Quick tests of the OLE object dialog" )
59 printlog( "A more exhaustive test of the OLE dialog" )
60 call tCheckTheOLEObjectDialog
63 printlog( "Do some presets required to make the following tests run smoothly" )
64 call hSetToStandardView ( "WRITER" )
65 call hSetToStandardView ( "GLOBALDOC" )
68 printlog( "All useful combinations of applications / OLE objects" )
70 ' Run this one in advance. Note that this function changes gApplication
71 call GetOLEDefaultNames()
73 for iCurrentApp
= 1 to 6
76 printlog( hNumericDoctype( iCurrentApp
) )
79 if ( iCurrentApp
= 5 ) then
80 printlog( "Skipping Math" )
81 else ' Testcase names as before to keep comparability to earlier testruns
82 call tWriter_as_OLE_object()
83 call tCalc_as_OLE_Object()
84 call tDRAW_as_OLE_Object()
85 call tImpress_as_OLE_Object()
86 call tMath_as_OLE_Object ()
87 call tChart_as_OLE_Object ()
96 '*******************************************************************************
100 use
"global\system\includes\master.inc"
101 use
"global\system\includes\gvariabl.inc"
103 use
"global\tools\includes\optional\t_filetools.inc"
104 use
"global\tools\includes\optional\t_ole.inc"
105 use
"global\tools\includes\optional\t_docfuncs.inc"
106 use
"global\tools\includes\optional\t_stringtools.inc"
109 gApplication
= "BACKGROUND"