update dev300-m58
[ooovba.git] / testautomation / framework / optional / f_ole.bas
blobfeb052ddaee2afefd51c2a60bec4c306bc41372f
1 'encoding UTF-8 Do not remove or change this line!
2 '**************************************************************************
3 '* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 '*
5 '* Copyright 2008 by Sun Microsystems, Inc.
6 '*
7 '* OpenOffice.org - a multi-platform office productivity suite
8 '*
9 '* $RCSfile: f_ole.bas,v $
11 '* $Revision: 1.3 $
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 '\******************************************************************************
40 sub main
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" )
51 printlog( "" )
52 printlog( "Quick tests of the OLE object dialog" )
53 call tOLEWriter
54 call tOLECalc
55 call tOLEDraw
56 call tOLEImpress
58 printlog( "" )
59 printlog( "A more exhaustive test of the OLE dialog" )
60 call tCheckTheOLEObjectDialog
62 printlog( "" )
63 printlog( "Do some presets required to make the following tests run smoothly" )
64 call hSetToStandardView ( "WRITER" )
65 call hSetToStandardView ( "GLOBALDOC" )
67 printlog( "" )
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
75 printlog( "" )
76 printlog( hNumericDoctype( iCurrentApp ) )
77 printlog( "" )
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 ()
88 endif
90 next iCurrentApp
92 call hStatusOut()
94 end sub
96 '*******************************************************************************
98 sub LoadIncludeFiles
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"
108 Call GetUseFiles
109 gApplication = "BACKGROUND"
111 End Sub