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:42:42 $
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 '/// 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 '/// 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 '/// View->Task Pane ///'
89 if (Tasks.exists) then
90 warnlog "View->Task Panel failed"
93 '/// 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 '/// 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 '/// Reactivate all pages in the Task-panel ///'
131 testcase tiViewMasterView
132 '/// open application ///'
134 '/// View->Master View->Drawing View ///'
136 ViewWorkspaceDrawingView
137 ' Kontext "DocumentImpress"
140 '/// View->Master View->Outline View ///'
141 ViewWorkspaceOutlineView
142 ' Kontext "DocumentImpressOutlineView"
143 ' DocumentImpressOutlineView.MouseDown 70,70
144 ' DocumentImpressOutlineView.MouseUp 70,70
146 '/// View->Master View->Slides View ///'
147 ViewWorkspaceSlidesView
148 ' Kontext "DocumentImpressSlideView"
149 ' DocumentImpressSlideView.MouseDown 70,70
150 ' DocumentImpressSlideView.MouseUp 70,70
152 '/// View->Master View->Notes View ///'
153 ViewWorkspaceNotesView
155 '/// View->Master View->Handout View ///'
156 ViewWorkspaceHandoutView
158 '/// View->Master View->Drawing View ///'
159 ViewWorkspaceDrawingView
160 '/// close application ///'
165 testcase tiViewSlideMaster
166 '/// open application with : File->Autopilot->Presentation; OK; OK ///'
168 FileAutopilotPresentation ' to get a title :-)
170 Kontext "AutopilotPraesentation1"
171 AutopilotPraesentation1.Ok
173 Kontext "Seitenlayout" ' aka: Modify Slide
174 if Seitenlayout.exists(5) then
175 warnlog "Slidelayout has to vanish; moved to sidebar"
178 kontext "DocumentImpress"
180 '/// View->Slide ///'
183 '/// View->Master->Drawing ///'
186 '/// View->Slide ///'
189 '/// View->Master->Title ///'
192 Errorlog "View - Master - Title Slide Master should NOT be accessable"
194 printlog "View - Master - Title Slide Master not accessable - good"
197 '/// View->Slide ///'
200 '/// View->Master->Handout ///'
205 '/// View->Master->Notes ///'
207 kontext "DocumentImpress"
209 '/// View->Slide ///'
212 '/// close application ///'
216 testcase tiViewToolbar_1
217 Dim Zaehler as integer
220 '/// open application ///'
223 '/// Insert->Graphic... : "global\input\graf_inp\desp.bmp" ///'
224 InsertGraphicsFromFile
226 Kontext "GrafikEinfuegenDlg"
228 Dateiname.SetText ConvertPath (gTesttoolPath + "global\input\graf_inp\desp.bmp")
233 if Messagebox.Exists then
234 Warnlog Messagebox.GetText
237 Kontext "DocumentImpress"
238 '/// select graphic ///'
241 Kontext "GraphicObjectbar"
243 '/// The Graphics Toolbar has to be visible now; If not -> ERROR ///'
244 if GraphicObjectbar.Exists Then
245 Printlog "- graphic object toolbar exists"
246 Zaehler=Grafikmodus.GetItemCount
248 Printlog "- access all controls in the toolbar (" +i+"/"+Zaehler+")"
254 Warnlog "- No graphic function toolbar visible"
256 '/// close application ///'