merge the formfield patch from ooo-build
[ooovba.git] / testautomation / writer / optional / ww_opt.bas
blob7bf7781e4f4ddd422d4f4b4e8ae0a320fc4c2bff
1 '**************************************************************************
2 '* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3 '*
4 '* Copyright 2008 by Sun Microsystems, Inc.
5 '*
6 '* OpenOffice.org - a multi-platform office productivity suite
7 '*
8 '* $RCSfile: ww_opt.bas,v $
9 '*
10 '* $Revision: 1.1 $
12 '* last change: $Author: fredrikh $ $Date: 2008-06-18 09:11:27 $
14 '* This file is part of OpenOffice.org.
16 '* OpenOffice.org is free software: you can redistribute it and/or modify
17 '* it under the terms of the GNU Lesser General Public License version 3
18 '* only, as published by the Free Software Foundation.
20 '* OpenOffice.org is distributed in the hope that it will be useful,
21 '* but WITHOUT ANY WARRANTY; without even the implied warranty of
22 '* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 '* GNU Lesser General Public License version 3 for more details
24 '* (a copy is included in the LICENSE file that accompanied this code).
26 '* You should have received a copy of the GNU Lesser General Public License
27 '* version 3 along with OpenOffice.org. If not, see
28 '* <http://www.openoffice.org/license.html>
29 '* for a copy of the LGPLv3 License.
31 '/************************************************************************
33 '* owner : helge.delfs@sun.coms
35 '* short description : HTML-Options-Test
37 '\***********************************************************************
39 Global mUnit as string
41 sub main
42 Dim StartTime
43 StartTime = Now()
45 use "writer\tools\includes\w_tools.inc"
46 use "writer\tools\includes\w_tool6.inc"
48 use "writer\optional\includes\option\wh_o_1.inc"
49 use "writer\optional\includes\option\wh_o_2.inc"
50 use "writer\optional\includes\option\wh_o_3.inc"
52 printlog Chr(13) + "Loading of Include - Files takes: " + Wielange ( StartTime )
53 printlog Chr(13) + "******* HTML - Options - Test *******"
55 Call hNewDocument
56 mUnit = fSetMeasurementToCM() ' Set measurement unit to cm
57 Call hCloseDocument
59 Call hStatusIn("writer","ww_opt.bas","HTML Optiontest")
60 Call wh_o_1 'Content / Layout / Grid /
61 Call wh_o_2 'Defaultfont / Print / Table
62 Call wh_o_3 'Cursor / Changes / Insert / Insert -> Caption
63 Call hStatusOut
65 Printlog Chr(13) + "End of Options - Test :"
66 Printlog "Duration: "+ WieLange ( StartTime )
67 Printlog "Date: " + Date + " Time: " + Time
69 end sub
71 sub LoadIncludeFiles
72 use "global\system\includes\master.inc"
73 use "global\system\includes\gvariabl.inc"
74 Call GetUseFiles
75 gApplication = "HTML"
76 end sub