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_007.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 '***********************************************************************************
39 ' #1 tdModifyFlipVertikal
40 ' #1 tdModifyFlipHorizontal
41 ' #1 tdContextConvertIntoCurve
42 ' #1 tdContextConvertIntoPolygon
43 ' #1 tdContextConvertIntoContour
44 ' #1 tdContextConvertInto3D
45 ' #1 tdContextConvertIntoRotationObject
46 ' #1 tdContextConvertIntoBitmap
47 ' #1 tdContextConvertIntoMetaFile
49 ' #1 tdModifyArrangeObjects
50 ' #1 tdModifyAlignment
51 ' #1 tdContextDistribution
52 ' #1 tdContextDescriptionObject
53 ' #1 tdContextNameObject
54 ' #1 tdModifyConnectBreak
56 ' #1 tdModifyCombineSplit
57 '\**********************************************************************************
59 testcase tdModifyFlipVertikal
61 Call hNewDocument ' imp: contextmenue same SID!
63 Call hRechteckErstellen ( 10, 10, 20, 40 )
65 ContextFlipVerticalDraw
66 Printlog "- Flip-vertical is working"
68 Warnlog "- Flip-Vertical does not work"
74 '------------------------------------------------------------------------------------------------------------------------------------------------
76 testcase tdModifyFlipHorizontal
77 Call hNewDocument ' imp: contextmenue same SID!
79 Call hRechteckErstellen ( 10, 10, 20, 40 )
81 ContextFlipHorizontalDraw
82 Printlog "- Flip-horizontal is working"
84 Warnlog "- Flip-horizontal does not work"
90 '------------------------------------------------------------------------------------------------------------------------------------------------
92 testcase tdContextConvertIntoCurve
94 Call hRechteckErstellen ( 10, 10, 20, 40 )
95 ContextConvertIntoCurve
100 '------------------------------------------------------------------------------------------------------------------------------------------------
102 testcase tdContextConvertIntoPolygon
103 dim iWaitIndex as integer
104 Call hNewDocument ' imp: contextmenue same SID!
105 InsertGraphicsFromFile
106 Kontext "GrafikEinfuegenDlg"
108 do while NOT GrafikEinfuegenDlg.Exists AND iWaitIndex < 10
110 iWaitIndex = iWaitIndex + 1
112 if NOT GrafikEinfuegenDlg.Exists AND iWaitIndex = 10 then
113 warnlog "Dialogue Insert Graphics didnt work. Ending testcase."
117 Dateiname.SetText ConvertPath (gTesttoolPath + "global\input\graf_inp\enter.bmp")
120 ContextConvertIntoPolygon
121 Kontext "InPolygonUmwandeln"
122 Call DialogTest (InPolygonUmwandeln)
129 InPolygonUmwandeln.Cancel
134 '------------------------------------------------------------------------------------------------------------------------------------------------
136 testcase tdContextConvertIntoContour
138 Call hRechteckErstellen ( 10, 10, 20, 40 )
139 ContextConvertIntoContour
144 '------------------------------------------------------------------------------------------------------------------------------------------------
146 testcase tdContextConvertInto3D
148 Call hRechteckErstellen ( 10, 10, 20, 40 )
154 '------------------------------------------------------------------------------------------------------------------------------------------------
156 testcase tdContextConvertIntoRotationObject
159 Call hRechteckErstellen (20,20,50,50)
161 ContextConvertInto3DRotationObject
166 '------------------------------------------------------------------------------------------------------------------------------------------------
168 testcase tdContextConvertIntoBitmap
171 InsertGraphicsFromFile
173 Kontext "GrafikEinfuegenDlg"
175 Dateiname.SetText ConvertPath (gTesttoolPath + "global\input\graf_inp\columbia.dxf")
180 ContextConvertIntoBitmap
181 Printlog "- Convert into bitmap is working"
183 Warnlog "- Convert into bitmap does not work"
188 '------------------------------------------------------------------------------------------------------------------------------------------------
190 testcase tdContextConvertIntoMetaFile
193 InsertGraphicsFromFile
196 if Messagebox.Exists (5) Then Messagebox.OK
198 Kontext "GrafikEinfuegenDlg"
200 Dateiname.SetText ConvertPath (gTesttoolPath + "global\input\graf_inp\desp.bmp")
207 ContextConvertIntoMetafile
208 Printlog "- convert into meta file does work"
210 Warnlog "- convert into meta file does not work"
215 '------------------------------------------------------------------------------------------------------------------------------------------------
217 testcase tdModifyArrange
219 Call hRechteckErstellen ( 10, 10, 20, 40 )
220 hTypeKeys("<escape>")
221 Call hRechteckErstellen ( 30, 30, 50, 60 )
222 FormatArrangeBringToFront
224 ContextArrangeBringForward
226 ContextArrangeBringBackward
228 FormatArrangeSendToBack
231 ContextArrangeReverse
236 '------------------------------------------------------------------------------------------------------------------------------------------------
238 testcase tdModifyArrangeObjects
241 Call hRechteckErstellen ( 20, 20, 30, 50 )
242 hTypeKeys("<escape>")
243 Call hRechteckErstellen ( 30,30,50,50 )
244 ContextArrangeInFrontOfObject
246 ContextArrangeBehindObject
252 '------------------------------------------------------------------------------------------------------------------------------------------------
254 testcase tdModifyAlignment
257 Call hRechteckErstellen ( 20, 20, 30, 50 )
260 ContextAlignmentCentered
262 ContextAlignmentRight
266 ContextAlignmentBottom
268 ContextAlignmentCenter
273 '------------------------------------------------------------------------------------------------------------------------------------------------
275 testcase tdContextDistribution
278 Call hRechteckErstellen (20,20,30,30)
279 Call hRechteckErstellen (40,40,50,50)
280 Call hRechteckErstellen (60,60,70,70)
285 Kontext "VerteilenDlg"
287 Call DialogTest (VerteilenDlg)
290 MitteHorizontal.Check
291 AbstandHorizontal.Check
293 KeineHorizontal.Check
296 AbstandVertikal.Check
304 '------------------------------------------------------------------------------------------------------------------------------------------------
306 testcase tdContextDescriptionObject
309 Call hRechteckErstellen ( 10, 10, 20, 40 )
310 ContextDescriptionObject
311 Kontext "DescriptionObject"
312 Call DialogTest (DescriptionObject)
313 DescriptionObject.Cancel
317 '------------------------------------------------------------------------------------------------------------------------------------------------
319 testcase tdContextNameObject
322 Call hRechteckErstellen ( 20, 20, 30, 50 )
323 hTypeKeys("<escape>")
324 Call hRechteckErstellen ( 30, 40, 50, 60 )
331 Kontext "NameDlgObject"
332 Call DialogTest (NameDlgObject)
338 '------------------------------------------------------------------------------------------------------------------------------------------------
340 testcase tdModifyConnectBreak
343 Call hRechteckErstellen (10,10,30,30)
344 Call hRechteckErstellen (35,35,50,50)
352 Warnlog "- Modify-Break does not work"
358 '------------------------------------------------------------------------------------------------------------------------------------------------
360 testcase tdModifyShapes
364 Call hRechteckErstellen (30,30,50,50)
365 Call hRechteckErstellen (60,60,80,80)
370 ModifyShapesMerge ' 1
371 WaitSlot (1000) 'sleep 1
372 Printlog "- Modify-Shape merge is working"
374 Warnlog "- Modify-shape merge is not working"
380 Call hRechteckErstellen (30,30,50,50)
381 Call hRechteckErstellen (60,60,80,80)
386 ModifyShapesSubstract ' 2
387 Printlog "- Modify-shape-substract is working"
389 Warnlog "- Modify-shape substract is not working"
396 Call hRechteckErstellen (30,30,50,50)
398 Call hRechteckErstellen (60,60,80,80)
403 ModifyShapesIntersect ' 3
404 Printlog "- Modify-shape intersect is working"
406 Warnlog "- Modify-Shape intersect is not working"
411 '------------------------------------------------------------------------------------------------------------------------------------------------
413 testcase tdModifyCombineSplit
416 Call hRechteckErstellen (30,30,50,50)
417 Call hRechteckErstellen (60,60,80,80)
423 Printlog "- Modify combine is working"
425 Printlog "- Modify-split is working"
427 Warnlog "- Modify-combine and split are not working"
432 '------------------------------------------------------------------------------------------------------------------------------------------------