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: im_003_.inc,v $
13 '* last change: $Author: jsi $ $Date: 2008-06-16 10:43:01 $
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 : Impress Resource Test: View Menu
38 '***********************************************************************************
41 ' #1 tiViewSlideMaster
43 '\**********************************************************************************
46 goto endsub 'TODO WG, tiViewPanes outcommented due to reconstruction of test
48 printlog "open application "
53 if (NOT Tasks.exists) then
54 warnlog "Tasks Panel not visible on opening application. Opening now."
58 if (NOT Slides.exists) then
59 warnlog "Slides Panel not visible on opening application. Opening now."
63 printlog "Deactivate all but masterpages "
73 Tasks.TypeKeys ("<RIGHT><RIGHT><RIGHT>")
76 kontext "recentlyUsed"
77 printlog "Toggeling Master Pages now with <space>"
79 MasterPages.typeKeys "<space>"
80 kontext "recentlyUsed"
81 if (recentlyUsed.IsVisible = FALSE) then 'exists = FALSE) then
82 warnlog "View-menu didn't work"
86 printlog "View->Task Pane "
89 if (Tasks.exists) then
90 warnlog "View->Task Panel failed"
93 printlog "View->Task Pane "
96 if (NOT Tasks.exists) then
97 warnlog "View->Task Panel failed"
101 warnlog "View->Task Pane couldn't get executed"
106 if (Slides.exists) then
107 warnlog "View->Slide Panel failed."
110 printlog "View->Slide Pane "
113 if (NOT Slides.exists) then
114 warnlog "View->Slide Panel failed."
118 warnlog "View->Slide Pane couldn't get executed"
121 printlog "Reactivate all pages in the Task-panel "
131 '---------------------------------------------------------
132 testcase tiViewMasterView
134 printlog "open application"
136 printlog "View->Master View->Drawing View"
138 ViewWorkspaceDrawingView
140 printlog "View->Master View->Outline View "
141 ViewWorkspaceOutlineView
143 printlog "View->Master View->Slides View "
144 ViewWorkspaceSlidesView
146 printlog "View->Master View->Notes View "
147 ViewWorkspaceNotesView
149 printlog "View->Master View->Handout View "
150 ViewWorkspaceHandoutView
152 printlog "View->Master View->Drawing View "
153 ViewWorkspaceDrawingView
154 printlog "close application "
158 endcase 'tiViewMasterView
159 '---------------------------------------------------------
160 testcase tiViewSlideMaster
162 printlog "open application with : File->Autopilot->Presentation; OK; OK "
163 FileAutopilotPresentation ' to get a title :-)
165 Kontext "AutopilotPraesentation1"
166 AutopilotPraesentation1.Ok
168 Kontext "Seitenlayout" ' aka: Modify Slide
169 if Seitenlayout.exists(5) then
170 warnlog "Slidelayout has to vanish; moved to sidebar"
173 kontext "DocumentImpress"
175 printlog "View->Slide "
178 printlog "View->Master->Drawing "
181 printlog "View->Slide "
184 printlog "View->Master->Title "
187 Errorlog "View - Master - Title Slide Master should NOT be accessable"
189 printlog "View - Master - Title Slide Master not accessable - good"
192 printlog "View->Slide "
195 printlog "View->Master->Handout "
200 printlog "View->Master->Notes "
202 kontext "DocumentImpress"
204 printlog "View->Slide "
207 printlog "close application "
210 endcase 'tiViewSlideMaster
211 '--------------------------------------------------------
212 testcase tiViewToolbar_1
214 Dim Zaehler as integer
217 printlog "open application "
220 printlog "Insert->Graphic... : global\input\graf_inp\desp.bmp "
221 InsertGraphicsFromFile
223 Kontext "GrafikEinfuegenDlg"
225 Dateiname.SetText ConvertPath (gTesttoolPath + "global\input\graf_inp\desp.bmp")
230 if Messagebox.Exists then
231 Warnlog Messagebox.GetText
234 Kontext "DocumentImpress"
235 printlog "select graphic "
238 Kontext "GraphicObjectbar"
240 printlog "The Graphics Toolbar has to be visible now; If not -> ERROR "
241 if GraphicObjectbar.Exists Then
242 Printlog "- graphic object toolbar exists"
243 Zaehler=Grafikmodus.GetItemCount
245 Printlog "- access all controls in the toolbar (" +i+"/"+Zaehler+")"
251 Warnlog "- No graphic function toolbar visible"
253 printlog "close application "
256 endcase 'tiViewToolbar_1