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_002.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 '***********************************************************************************
41 ' #1 tiEditCutPasteCopySelectall
42 ' #1 tiEditPasteSpecial
43 ' #1 tiEditSearchAndReplace
46 ' #1 tdEditDeleteSlide
49 ' #1 tiEditObjectProperties
54 '\**********************************************************************************
56 testcase tiEditUndoRedo
69 goto endsub 'Quaste, ask FHA
73 Call hRechteckErstellen ( 30, 10, 70, 30 )
75 Call hRechteckErstellen ( 20, 20, 60, 40 )
77 Call hRechteckErstellen ( 80, 50, 40, 20 )
79 ContextArrangeBringBackward
84 Warnlog " Menu entry is disabled #i26129#"
90 testcase tiEditCutPasteCopySelectall
114 testcase tiEditPasteSpecial
117 SetClipboard "This is a Text in the Clipboard"
121 Kontext "InhaltEinfuegen"
122 DialogTest ( InhaltEinfuegen )
124 InhaltEinfuegen.Cancel
129 testcase tiEditSearchAndReplace
135 Kontext "FindAndReplace"
136 DialogTest ( FindAndReplace )
139 SimilaritySearch.Check ' culprint for errors if not resetted !
141 SimilaritySearchFor.Click
142 Kontext "Aehnlichkeitssuche"
143 DialogTest (Aehnlichkeitssuche )
144 Aehnlichkeitssuche.Cancel
145 Kontext "FindAndReplace"
146 SimilaritySearch.UnCheck
150 Warnlog "EditSearchAndReplace caused an error"
155 testcase tiEditDuplicate
161 Kontext "Duplizieren"
162 Call DialogTest ( Duplizieren )
176 testcase tiEditFields
181 gMouseDoubleClick 10,10
184 hTypeKeys "<Tab>" ' With a Tab catches we always the Object
185 hTypeKeys "<F2>" ' Here we enter Edit-Mode and therefore also the right place
186 hTypeKeys "<Home>" ' Here we enter Edit-Mode and therefore also the right place
190 Kontext "FeldbefehlBearbeitenDraw"
191 Call DialogTest ( FeldbefehlBearbeitenDraw )
192 FeldbefehlBearbeitenDraw.Close
194 Warnlog "- Slot could not be accessed"
200 testcase tdEditDeleteSlide
204 hTypekeys "<Pagedown>"
208 if Navigator.exists then
209 printlog "Navigator: open :-)"
211 printlog "Navigator: NOT available :-( Will be opened now!"
215 Kontext "NavigatorDraw"
216 if Liste.GetItemCount<>2 Then
217 Warnlog "- No slide inserted"
236 InsertGraphicsFromFile
237 Kontext "GrafikEinfuegenDlg"
242 Warnlog "- Link in Insert graphic is not working"
244 Dateiname.settext Convertpath (gTesttoolPath + "global\input\graf_inp\stabler.tif")
247 if Messagebox.Exists=True Then
248 Warnlog Messagebox.GetText
251 InsertGraphicsFromFile
252 Kontext "GrafikEinfuegenDlg"
254 Dateiname.SetText ConvertPath (gTesttoolPath + "global\input\graf_inp\desp.bmp")
258 if Messagebox.Exists then
259 Warnlog Messagebox.GetText
264 Warnlog "Insert graphic caused errors"
271 Kontext "VerknuepfungenBearbeiten"
272 Call DialogTest ( VerknuepfungenBearbeiten )
273 VerknuepfungenBearbeiten.Close
276 Warnlog "- EditLinks could not be executed, could be the graphic was not imported"
282 testcase tiEditImageMap
286 Kontext "ImageMapEditor"
288 if ImageMapEditor.Exists (2) then
289 printlog "- ImageMap exists"
290 DialogTest ( ImageMapEditor )
293 Printlog "ImageMap closed using the close button"
296 Printlog "ImageMap closed using menue 'edit-imagemap'"
299 warnlog "ImageMap didn't come up!"
304 testcase tiEditObjectProperties
312 Kontext "TabEigenschaften"
313 FrameName.SetText "Hello"
314 Inhalt.SetText ConvertPath ( gTesttoolpath + "global\input\graf_inp\desp.bmp" )
318 gMouseDoubleClick 1,1
326 Kontext "TabEigenschaften"
327 DialogTest ( TabEigenschaften )
331 Call DialogTest ( OeffnenDlg )
333 Kontext "TabEigenschaften"
334 TabEigenschaften.Cancel
339 testcase tiEditObjectEdit
343 InsertObjectOLEObject
345 Kontext "OLEObjektEinfuegen"
347 OLEObjektEinfuegen.OK
355 ' try EditObjectEdit again, to see, if it is in edit mode !
359 warnlog " Couldn't get into edit mode!"
361 printlog "Reached edit mode - ok :-)"
368 Kontext "SpeichernDlg"
369 Call DialogTest ( SpeichernDlg )
373 if Active.Exists(2) then Active.No
377 testcase tiEditPlugIn
381 Kontext "PlugInEinfuegen"
382 ' DialogTest ( PlugInEinfuegen)
385 ' Call DialogTest ( OeffnenDlg )
386 if OeffnenDlg.exists (5) then
389 warnlog "Open file dialog didn't come up"
392 Kontext "PlugInEinfuegen"
393 if PlugInEinfuegen.exists then
394 DateiUrl.SetText (ConvertPath ( gTesttoolpath + "graphics\required\input\sample.mov" ))
396 Optionen.SetText "Fiddler's Green"
397 Optionen.TypeKeys "<HOME>"
398 Optionen.TypeKeys "<SHIFT><END>"
399 Optionen.TypeKeys "<delete>"
402 warnlog "Insert plugin isn't visible"
406 if Messagebox.exists (5) then
407 warnlog "Messagebox: " + Messagebox.gettext
411 printlog "Editplugin works!"
416 testcase tiEditHyperlink
421 Auswahl.MouseDown 50, 5
422 Auswahl.MouseUp 50, 5
423 Auswahl.typekeys "<PAGEDOWN><PAGEUP>"
424 Auswahl.typekeys "<TAB>"
426 Kontext "TabHyperlinkInternet"
428 'Workaround to get rid of a Focusing-problem...
429 NameText.Typekeys "alal <RETURN>"
430 NameText.Typekeys "<MOD1 A><DELETE>"
431 TabHyperlinkInternet.Typekeys "<TAB>", 6
432 TabHyperlinkInternet.Typekeys "<LEFT>", 3
433 'End of workaround...
435 Internet.Check 'Just to make sure the radio-button is addressable.
436 ZielUrl.Settext "http://www.liegerad-fahrer.de"
440 hTypeKeys "<TAB><F2>"
445 if Hyperlink.Exists then
448 Warnlog "- Hyperlinkdialog not up"
451 Warnlog "- Not able to edit Hyperlink!"