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:42:41 $
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 '\**********************************************************************************
48 testcase tiViewNavigator
51 Kontext "NavigatorDraw"
52 if Not NavigatorDraw.Exists Then
55 Kontext "NavigatorDraw"
56 Call DialogTest ( NavigatorDraw )
62 Errorlog " Navigator wasn't closed, second try with Menu"
68 '-------------------------------------------------------------------------
75 DialogTest ( Massstab )
80 '-------------------------------------------------------------------------
82 testcase tiViewToolbar
85 ViewToolbarsThreeDSettings
87 ViewToolbarsThreeDSettings
110 ' if gApplication = "IMPRESS" then
111 ' ViewToolbarsPresentation ' only in impress, not draw
112 ' ViewToolbarsPresentation
115 ViewToolbarsFormControls
117 ViewToolbarsFormControls
121 ViewToolbarsFormDesign
123 ViewToolbarsFormDesign
126 ViewToolbarsFormNavigation
128 ViewToolbarsFormNavigation
131 ViewToolbarsGluepoints
133 ViewToolbarsGluepoints
145 ViewToolbarsMediaPlayback
147 ViewToolbarsMediaPlayback
150 ViewToolbarsOptionbar
152 ViewToolbarsOptionbar
165 ViewToolbarsStandardView
167 ViewToolbarsStandardView
170 ViewToolbarsHyperlinkbar
172 ViewToolbarsHyperlinkbar
180 ViewToolbarsCustomize
184 Messagebox.SetPage TabCustomizeMenu ' 1 ------------------
186 warnlog "couldn't switch to tabpage 'Menus'"
188 Kontext "TabCustomizeMenu"
189 if TabCustomizeMenu.exists(5) then
190 Call DialogTest ( TabCustomizeMenu )
191 Menu.typeKeys("<down>")
192 Entries.typeKeys("<down>")
196 Kontext "MenuOrganiser"
197 Call DialogTest ( MenuOrganiser )
200 Kontext "TabCustomizeMenu"
201 TabCustomizeMenu.Close
208 '-------------------------------------------------------------------------
210 testcase tiViewDisplayQuality
213 Call hRechteckErstellen 20,20,40,40
216 ViewQualityBlackWhite
217 Printlog "- Quality set to black and white"
219 Warnlog "- Slot could not be accessed"
224 Printlog "- View quality set to greyscale"
226 Warnlog "- View quality greyscale could not be accessed"
231 Printlog "- View quality set to colour"
233 Warnlog "- View quality colour could not be accessed"
238 '-------------------------------------------------------------------------
249 '-------------------------------------------------------------------------
264 '-------------------------------------------------------------------------
266 testcase tViewSnapLines