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: id_003.inc,v $
13 '* last change: $Author: jsi $ $Date: 2008-06-16 10:43:00 $
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 : wolfram.garten@sun.com
36 '* short description :
38 '***********************************************************************************
42 ' #1 tiViewDisplayQuality
46 '\**********************************************************************************
47 testcase tiViewNavigator
49 printlog " open application "
52 Kontext "NavigatorDraw"
53 printlog " if 'Navigator' isn't already open, open it (View->Navigator)"
54 if Not NavigatorDraw.Exists Then
57 Kontext "NavigatorDraw"
58 Call DialogTest ( NavigatorDraw )
62 printlog " close 'Navigator' "
65 Errorlog " Navigator wasn't closed, second try with Menu"
68 printlog " close application "
71 endcase 'tiViewNavigator
72 '-------------------------------------------------------------------------
75 printlog " open application "
80 DialogTest ( Massstab )
82 printlog " close application "
86 '-------------------------------------------------------------------------
87 testcase tiViewToolbar
89 printlog " including ruler & statusbar "
90 printlog " open application "
93 printlog " View->Toolbars->ThreeDSettings "
94 ViewToolbarsThreeDSettings
96 printlog " View->Toolbars->ThreeDSettings "
97 ViewToolbarsThreeDSettings
100 printlog " View->Toolbars->Align "
103 printlog " View->Toolbars->Align "
107 printlog " View->Toolbars->Tools "
110 printlog " View->Toolbars->Tools "
114 printlog " View->Toolbars->Bezier "
117 printlog " View->Toolbars->Bezier "
121 printlog " View->Toolbars->Fontwork "
124 printlog " View->Toolbars->Fontwork "
128 ' if gApplication = "IMPRESS" then
129 printlog " View->Toolbars->Presentation "
130 ' ViewToolbarsPresentation ' only in impress, not draw
131 printlog " View->Toolbars->Presentation "
132 ' ViewToolbarsPresentation
135 printlog " View->Toolbars->Form Controls "
136 ViewToolbarsFormControls
138 printlog " View->Toolbars->Form Controls "
139 ViewToolbarsFormControls
143 printlog " View->Toolbars->Form Design "
144 ViewToolbarsFormDesign
146 printlog " View->Toolbars->Form Design "
147 ViewToolbarsFormDesign
150 printlog " View->Toolbars->FormNavigation "
151 ViewToolbarsFormNavigation
153 printlog " View->Toolbars->FormNavigation "
154 ViewToolbarsFormNavigation
157 printlog " View->Toolbars->Gluepoints "
158 ViewToolbarsGluepoints
160 printlog " View->Toolbars->Gluepoints "
161 ViewToolbarsGluepoints
163 printlog " View->Toolbars->Insert "
166 printlog " View->Toolbars->Insert "
170 printlog " View->Toolbars->Graphic "
173 printlog " View->Toolbars->Graphic "
177 printlog " View->Toolbars->MediaPlayback "
178 ViewToolbarsMediaPlayback
180 printlog " View->Toolbars->MediaPlayback "
181 ViewToolbarsMediaPlayback
184 printlog " View->Toolbars->Optionbar "
185 ViewToolbarsOptionbar
187 printlog " View->Toolbars->Optionbar "
188 ViewToolbarsOptionbar
191 printlog " View->Toolbars->Picture "
194 printlog " View->Toolbars->Picture "
198 printlog " View->Toolbars->Standard "
201 printlog " View->Toolbars->Standard "
205 printlog " View->Toolbars->Standard View "
206 ViewToolbarsStandardView
208 printlog " View->Toolbars->Standard View "
209 ViewToolbarsStandardView
212 printlog " View->Toolbars->Hyperlinkbar "
213 ViewToolbarsHyperlinkbar
215 printlog " View->Toolbars->Hyperlinkbar "
216 ViewToolbarsHyperlinkbar
219 printlog " View->Toolbars->ColorBar "
222 printlog " View->Toolbars->ColorBar "
226 printlog " View->Toolbars->Customize "
227 ViewToolbarsCustomize
230 printlog " switch to tabpage 'Menus' "
232 Messagebox.SetPage TabCustomizeMenu ' 1 ------------------
234 warnlog "couldn't switch to tabpage 'Menus'"
236 Kontext "TabCustomizeMenu"
237 if TabCustomizeMenu.exists(5) then
238 Call DialogTest ( TabCustomizeMenu )
239 Menu.typeKeys("<down>")
240 Entries.typeKeys("<down>")
242 printlog " click button 'new' "
245 printlog " Dialog 'New Menu' comes up "
246 Kontext "MenuOrganiser"
247 Call DialogTest ( MenuOrganiser )
248 printlog " Cancel dialog 'New Menu' "
251 Kontext "TabCustomizeMenu"
252 TabCustomizeMenu.Close
256 printlog " close application "
259 endcase 'tiViewToolbar
260 '-------------------------------------------------------------------------
261 testcase tiViewDisplayQuality
263 printlog " open application "
266 printlog " create a rectangle "
267 Call hRechteckErstellen 20,20,40,40
270 printlog " View->Display Quality->Black and White "
271 ViewQualityBlackWhite
272 Printlog "- Quality set to black and white"
274 Warnlog "- Slot could not be accessed"
278 printlog " View->Display Quality->Greyscale "
280 Printlog "- View quality set to greyscale"
282 Warnlog "- View quality greyscale could not be accessed"
286 printlog " View->Display Quality->Colour "
288 Printlog "- View quality set to colour"
290 Warnlog "- View quality colour could not be accessed"
292 printlog " close application "
295 endcase 'tiViewDisplayQuality
296 '-------------------------------------------------------------------------
299 printlog " open application "
301 printlog " Insert->Layer / in impress: ???? "
303 printlog " View->Layer "
306 printlog " View->Layer "
308 printlog " close application "
312 '-------------------------------------------------------------------------
315 printlog " open application "
318 printlog " View->Grid-> "
320 printlog " View->Grid-> "
322 printlog " View->Grid-> "
324 printlog " View->Grid-> "
326 printlog " View->Grid-> "
328 printlog " View->Grid-> "
331 printlog " close application "
335 '-------------------------------------------------------------------------
336 testcase tViewSnapLines
338 printlog " open application "
341 printlog " View->Snap Lines-> "
343 printlog " View->Snap Lines-> "
345 printlog " View->Snap Lines-> "
347 printlog " View->Snap Lines-> "
349 printlog " View->Snap Lines-> "
351 printlog " View->Snap Lines-> "
354 printlog " close application "
357 endcase 'tViewSnapLines