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: w_insertgraphic3.inc,v $
13 '* last change: $Author: fredrikh $ $Date: 2008-06-18 15:03:54 $
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 : helge.delfs@sun.com
36 '* short description : Test of the insert graphic function - 3
38 '************************************************************************
40 ' #1 tInsertGraphic_21 'Test Alignment via dialog: anchor to paragraph -> Left, centered, right, top, center, bottom
41 ' #1 tInsertGraphic_22 'Test Alignment via dialog: anchor to page -> Left, centered, right, top, center, bottom
42 ' #1 tInsertGraphic_23 'Test Alignment via dialog: anchor to character -> Left, centered, right, top, center, bottom
43 ' #1 tInsertGraphic_24 'Test Alignment via dialog: anchor as character -> top, center, bottom of baseline
44 ' #1 tInsertGraphic_25 'Test Alignment via Contextmenu: anchor to paragraph -> Left, centered, right, top, center, bottom
45 ' #1 tInsertGraphic_26 'Test Alignment via Contextmenu: anchor to page -> Left, centered, right, top, center, bottom
46 ' #1 tInsertGraphic_27 'Test Alignment via Contextmenu: anchor to character -> Left, centered, right, top, center, bottom
47 ' #1 tInsertGraphic_28 'Test Alignment via Contextmenu: anchor as character -> top, center, bottom of baseline
48 ' #1 tInsertGraphic_29 'Test Wrap via dialog : none, Page Wrap, Optimal Page Wrap, Contour Wrap ,Wrap through, in Background , first paragraph
49 ' #1 tInsertGraphic_30 'Test Wrap via ContextMenuTest : none, Page Wrap, Optimal Page Wrap, Contour Wrap ,Wrap through, in Background , first paragraph
51 '\***********************************************************************
53 testcase tInsertGraphic_21
55 Dim iLeft as Integer , iRight as Integer , iCenterHorizontal as Integer
56 Dim iTop as Integer , iBottom as Integer , iCenterVertical as Integer
58 iLeft = 1 : iRight = 2 : iCenterHorizontal = 3
59 iTop = 1 : iBottom = 2 : iCenterVertical = 3
61 PrintLog "- Test Alignment via dialog: anchor to paragraph -> Left, centered, right, top, center, bottom"
62 '/// Test Alignment via dialog: anchor to paragraph -> Left, centered, right, top, center, bottom
66 '/// Insert a graphics
67 fInsertGraphics("Bughunter.jpg")
69 '/// Format / anchor / to paragraph
70 FormatAnchorToParagraph
74 '/// Format / Alignment / Left
78 '/// - Check the graphic position
79 fFormatGraphic("TabType")
81 if AnchorAtparagraph.IsChecked <> TRUE then Warnlog "Anchor should be checked to 'to paragraph' !"
82 if Horizontal.GetSelIndex <> iLeft then Warnlog "The graphic's Horizontal option is not correct ! "
83 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
87 '/// Format / Alignment / Centered
88 FormatAlignmentCentered
91 '/// - Check the graphic position
92 fFormatGraphic("TabType")
94 if Horizontal.GetSelIndex <> iCenterHorizontal then Warnlog "The graphic's Horizontal option is not correct ! "
95 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
99 '/// Format / Alignment / Right
103 '/// - Check the graphic position
104 fFormatGraphic("TabType")
106 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
107 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
111 '/// Format / Alignment / Top
115 '/// - Check the graphic position
116 fFormatGraphic("TabType")
118 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
119 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
123 '/// Format / Alignment / Center
124 FormatAlignmentCenter
127 '/// - Check the graphic position
128 fFormatGraphic("TabType")
130 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
131 if Vertical.GetSelIndex <> iCenterVertical then Warnlog "#110281# The graphic's Vertical option is not correct ! "
135 '/// Format / Alignment / Bottom
136 FormatAlignmentBottom
139 '/// - Check the graphic position
140 fFormatGraphic("TabType")
142 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
143 if Vertical.GetSelIndex <> iBottom then Warnlog "The graphic's Vertical option is not correct ! "
150 '-------------------------------------------------------------------------------------------
152 testcase tInsertGraphic_22
154 Dim iLeft as Integer , iRight as Integer , iCenterHorizontal as Integer
155 Dim iTop as Integer , iBottom as Integer , iCenterVertical as Integer
157 iLeft = 1 : iRight = 2 : iCenterHorizontal = 3
158 iTop = 1 : iBottom = 2 : iCenterVertical = 3
160 PrintLog "- Test Alignment via dialog: anchor to page -> Left, centered, right, top, center, bottom"
161 '/// Test Alignment via dialog: anchor to page -> Left, centered, right, top, center, bottom
165 '/// Insert a graphics
166 fInsertGraphics("Bughunter.jpg")
168 '/// Format / anchor / To Page
173 '/// Format / Alignment / Left
177 '/// - Check the graphic position
178 fFormatGraphic("TabType")
180 if AnchorAtPage.IsChecked <> TRUE then Warnlog "Anchor should be checked to 'To Page' !"
181 if Horizontal.GetSelIndex <> iLeft then Warnlog "The graphic's Horizontal option is not correct ! "
182 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
185 PrintLog " Centered:"
186 '/// Format / Alignment / Centered
187 FormatAlignmentCentered
190 '/// - Check the graphic position
191 fFormatGraphic("TabType")
193 if Horizontal.GetSelIndex <> iCenterHorizontal then Warnlog "The graphic's Horizontal option is not correct ! "
194 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
198 '/// Format / Alignment / Right
202 '/// - Check the graphic position
203 fFormatGraphic("TabType")
205 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
206 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
210 '/// Format / Alignment / Top
214 '/// - Check the graphic position
215 fFormatGraphic("TabType")
217 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
218 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
222 '/// Format / Alignment / Center
223 FormatAlignmentCenter
226 '/// - Check the graphic position
227 fFormatGraphic("TabType")
229 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
230 if Vertical.GetSelIndex <> iCenterVertical then Warnlog "The graphic's Vertical option is not correct ! "
234 '/// Format / Alignment / Bottom
235 FormatAlignmentBottom
238 '/// - Check the graphic position
239 fFormatGraphic("TabType")
241 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
242 if Vertical.GetSelIndex <> iBottom then Warnlog "The graphic's Vertical option is not correct ! "
249 '-------------------------------------------------------------------------------------------
251 testcase tInsertGraphic_23
253 Dim iLeft as Integer , iRight as Integer , iCenterHorizontal as Integer
254 Dim iTop as Integer , iBottom as Integer , iCenterVertical as Integer
256 iLeft = 1 : iRight = 2 : iCenterHorizontal = 3
257 iTop = 1 : iBottom = 2 : iCenterVertical = 3
259 PrintLog "- Test Alignment via dialog: anchor to character -> Left, centered, right, top, center, bottom"
260 '/// Test Alignment via dialog: anchor to character -> Left, centered, right, top, center, bottom
264 '/// Insert a graphics
265 fInsertGraphics("Bughunter.jpg")
267 '/// Format / anchor / To character
268 FormatAnchorTocharacter
272 '/// Format / Alignment / Left
276 '/// - Check the graphic position
277 fFormatGraphic("TabType")
279 if AnchorAtCharacter.IsChecked <> TRUE then Warnlog "Anchor should be checked to 'to paragraph' !"
280 if Horizontal.GetSelIndex <> iLeft then Warnlog "The graphic's Horizontal option is not correct ! "
281 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
284 PrintLog " Centered:"
285 '/// Format / Alignment / Centered
286 FormatAlignmentCentered
289 '/// - Check the graphic position
290 fFormatGraphic("TabType")
292 if Horizontal.GetSelIndex <> iCenterHorizontal then Warnlog "The graphic's Horizontal option is not correct ! "
293 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
297 '/// Format / Alignment / Right
301 '/// - Check the graphic position
302 fFormatGraphic("TabType")
304 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
305 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
309 '/// Format / Alignment / Top
313 '/// - Check the graphic position
314 fFormatGraphic("TabType")
316 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
317 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
321 '/// Format / Alignment / Center
322 FormatAlignmentCenter
325 '/// - Check the graphic position
326 fFormatGraphic("TabType")
328 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
329 if Vertical.GetSelIndex <> iCenterVertical then qaErrorLog "#111962# The graphic's Vertical option is not correct ! "
333 '/// Format / Alignment / Bottom
334 FormatAlignmentBottom
337 '/// - Check the graphic position
338 fFormatGraphic("TabType")
340 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
341 if Vertical.GetSelIndex <> iBottom then Warnlog "The graphic's Vertical option is not correct ! "
348 '-------------------------------------------------------------------------------------------
350 testcase tInsertGraphic_24
352 Dim iTop as Integer , iBottom as Integer , iCenterVertical as Integer
354 iTop = 1 : iBottom = 2 : iCenterVertical = 3
356 PrintLog "- Test Alignment via dialog: anchor as character -> top, center, bottom of baseline"
357 '/// Test Alignment via dialog: anchor as character -> top, center, bottom of baseline
361 '/// Insert a graphics
362 fInsertGraphics("Bughunter.jpg")
364 '/// Format / anchor / As character
365 FormatAnchorAsCharacter
368 PrintLog " Base line at top:"
369 '/// Format / Alignment / Base line at top
373 '/// - Check the graphic position
374 fFormatGraphic("TabType")
376 if Horizontal.IsEnabled = TRUE then Warnlog "The Horizontal listbox should not be enabled ! "
377 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
380 PrintLog " Base line at center:"
381 '/// Format / Alignment / Base line at center
382 FormatAlignmentCenter
385 '/// - Check the graphic position
386 fFormatGraphic("TabType")
388 if Horizontal.IsEnabled = TRUE then Warnlog "The Horizontal listbox should not be enabled ! "
389 if Vertical.GetSelIndex <> iCenterVertical then Warnlog "The graphic's Vertical option is not correct ! "
392 PrintLog " Base line at bottom:"
393 '/// Format / Alignment / Base line at bottom
394 FormatAlignmentBottom
397 '/// - Check the graphic position
398 fFormatGraphic("TabType")
400 if Horizontal.IsEnabled = TRUE then Warnlog "The Horizontal listbox should not be enabled ! "
401 if Vertical.GetSelIndex <> iBottom then Warnlog "The graphic's Vertical option is not correct ! "
408 '-------------------------------------------------------------------------------------------
410 testcase tInsertGraphic_25
412 Dim iLeft as Integer , iRight as Integer , iCenterHorizontal as Integer
413 Dim iTop as Integer , iBottom as Integer , iCenterVertical as Integer
415 iLeft = 1 : iRight = 2 : iCenterHorizontal = 3
416 iTop = 1 : iBottom = 2 : iCenterVertical = 3
418 PrintLog "- Test Alignment via Contextmenu: anchor to paragraph -> Left, centered, right, top, center, bottom"
419 '/// Test Alignment via Contextmenu: anchor to paragraph -> Left, centered, right, top, center, bottom
423 '/// Insert a graphics
424 fInsertGraphics("Bughunter.jpg")
426 '/// ContextMenu anchor / to paragraph
427 Call wOpenContextMenu
434 '/// ContextMenu Alignment / Left
435 Call wOpenContextMenu
441 '/// - Check the graphic position
442 fFormatGraphic("TabType")
444 if AnchorAtparagraph.IsChecked <> TRUE then Warnlog "Anchor should be checked to 'to paragraph' !"
445 if Horizontal.GetSelIndex <> iLeft then Warnlog "The graphic's Horizontal option is not correct ! "
446 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
449 PrintLog " Centered:"
450 '/// ContextMenu Alignment / Centered
451 Call wOpenContextMenu
457 '/// - Check the graphic position
458 fFormatGraphic("TabType")
460 if Horizontal.GetSelIndex <> iCenterHorizontal then Warnlog "The graphic's Horizontal option is not correct ! "
461 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
465 '/// ContextMenu Alignment / Right
466 Call wOpenContextMenu
472 '/// - Check the graphic position
473 fFormatGraphic("TabType")
475 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
476 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
480 '/// ContextMenu Alignment / Top
481 Call wOpenContextMenu
487 '/// - Check the graphic position
488 fFormatGraphic("TabType")
490 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
491 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
495 '/// ContextMenu Alignment / Center
496 Call wOpenContextMenu
502 '/// - Check the graphic position
503 fFormatGraphic("TabType")
505 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
506 if Vertical.GetSelIndex <> iCenterVertical then Warnlog "#110281# The graphic's Vertical option is not correct ! "
510 '/// ContextMenu Alignment / Bottom
511 Call wOpenContextMenu
517 '/// - Check the graphic position
518 fFormatGraphic("TabType")
520 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
521 if Vertical.GetSelIndex <> iBottom then Warnlog "The graphic's Vertical option is not correct ! "
528 '-------------------------------------------------------------------------------------------
530 testcase tInsertGraphic_26
532 Dim iLeft as Integer , iRight as Integer , iCenterHorizontal as Integer
533 Dim iTop as Integer , iBottom as Integer , iCenterVertical as Integer
535 iLeft = 1 : iRight = 2 : iCenterHorizontal = 3
536 iTop = 1 : iBottom = 2 : iCenterVertical = 3
538 PrintLog "- Test Alignment via Contextmenu: anchor to page -> Left, centered, right, top, center, bottom"
539 '/// Test Alignment via dialog: Contextmenu to page -> Left, centered, right, top, center, bottom
543 '/// Insert a graphics
544 fInsertGraphics("Bughunter.jpg")
546 '/// ContextMenu anchor / To Page
547 Call wOpenContextMenu
554 '/// ContextMenu Alignment / Left
555 Call wOpenContextMenu
561 '/// - Check the graphic position
562 fFormatGraphic("TabType")
564 if AnchorAtPage.IsChecked <> TRUE then Warnlog "Anchor should be checked to 'To Page' !"
565 if Horizontal.GetSelIndex <> iLeft then Warnlog "The graphic's Horizontal option is not correct ! "
566 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
569 PrintLog " Centered:"
570 '/// ContextMenu Alignment / Centered
571 Call wOpenContextMenu
577 '/// - Check the graphic position
578 fFormatGraphic("TabType")
580 if Horizontal.GetSelIndex <> iCenterHorizontal then Warnlog "The graphic's Horizontal option is not correct ! "
581 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
585 '/// ContextMenu Alignment / Right
586 Call wOpenContextMenu
592 '/// - Check the graphic position
593 fFormatGraphic("TabType")
595 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
596 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
600 '/// ContextMenu Alignment / Top
601 Call wOpenContextMenu
607 '/// - Check the graphic position
608 fFormatGraphic("TabType")
610 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
611 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
615 '/// ContextMenu Alignment / Center
616 Call wOpenContextMenu
622 '/// - Check the graphic position
623 fFormatGraphic("TabType")
625 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
626 if Vertical.GetSelIndex <> iCenterVertical then Warnlog "The graphic's Vertical option is not correct ! "
630 '/// ContextMenu Alignment / Bottom
631 Call wOpenContextMenu
637 '/// - Check the graphic position
638 fFormatGraphic("TabType")
640 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
641 if Vertical.GetSelIndex <> iBottom then Warnlog "The graphic's Vertical option is not correct ! "
648 '-------------------------------------------------------------------------------------------
650 testcase tInsertGraphic_27
652 Dim iLeft as Integer , iRight as Integer , iCenterHorizontal as Integer
653 Dim iTop as Integer , iBottom as Integer , iCenterVertical as Integer
655 iLeft = 1 : iRight = 2 : iCenterHorizontal = 3
656 iTop = 1 : iBottom = 2 : iCenterVertical = 3
658 PrintLog "- Test Alignment via Contextmenu: anchor to character -> Left, centered, right, top, center, bottom"
659 '/// Test Alignment via Contextmenu: anchor to character -> Left, centered, right, top, center, bottom
663 '/// Insert a graphics
664 fInsertGraphics("Bughunter.jpg")
666 '/// ContextMenu anchor / To character
667 Call wOpenContextMenu
674 '/// ContextMenu Alignment / Left
675 Call wOpenContextMenu
681 '/// - Check the graphic position
682 fFormatGraphic("TabType")
684 if AnchorAtCharacter.IsChecked <> TRUE then Warnlog "Anchor should be checked to 'to paragraph' !"
685 if Horizontal.GetSelIndex <> iLeft then Warnlog "The graphic's Horizontal option is not correct ! "
686 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
689 PrintLog " Centered:"
690 '/// ContextMenu Alignment / Centered
691 Call wOpenContextMenu
697 '/// - Check the graphic position
698 fFormatGraphic("TabType")
700 if Horizontal.GetSelIndex <> iCenterHorizontal then Warnlog "The graphic's Horizontal option is not correct ! "
701 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
705 '/// ContextMenu Alignment / Right
706 Call wOpenContextMenu
712 '/// - Check the graphic position
713 fFormatGraphic("TabType")
715 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
716 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
720 '/// ContextMenu Alignment / Top
721 Call wOpenContextMenu
727 '/// - Check the graphic position
728 fFormatGraphic("TabType")
730 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
731 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
735 '/// ContextMenu Alignment / Center
736 Call wOpenContextMenu
742 '/// - Check the graphic position
743 fFormatGraphic("TabType")
745 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
746 if Vertical.GetSelIndex <> iCenterVertical then QAErrorlog "#111962#The graphic's Vertical option is not correct ! "
750 '/// ContextMenu Alignment / Bottom
751 Call wOpenContextMenu
757 '/// - Check the graphic position
758 fFormatGraphic("TabType")
760 if Horizontal.GetSelIndex <> iRight then Warnlog "The graphic's Horizontal option is not correct ! "
761 if Vertical.GetSelIndex <> iBottom then Warnlog "The graphic's Vertical option is not correct ! "
768 '-------------------------------------------------------------------------------------------
770 testcase tInsertGraphic_28
772 Dim iTop as Integer , iBottom as Integer , iCenterVertical as Integer
774 iTop = 1 : iBottom = 2 : iCenterVertical = 3
776 PrintLog "- Test Alignment via Contextmenu: anchor as character -> top, center, bottom of baseline"
777 '/// Test Alignment via Contextmenu: anchor as character -> top, center, bottom of baseline
781 '/// Insert a graphics
782 fInsertGraphics("Bughunter.jpg")
784 '/// ContextMenu anchor / As character
785 Call wOpenContextMenu
791 PrintLog " Base line at top:"
792 '/// ContextMenu Alignment / Base line at top
793 Call wOpenContextMenu
799 '/// - Check the graphic position
800 fFormatGraphic("TabType")
802 if Horizontal.IsEnabled = TRUE then Warnlog "The Horizontal listbox should not be enabled ! "
803 if Vertical.GetSelIndex <> iTop then Warnlog "The graphic's Vertical option is not correct ! "
806 PrintLog " Base line at center:"
807 '/// ContextMenu Alignment / Base line at center
808 Call wOpenContextMenu
814 '/// - Check the graphic position
815 fFormatGraphic("TabType")
817 if Horizontal.IsEnabled = TRUE then Warnlog "The Horizontal listbox should not be enabled ! "
818 if Vertical.GetSelIndex <> iCenterVertical then Warnlog "The graphic's Vertical option is not correct ! "
821 PrintLog " Base line at bottom:"
822 '/// ContextMenu Alignment / Base line at bottom
823 Call wOpenContextMenu
829 '/// - Check the graphic position
830 fFormatGraphic("TabType")
832 if Horizontal.IsEnabled = TRUE then Warnlog "The Horizontal listbox should not be enabled ! "
833 if Vertical.GetSelIndex <> iBottom then Warnlog "The graphic's Vertical option is not correct ! "
840 '-------------------------------------------------------------------------------------------
842 testcase tInsertGraphic_29
844 PrintLog "- Test Wrap via dialog : none, Page Wrap, Optimal Page Wrap, Contour Wrap ,Wrap through, in Background , first paragraph"
845 '/// <b> Test Wrap via dialog , including </b>
846 '/// + </b> none, Page Wrap, Optimal Page Wrap, Contour Wrap, </b>
847 '/// + </b> Wrap through, in Background, first paragraph </b>
851 '/// Insert a graphics
852 fInsertGraphics("Bughunter.jpg")
854 PrintLog " 1. No Wrap:"
855 '/// Format / Wrap / No Wrap
859 fFormatGraphic("TabUmlauf")
861 if Kein.IsChecked <> TRUE then Warnlog "Graphic wrapping situation is wrong !"
864 PrintLog " 2. Page Wrap:"
865 '/// Format / Wrap / Page Wrap
869 fFormatGraphic("TabUmlauf")
871 if Parallel.IsChecked <> TRUE then Warnlog "Graphic wrapping situation is wrong !"
874 PrintLog " 3. Optimal Page Wrap:"
875 '/// Format / Wrap / Optimal Page Wrap
876 FormatWrapOptimalPageWrap
879 fFormatGraphic("TabUmlauf")
881 if Dynamisch.IsChecked <> TRUE then Warnlog "Graphic wrapping situation is wrong !"
884 PrintLog " 4. Wrap through:"
885 '/// Format / Wrap / Wrap through
889 fFormatGraphic("TabUmlauf")
891 if Durchlauf.IsChecked <> TRUE then Warnlog "Graphic wrapping situation is wrong !"
894 PrintLog " 5. In Background:"
895 '/// Format / Wrap / in Background
896 FormatWrapInBackground
899 fFormatGraphic("TabUmlauf")
901 if Durchlauf.IsChecked <> TRUE then Warnlog "Graphic wrapping situation is wrong !"
902 if ImHintergrund.IsChecked <> TRUE then Warnlog "Background configuration is wrong !"
905 PrintLog " 6. first paragraph:"
906 '/// Format / Wrap / first paragraph
907 FormatWrapFirstparagraph
910 fFormatGraphic("TabUmlauf")
912 if Parallel.IsChecked <> TRUE then QaErrorLog "#i94558# - Graphic wrapping situation is wrong !"
913 if ErsterAbsatz.IsChecked <> TRUE then Warnlog "first paragraph configuration is wrong !"
916 PrintLog " 7. Contour:"
917 '/// Format / Wrap / Contour
923 fFormatGraphic("TabUmlauf")
925 if Kontur.IsChecked <> TRUE then Warnlog "Contour configuration is wrong !"
932 '-------------------------------------------------------------------------------------------
934 testcase tInsertGraphic_30
936 PrintLog "- Test Wrap via Contextmenu : none, Page Wrap, Optimal Page Wrap, Contour Wrap ,Wrap through, in Background , first paragraph"
937 '/// <b> Test Wrap via Contextmenu , including </b>
938 '/// + <b> none, Page Wrap, Optimal Page Wrap, Contour Wrap, </b>
939 '/// + <b> Wrap through, in Background, first paragraph </b>
943 '/// + Insert a graphics
944 fInsertGraphics("Bughunter.jpg")
946 PrintLog " 1. No Wrap:"
947 '/// Contextmenu Wrap / No Wrap
948 Call wOpenContextMenu
954 fFormatGraphic("TabUmlauf")
956 if Kein.IsChecked <> TRUE then Warnlog "Graphic wrapping situation is wrong !"
959 PrintLog " 2. Page Wrap:"
960 '/// Contextmenu Wrap / Page Wrap
961 Call wOpenContextMenu
967 fFormatGraphic("TabUmlauf")
969 if Parallel.IsChecked <> TRUE then QaErrorLog "#i94558# - Graphic wrapping situation is wrong !"
972 PrintLog " 3. Optimal Page Wrap:"
973 '/// Contextmenu Wrap / Optimal Page Wrap
974 Call wOpenContextMenu
980 fFormatGraphic("TabUmlauf")
982 if Dynamisch.IsChecked <> TRUE then Warnlog "Graphic wrapping situation is wrong !"
985 PrintLog " 4. Wrap through:"
986 '/// Contextmenu Wrap / Wrap through
987 Call wOpenContextMenu
993 fFormatGraphic("TabUmlauf")
995 if Durchlauf.IsChecked <> TRUE then Warnlog "Graphic wrapping situation is wrong !"
998 PrintLog " 5. In Background:"
999 '/// Contextmenu Wrap / in Background
1000 Call wOpenContextMenu
1006 fFormatGraphic("TabUmlauf")
1008 if Durchlauf.IsChecked <> TRUE then Warnlog "Graphic wrapping situation is wrong !"
1009 if ImHintergrund.IsChecked <> TRUE then Warnlog "Background configuration is wrong !"
1012 PrintLog " 6. first paragraph:"
1013 '/// Contextmenu Wrap / first paragraph
1014 Call wOpenContextMenu
1020 fFormatGraphic("TabUmlauf")
1022 if Parallel.IsChecked <> TRUE then QaErrorLog "#i94558# - Graphic wrapping situation is wrong !"
1023 if ErsterAbsatz.IsChecked <> TRUE then Warnlog "first paragraph configuration is wrong !"
1026 PrintLog " 7. Contour:"
1027 '/// Contextmenu Wrap / Contour
1028 Call wOpenContextMenu
1034 Call wOpenContextMenu
1040 fFormatGraphic("TabUmlauf")
1042 if Kontur.IsChecked <> TRUE then Warnlog "Contour configuration is wrong !"