jl165 merging heads
[LibreOffice.git] / testautomation / writer / optional / w_opt.bas
blob541f19c41194bf714386f1c64e4772a78e59268e
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 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 : helge.delfs@oracle.com
30 '* short description : WRITER-Options Test
32 '\***********************************************************************
34 global NO_REAL_PRINT as boolean ' Don't print on real printer
35 Global mUnit as string
37 sub main
38 Dim StartTime
39 StartTime = Now()
40 NO_REAL_PRINT = True
42 use "writer\tools\includes\w_tools.inc"
43 use "writer\tools\includes\w_tool5.inc"
44 use "writer\tools\includes\w_tool6.inc"
46 use "writer\optional\includes\option\wr_o_1.inc"
47 use "writer\optional\includes\option\wr_o_2.inc"
48 use "writer\optional\includes\option\wr_o_3.inc"
49 use "writer\optional\includes\option\wr_o_4.inc"
50 use "writer\optional\includes\option\wr_o_5.inc"
51 use "writer\optional\includes\option\wr_o_a.inc"
53 printlog Chr(13) + "Loading of Include - Files takes: " + Wielange ( StartTime )
54 printlog Chr(13) + "******* Writer - Options - Test *******"
56 gUseSysDlg = FALSE
58 Call wSetMacroSecurityLevel(4) ' Set security level to low
59 Call hNewDocument
60 mUnit = fSetMeasurementToCM()
61 Call hCloseDocument
63 Call hStatusIn("writer","w_opt.bas","Writer Option-Test")
64 Call wr_o_1 'View / Grid /
65 Call wr_o_2 'Defaultfont / Print / Table
66 Call wr_o_3 'View 2 / Changes
67 Call wr_o_4 'General / -> Caption
68 Call wr_o_5 'Language Settings
69 Call tToolsOptionsWriterDirectCursor2
70 Call wSetMacroSecurityLevel(3) ' Set security to default -- medium
71 Call wOptionsUndo("All")
72 Call hStatusOut
74 Printlog Chr(13) + "End of Options - Test :"
75 Printlog "Duration: "+ WieLange ( StartTime )
76 Printlog "Date: " + Date + " Time: " + Time
78 end sub
80 sub LoadIncludeFiles
81 use "global\system\includes\master.inc"
82 use "global\system\includes\gvariabl.inc"
83 Call GetUseFiles
84 gApplication = "WRITER"
85 end sub