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 2000, 2010 Oracle and/or its affiliates.
7 ' OpenOffice.org - a multi-platform office productivity suite
9 ' This file is part of OpenOffice.org.
11 ' OpenOffice.org is free software: you can redistribute it and/or modify
12 ' it under the terms of the GNU Lesser General Public License version 3
13 ' only, as published by the Free Software Foundation.
15 ' OpenOffice.org is distributed in the hope that it will be useful,
16 ' but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ' GNU Lesser General Public License version 3 for more details
19 ' (a copy is included in the LICENSE file that accompanied this code).
21 ' You should have received a copy of the GNU Lesser General Public License
22 ' version 3 along with OpenOffice.org. If not, see
23 ' <http://www.openoffice.org/license.html>
24 ' for a copy of the LGPLv3 License.
26 '/***********************************************************************
28 '* owner : oliver.craemer@oracle.com
30 '* short description : Resource Test - Format Menu Part I
32 '************************************************************************
34 ' #1 tFormatDefaultFormatting
39 ' #1 tFormatMergeCells
42 '\***********************************************************************
46 Printlog Chr(13) + "--------- Format Menu Part I (c_upd_formatmenu.inc) ---------"
48 call tFormatDefaultFormatting
53 call tFormatMergeCells
58 '-----------------------------------------------------------
60 testcase tFormatDefaultFormatting
61 '///<u><b>Format - Default Formatting</b></u>
63 '/// Opening new spreadsheet document for getting defined starting environment
64 printlog " Opening new spreadsheet document for getting defined starting environment"
66 '/// Select cell A1:D4
67 printlog " Select cell A1:D4"
68 call fCalcSelectRange ("A1:D4")
69 '/// Use 'Format – Default Formatting
70 printlog " Use 'Format – Default Formatting"
72 '/// Close starting document
73 printlog " Close starting document"
78 '-----------------------------------------------------------
81 '///<u><b>Format - Cells</b></u>
83 Dim bAsianLanguage as boolean
84 Dim bCTLlanguage as boolean
86 '/// Open new Spreadsheet document
87 printlog " Open new Spreadsheet document"
89 '/// Open 'Format Cells' – dialog by 'Format – Cells'
90 printlog " Open 'Format Cells' – dialog by 'Format – Cells'"
92 '/// Switch to tabpage 'Numbers'
93 printlog " Switch to tabpage 'Numbers'"
95 active.SetPage TabZahlen
97 Call DialogTest ( TabZahlen )
98 '/// Verify that there are 11 items in the 'Category' list
99 printlog " Verify that there are 11 items in the 'Category' list"
100 if Kategorie.GetItemCount <> 11 then
101 warnlog "The number of categories are" & Kategorie.GetItemCount & " instead of 11"
103 '/// Choose category 'Currency' (5th in list)
104 printlog " Choose category 'Currency' (5th in list)"
106 '/// Verify that the 'Format' now contains a language listbox
107 printlog " Verify that the 'Format' now contains a language listbox"
108 if FormatSprache.Exists then
109 '/// Verify that the 'Language' listbox has items
110 printlog " Verify that the 'Language' listbox has items"
111 if FormatSprache.GetItemCount < 1 then
112 warnlog "The language listbox is empty"
115 warnlog "There is no languagelistbox"
117 '/// Type 'Test' in editfield for 'Format code'
118 printlog " Type 'Test' in editfield for 'Format code'"
119 FormatCode.SetText "Test"
120 '/// Press 'Edit Comment' button
121 printlog " Press 'Edit Comment' button"
123 '/// Enter 'My Format' in the comment field
124 printlog " Enter 'My Format' in the comment field"
125 Kommentar.SetText "My Format"
126 '/// Press 'Edit Comment' button again to finish the input
127 printlog " Press 'Edit Comment' button again to finish the input"
129 '/// Press the 'Add' button
130 printlog " Press the 'Add' button"
132 '/// Press the 'Delete' button
133 printlog " Press the 'Delete' button"
135 '/// Close 'Format Cells' – dialog with 'Cancel'
136 printlog " Close 'Format Cells' – dialog with 'Cancel'"
139 '/// Enable language support for CJK and CTL (Tools-Options-Language Support)
140 printlog " Enable language support for CJK and CTL (Tools-Options-Language Support)"
141 bAsianLanguage = ActiveDeactivateAsianSupport(TRUE)
142 bCTLLanguage = ActiveDeactivateCTLSupport(TRUE)
143 '/// Open 'Format Cells' – dialog by 'Format – Cells'
144 printlog " Open 'Format Cells' – dialog by 'Format – Cells'"
146 '/// Switch to tabpage 'Font'
147 printlog " Switch to tabpage 'Font'"
149 active.SetPage TabFont
151 Call DialogTest ( TabFont,2 )
152 '/// Verify that the fontlistbox for 'Western text font' has items
153 printlog " Verify that the fontlistbox for 'Western text font' has items"
154 if FontWest.GetItemCount < 1 then
155 warnlog "The fontlistbox is empty"
157 '/// Verify that the Typeface listbox for 'Western text font' has items
158 printlog " Verify that the Typeface listbox for 'Western text font' has items"
159 if StyleWest.GetItemCount < 1 then
160 warnlog "The stylelistbox is empty"
162 '/// Verify that the Size listbox for 'Western text font' has items
163 printlog " Verify that the Size listbox for 'Western text font' has items"
164 if SizeWest.GetItemCount < 1 then
165 warnlog "The sizelistbox is empty"
167 '/// Verify that the Languag for 'Western text font'e listbox has items
168 printlog " Verify that the Languag for 'Western text font'e listbox has items"
169 if LanguageWest.GetItemCount < 1 then
170 warnlog "The languagelistbox is empty"
172 '/// Verify that the fontlistbox for 'Asian text font' has items
173 printlog " Verify that the fontlistbox for 'Asian text font' has items"
174 if FontEast.GetItemCount < 1 then
175 warnlog "The fontlistbox is empty"
177 '/// Verify that the Typeface listbox for 'Asian text font' has items
178 printlog " Verify that the Typeface listbox for 'Asian text font' has items"
179 if StyleEast.GetItemCount < 1 then
180 warnlog "The stylelistbox is empty"
182 '/// Verify that the Size listbox for 'Asian text font' has items
183 printlog " Verify that the Size listbox for 'Asian text font' has items"
184 if SizeEast.GetItemCount < 1 then
185 warnlog "The sizelistbox is empty"
187 '/// Verify that the Language for 'Asian text font'e listbox has items
188 printlog " Verify that the Language for 'Asian text font'e listbox has items"
189 if LanguageEast.GetItemCount < 1 then
190 warnlog "The languagelistbox is empty"
192 '/// Verify that the fontlistbox for 'CTL font' has items
193 printlog " Verify that the fontlistbox for 'CTL font' has items"
194 if FontCTL.GetItemCount < 1 then
195 warnlog "The fontlistbox is empty"
197 '/// Verify that the Typeface listbox for 'CTL font' has items
198 printlog " Verify that the Typeface listbox for 'CTL font' has items"
199 if StyleCTL.GetItemCount < 1 then
200 warnlog "The stylelistbox is empty"
202 '/// Verify that the Size listbox for 'CTL font' has items
203 printlog " Verify that the Size listbox for 'CTL font' has items"
204 if SizeCTL.GetItemCount < 1 then
205 warnlog "The sizelistbox is empty"
207 '/// Verify that the Language listbox for 'CTL font' has items
208 printlog " Verify that the Language listbox for 'CTL font' has items"
209 if LanguageCTL.GetItemCount < 1 then
210 warnlog "The languagelistbox is empty"
213 '/// Switch to tabpage 'Font Effects'
214 printlog " Switch to tabpage 'Font Effects'"
216 active.SetPage TabFontEffects
217 Kontext "TabFontEffects"
218 Call DialogTest ( TabFontEffects )
219 '/// Choose second entry for 'Underlining'
220 printlog " Choose second entry for 'Underlining'"
222 '/// Check that the 'Color' listbox is enabled
223 printlog " Check that the 'Color' listbox is enabled"
224 if not Color.IsEnabled then
225 warnlog "The colorbox is not enabled"
227 '/// Choose second entry for 'Strikethrough'
228 printlog " Choose second entry for 'Strikethrough'"
229 StrikeThrough.Select 2
230 '/// Check that the 'IndividualWords' checkbox is enabled
231 printlog " Check that the 'IndividualWords' checkbox is enabled"
232 if not IndividualWords.IsEnabled then
233 warnlog "The checkbox for IndividualWords is not enabled"
235 '/// Choose first entry for 'Relief' (without)
236 printlog " Choose first entry for 'Relief' (without)"
239 printlog " Check Outline"
240 if Outline.IsEnabled then
244 printlog " Check Shadow"
245 if Shadow.IsEnabled then
248 '/// Choose second entry for 'Emphasis mark'
249 printlog " Choose second entry for 'Emphasis mark'"
251 '/// Check that the 'Position' listbox is enabled
252 printlog " Check that the 'Position' listbox is enabled"
253 if not Position.IsEnabled then
254 warnlog "The Position listbox is disabled"
256 '/// Check that the 'Font Color' listbox has items
257 printlog " Check that the 'Font Color' listbox has items"
258 if FontColor.GetItemCount < 1 then
259 warnlog "The fontcolorbox is empty"
262 '/// Switch to tabpage 'Alignment'
263 printlog " Switch to tabpage 'Alignment'"
265 active.SetPage TabAusrichtung
266 Kontext "TabAusrichtung"
267 Call DialogTest ( TabAusrichtung )
268 '/// Choose second entry for 'Horizontal'
269 printlog " Choose second entry for 'Horizontal'"
270 ListeHAusrichtung.Select 2
271 '/// Increase the 'Indent'
272 printlog " Increase the 'Indent'"
273 if Einzug.IsEnabled then
276 '/// Check that the 'Vertical' listbox has items
277 printlog " Check that the 'Vertical' listbox has items"
278 if ListeVAusrichtung.GetItemCount < 1 then
279 warnlog "The 'Vertical' listbox is empty"
281 '/// Check 'Vertically stacked' checkbox
282 printlog " Check 'Vertically stacked' checkbox"
284 if not VertikaleAusrichtung.IsEnabled then
285 warnlog "The 'Asian layout mode is not enabled"
287 '/// Uncheck 'Vertically stacked' checkbox
288 printlog " Uncheck 'Vertically stacked' checkbox"
290 '/// Increse the 'Degrees'
291 printlog " Increse the 'Degrees'"
293 '/// Check 'Wrap text automatically' checkbox
294 printlog " Check 'Wrap text automatically' checkbox"
296 '/// Verify that the 'Hyphenation active' checkbox is enabled
297 printlog " Verify that the 'Hyphenation active' checkbox is enabled"
298 if not Silbentrennung.IsEnabled then
299 warnlog "The hypenation checkbox is not enabled"
301 '/// Uncheck 'Wrap text automatically' checkbox
302 printlog " Uncheck 'Wrap text automatically' checkbox"
303 Zeilenumbruch.UnCheck
304 '/// Verify that the 'Shrink to fit cell size' checkbox is enabled
305 printlog " Verify that the 'Shrink to fit cell size' checkbox is enabled"
306 if not ShrinkToFit.IsEnabled then
307 warnlog "The 'Shrink to fit cell size' checkbox is disabled"
309 '/// Check that the 'Text direction' listbox has items
310 printlog " Check that the 'Text direction' listbox has items"
311 if SetAlignmentOptions.GetItemCount < 1 then
312 warnlog "The 'Text direction' listbox is empty"
315 '/// Switch to tabpage 'Asian Typography'
316 printlog " Switch to tabpage 'Asian Typography'"
318 active.SetPage TabAsianTypography
319 Kontext "TabAsianTypography"
320 Call DialogTest ( TabAsianTypography )
321 '/// Verify that the checkbox for 'Apply list...' exists
322 printlog " Verify that the checkbox for 'Apply list...' exists"
323 if not ApplyList.Exists then
324 warnlog "The checkbox does not exists"
326 '/// Verify that the checkbox for 'Allow hanging punctation' exists
327 printlog " Verify that the checkbox for 'Allow hanging punctation' exists"
328 if not AllowHangingPunctuation.Exists then
329 warnlog "The checkbox does not exists"
331 '/// Verify that the checkbox for 'Apply spacing...' exists
332 printlog " Verify that the checkbox for 'Apply spacing...' exists"
333 if not ApplySpacingBetween.Exists then
334 warnlog "The checkbox does not exists"
337 '/// Switch to tabpage 'Borders'
338 printlog " Switch to tabpage 'Borders'"
340 active.SetPage TabUmrandung
341 Kontext "TabUmrandung"
342 Call DialogTest ( TabUmrandung )
343 '/// Verify that the 'Line Style' listbox has items
344 printlog " Verify that the 'Line Style' listbox has items"
345 if Stil.GetItemCount < 1 then
346 warnlog "The 'Line Style' listbox is empty"
348 '/// Verify that the 'Color' listbox has items
349 printlog " Verify that the 'Color' listbox has items"
350 if StilFarbe.GetItemCount < 1 then
351 warnlog "The 'Line Color' listbox is empty"
354 printlog " Increase 'left'"
356 '/// Decrease 'Right'
357 printlog " Decrease 'Right'"
360 printlog " Increase 'Top'"
362 '/// Decrease 'Bottom'
363 printlog " Decrease 'Bottom'"
365 '/// Check checkbox 'Synchronize'
366 printlog " Check checkbox 'Synchronize'"
367 Synchronisieren.Check
368 '/// Choose second position for 'Shadow Style'
369 printlog " Choose second position for 'Shadow Style'"
370 Position.TypeKeys "<Right>"
371 '/// Increase 'Distance'
372 printlog " Increase 'Distance'"
374 '/// Verify that the 'Color' listbox has items
375 printlog " Verify that the 'Color' listbox has items"
376 if SchattenFarbe.GetItemCount < 1 then
377 warnlog "The listbox for color is empty"
380 '/// Switch to tabpage 'Background'
381 printlog " Switch to tabpage 'Background'"
383 active.SetPage TabHintergrund
384 Kontext "TabHintergrund"
385 Call DialogTest ( TabHintergrund )
387 '/// Switch to tabpage 'Cell Protection'
388 printlog " Switch to tabpage 'Cell Protection'"
390 active.SetPage TabZellschutz
391 Kontext "TabZellschutz"
392 Call DialogTest ( TabZellschutz )
393 '/// Use every checkbox
394 printlog " Use every checkbox"
395 AllesAusblenden.Uncheck
397 FormelAusblenden.Uncheck
398 FuerAusdruckAusblenden.Uncheck
399 '/// Close 'Format Cells' – dialog with 'Cancel'
400 printlog " Close 'Format Cells' – dialog with 'Cancel'"
402 '/// Set support for CJK and CTL back to default (Tools – Options – Language Support)
403 printlog " Set support for CJK and CTL back to default (Tools – Options – Language Support)"
404 if bAsianLanguage = FALSE then
405 Call ActiveDeactivateAsianSupport(FALSE)
407 if bCTLLanguage = FALSE then
408 Call ActiveDeactivateCTLSupport(FALSE)
411 printlog " Close document"
416 '-----------------------------------------------------------
419 '///<u><b>Format - Row</b></u>
421 '/// Open new Spreadsheet document
422 printlog " Open new Spreadsheet document"
424 '/// Open 'Row Height' – dialog by 'Format – Row – Height'
425 printlog " Open 'Row Height' – dialog by 'Format – Row – Height'"
427 Kontext "ZeilenHoehe"
428 DialogTest ( ZeilenHoehe
429 '/// Increase 'Height'
430 printlog " Increase 'Height'"
432 '/// Close dialog with 'Cancel'
433 printlog " Close dialog with 'Cancel'"
435 '/// Open 'Optimal Row Height' – dialog by 'Format – Row – Optimal Height'
436 printlog " Open 'Optimal Row Height' – dialog by 'Format – Row – Optimal Height'"
437 FormatRowOptimalHeightCalc
438 Kontext "ZeileOptimaleHoehe"
439 DialogTest ( ZeileOptimaleHoehe )
440 '/// Increase 'Height'
441 printlog " Increase 'Height'"
443 '/// Check 'Default Value'
444 printlog " Check 'Default Value'"
446 '/// Close dialog with 'Cancel'
447 printlog " Close dialog with 'Cancel'"
448 ZeileOptimaleHoehe.Cancel
449 '/// Hide row with 'Format – Row – Hide'
450 printlog " Hide row with 'Format – Row – Hide'"
452 '/// Show row with 'Format – Row – Show'
453 printlog " Show row with 'Format – Row – Show'"
456 printlog " Close document"
461 '-----------------------------------------------------------
463 testcase tFormatColumn
464 '///<u><b>Format - Column</b></u>
466 '/// Open new Spreadsheet document
467 printlog " Open new Spreadsheet document"
469 '/// Open 'Column Width' – dialog by 'Format – Column – Width'
470 printlog " Open 'Column Width' – dialog by 'Format – Column – Width'"
471 FormatColumnWidthCalc
472 Kontext "SpaltenBreiteCalc"
473 DialogTest ( SpaltenBreiteCalc )
474 '/// Increase 'Width'
475 printlog " Increase 'Width'"
477 '/// Close dialog with 'Cancel'
478 printlog " Close dialog with 'Cancel'"
479 SpaltenBreiteCalc.Cancel
480 '/// Open 'Optimal Column Width' – dialog by 'Format – Column – Optimal Width'
481 printlog " Open 'Optimal Column Width' – dialog by 'Format – Column – Optimal Width'"
482 FormatColumnOptimalWidthCalc
483 Kontext "SpalteOptimaleBreite"
484 DialogTest ( SpalteOptimaleBreite )
485 '/// Increase 'Width'
486 printlog " Increase 'Width'"
488 '/// Check 'Default Value'
489 printlog " Check 'Default Value'"
491 '/// Close dialog with 'Cancel'
492 printlog " Close dialog with 'Cancel'"
493 SpalteOptimaleBreite.Cancel
494 '/// Hide Column with 'Format – Column – Hide'
495 printlog " Hide Column with 'Format – Column – Hide'"
497 '/// Show Column with 'Format – Column – Show'
498 printlog " Show Column with 'Format – Column – Show'"
501 printlog " Close document"
506 '-----------------------------------------------------------
508 testcase tFormatSheet
509 '///<u><b>Format - Sheet</b></u>
511 Dim bAsianLanguage as boolean
512 Dim bCTLlanguage as boolean
514 '/// Open new Spreadsheet document
515 printlog " Open new Spreadsheet document"
517 '/// Open 'Rename Sheet' – dialog by 'Format – Sheet'
518 printlog " Open 'Rename Sheet' – dialog by 'Format – Sheet'"
520 Kontext "TabelleUmbenennen"
521 DialogTest ( TabelleUmbenennen )
522 '/// Close 'Rename Sheet' – dialog with 'Cancel'
523 printlog " Close 'Rename Sheet' – dialog with 'Cancel'"
524 TabelleUmbenennen.Cancel
525 '/// 'Hide' sheet by 'Format – Sheet – Hide'
526 printlog " 'Hide' sheet by 'Format – Sheet – Hide'"
528 '/// Open 'Show Sheet' – dialog by 'Format – Sheet – Show'
529 printlog " Open 'Show Sheet' – dialog by 'Format – Sheet – Show'"
531 Kontext "TabelleEinblenden"
532 DialogTest ( TabelleEinblenden )
533 '/// Close 'Show Sheet' – dialog with 'Cancel'
534 printlog " Close 'Show Sheet' – dialog with 'Cancel'"
535 TabelleEinblenden.Cancel
536 '/// Enable language support for CJK and CTL (Tools-Options-Language Support)
537 printlog " Enable language support for CJK and CTL (Tools-Options-Language Support)"
538 bAsianLanguage = ActiveDeactivateAsianSupport(TRUE)
539 bCTLLanguage = ActiveDeactivateCTLSupport(TRUE)
540 '/// Switch sheet layout to 'Right-To-Left' by 'Format – Sheet – Right-To-Left'
541 printlog " Switch sheet layout to 'Right-To-Left' by 'Format – Sheet – Right-To-Left'"
542 FormatSheetRightToLeft
543 '/// Switch sheet layout back
544 printlog " Switch sheet layout back"
545 FormatSheetRightToLeft
546 '/// Set support for CJK and CTL back to default (Tools – Options – Language Support)
547 printlog " Set support for CJK and CTL back to default (Tools – Options – Language Support)"
548 if bAsianLanguage = FALSE then
549 Call ActiveDeactivateAsianSupport(FALSE)
551 if bCTLLanguage = FALSE then
552 Call ActiveDeactivateCTLSupport(FALSE)
555 printlog " Close document"
560 '-----------------------------------------------------------
562 testcase tFormatMergeCells
563 '///<u><b>Format - Merge Cells</b></u>
565 '/// Open new Spreadsheet document
566 printlog " Open new Spreadsheet document"
568 '/// Select cells A1:D4
569 printlog " Select cells A1:D4"
570 call fCalcSelectRange ("A1:D4")
571 '/// 'Merge Cells' by 'Format – Merge Cells'
572 printlog " 'Merge Cells' by 'Format – Merge Cells'"
575 printlog " Close starting document"
580 '-----------------------------------------------------------
583 '///<u><b>Format - Page</b></u>
585 Dim bAsianLanguage as boolean
586 Dim bCTLlanguage as boolean
588 '/// Open new Spreadsheet document
589 printlog " Open new Spreadsheet document"
591 '/// Enable language support for CJK and CTL (Tools-Options-Language Support)
592 printlog " Enable language support for CJK and CTL (Tools-Options-Language Support)"
593 bAsianLanguage = ActiveDeactivateAsianSupport(TRUE)
594 bCTLLanguage = ActiveDeactivateCTLSupport(TRUE)
595 '/// Open 'Page Style' – dialog with 'Format – Page'
596 printlog " Open 'Page Style' – dialog with 'Format – Page'"
599 '/// Switch to tabpage 'Organizer'
600 printlog " Switch to tabpage 'Organizer'"
602 active.SetPage TabVerwalten
603 Kontext "TabVerwalten"
604 Call DialogTest ( TabVerwalten )
606 '/// Switch to tabpage 'Page'
607 printlog " Switch to tabpage 'Page'"
609 active.SetPage TabSeite
611 Call DialogTest ( TabSeite )
612 '/// Check that the 'Format' listbox has items
613 printlog " Check that the 'Format' listbox has items"
614 if Papierformat.GetItemCount < 1 then
615 warnlog "No paperformats available"
617 '/// Increase 'Width'
618 printlog " Increase 'Width'"
620 '/// Decrease 'Height'
621 printlog " Decrease 'Height'"
623 '/// Check option 'Landscape'
624 printlog " Check option 'Landscape'"
626 '/// Check that listbox 'Text direction' has items
627 printlog " Check that listbox 'Text direction' has 2 items"
628 if Textfluss.GetItemCount <> 2 then
629 warnlog "The text direction listbox is empty"
631 '/// Check that listbox 'Paper tray' has items
632 printlog " Check that listbox 'Paper tray' has items"
633 if Schacht.GetItemCount < 1 then
634 warnlog "The paper tray listbox is empty"
636 '/// Increase 'Margins Left'
637 printlog " Increase 'Margins Left'"
639 '/// Decrease 'Margins Right'
640 printlog " Decrease 'Margins Right'"
642 '/// Increase 'Margins Top'
643 printlog " Increase 'Margins Top'"
645 '/// Decrease 'Margins Bottom'
646 printlog " Decrease 'Margins Bottom'"
648 '/// Check that listbox 'Page layout' has items
649 printlog " Check that listbox 'Page layout' has items"
650 if Seitenlayout.GetItemCount < 1 then
651 warnlog "No pagelayouts available"
653 '/// Check that listbox 'Format' has items
654 printlog " Check that listbox 'Format' has items"
655 if Numerierung.GetItemCount < 1 then
656 warnlog "No formats available"
658 '/// Check 'Table alignment Horizontal'
659 printlog " Check 'Table alignment Horizontal'"
661 '/// Check 'Table alignment Vertical'
662 printlog " Check 'Table alignment Vertical'"
665 '/// Switch to tabpage 'Borders'
666 printlog " Switch to tabpage 'Borders'"
668 active.SetPage TabUmrandung
669 Kontext "TabUmrandung"
670 Call DialogTest ( TabUmrandung )
671 '/// Verify that listbox 'Style' has items
672 printlog " Verify that listbox 'Style' has items"
673 if Stil.GetItemCount < 1 then
674 warnlog "No styles available"
676 '/// Verify that the listbox 'Color' has items
677 printlog " Verify that the listbox 'Color' has items"
678 if StilFarbe.GetItemCount < 1 then
679 warnlog "No style colors available"
681 '/// Increase 'Spacing to contents Left'
682 printlog " Increase 'Spacing to contents Left'"
684 '/// Decrease 'Spacing to contents Right'
685 printlog " Decrease 'Spacing to contents Right'"
687 '/// Increase 'Spacing to contents Top'
688 printlog " Increase 'Spacing to contents Top'"
690 '/// Decrease 'Spacing to contents Bottom'
691 printlog " Decrease 'Spacing to contents Bottom'"
693 '/// Check 'Synchronize'
694 printlog " Check 'Synchronize'"
695 Synchronisieren.Check
696 '/// Choose second position for 'Shadow Style'
697 printlog " Choose second position for 'Shadow Style'"
698 Position.TypeKeys "<Right>"
699 '/// Increase 'Distance'
700 printlog " Increase 'Distance'"
702 '/// Verify that the 'Color' listbox has items
703 printlog " Verify that the 'Color' listbox has items"
704 if SchattenFarbe.GetItemCount < 1 then
705 warnlog "The listbox for color is empty"
708 '/// Switch to tabpage 'Background'
709 printlog " Switch to tabpage 'Background'"
711 active.SetPage TabHintergrund
712 Kontext "TabHintergrund"
713 '/// Choose first entry 'Color'
714 printlog " Choose first entry 'Color'"
716 Call DialogTest ( TabHintergrund,1 )
717 '/// Choose next color
718 printlog " Choose next color"
719 Hintergrundfarbe.TypeKeys "<Down>"
720 '/// Choose second entry 'Graphic'
721 printlog " Choose second entry 'Graphic'"
723 Call DialogTest ( TabHintergrund,2 )
724 '/// Click on 'Browse' – button
725 printlog " Click on 'Browse' – button"
727 Kontext "GrafikEinfuegenDlg"
728 Call DialogTest (GrafikEinfuegenDlg)
729 '/// Enter filename 'global\input\graf_inp\'
730 printlog " Enter filename 'global\input\graf_inp\borabora.jpg'"
731 Dateiname.Settext convertpath(gTesttoolpath + "global\input\graf_inp\borabora.jpg")
732 '/// Verify that there are more than one filter available
733 printlog " Verify that there are more than one filter available"
734 if Dateityp.GetItemCount < 2 then
735 warnlog "The filterlist is empty"
737 '/// Check 'Link' – option
738 printlog " Check 'Link' – option"
740 '/// Check 'Preview' - option
741 printlog " Check 'Preview' - option"
743 '/// Close dialog with 'Cancel'
744 printlog " Close dialog with 'Cancel'"
745 GrafikEinfuegenDlg.Cancel
746 Kontext "TabHintergrund"
747 '/// Choose 'Type' 'Position'
748 printlog " Choose 'Type' 'Position'"
751 printlog " Check 'Preview'"
754 '/// Switch to tabpage 'Header'
755 printlog " Switch to tabpage 'Header'"
757 active.SetPage TabKopfzeile
758 Kontext "TabKopfzeile"
759 Call DialogTest ( TabKopfzeile )
760 '/// Check option 'Header on'
761 printlog " Check option 'Header on'"
762 KopfzeileMitAbstand.Check
763 '/// Check option 'Same content left/right'
764 printlog " Check option 'Same content left/right'"
765 InhaltLinksRechtsGleich.Check
766 '/// Increase 'Left margin'
767 printlog " Increase 'Left margin'"
768 LinkerRandKopfzeile.More
769 '/// Decrease 'Right margin'
770 printlog " Decrease 'Right margin'"
771 RechterRandKopfzeile.Less
772 '/// Increase 'Spacing'
773 printlog " Increase 'Spacing'"
775 '/// Decrease 'Height'
776 printlog " Decrease 'Height'"
778 '/// Check option 'AutoFit height'
779 printlog " Check option 'AutoFit height'"
781 '/// Click 'More' – button
782 printlog " Click 'More' – button"
784 '/// Switch to tabpage 'Borders'
785 printlog " Switch to tabpage 'Borders'"
787 Active.SetPage TabUmrandung
788 Kontext "TabUmrandung"
789 Call DialogTest (TabUmrandung)
790 '/// Switch to tabpage 'Background'
791 printlog " Switch to tabpage 'Background'"
793 active.SetPage TabHintergrund
794 Kontext "TabHintergrund"
795 '/// Choose first entry 'Color'
796 printlog " Choose first entry 'Color'"
798 Call DialogTest ( TabHintergrund,1 )
799 '/// Choose second entry 'Graphic'
800 printlog " Choose second entry 'Graphic'"
802 Call DialogTest ( TabHintergrund,2 )
803 '/// Close dialog with 'Cancel'
804 printlog " Close dialog with 'Cancel'"
805 TabHintergrund.Cancel
806 '/// Press 'Edit' – button
807 printlog " Press 'Edit' – button"
808 Kontext "TabKopfzeile"
810 Kontext "TabKopfzeileCalc"
811 Call DialogTest ( TabKopfzeileCalc )
812 '/// Close dialog with 'Cancel'
813 printlog " Close dialog with 'Cancel'"
814 TabKopfzeileCalc.Cancel
815 '/// Switch to tabpage 'Footer'
816 printlog " Switch to tabpage 'Footer'"
818 active.SetPage TabFusszeile
819 Kontext "TabFusszeile"
820 DialogTest (TabFusszeile)
821 '/// Check option 'Footer on'
822 printlog " Check option 'Footer on'"
823 FusszeileMitAbstand.Check
824 '/// Check option 'Same content left/right'
825 printlog " Check option 'Same content left/right'"
826 InhaltLinksRechtsGleich.Check
827 '/// Increase 'Left margin'
828 printlog " Increase 'Left margin'"
829 LinkerRandFusszeile.More
830 '/// Decrease 'Right margin'
831 printlog " Decrease 'Right margin'"
832 RechterRandFusszeile.Less
833 '/// Increase 'Spacing'
834 printlog " Increase 'Spacing'"
836 '/// Decrease 'Height'
837 printlog " Decrease 'Height'"
839 '/// Check option 'AutoFit height'
840 printlog " Check option 'AutoFit height'"
842 '/// Click 'More' – button
843 printlog " Click 'More' – button"
845 '/// Switch to tabpage 'Borders'
846 printlog " Switch to tabpage 'Borders'"
848 Active.SetPage TabUmrandung
849 Kontext "TabUmrandung"
850 '/// Switch to tabpage 'Background'
851 printlog " Switch to tabpage 'Background'"
853 active.SetPage TabHintergrund
854 Kontext "TabHintergrund"
855 '/// Close dialog with 'Cancel'
856 printlog " Close dialog with 'Cancel'"
857 TabHintergrund.Cancel
858 '/// Press 'Edit' – button
859 printlog " Press 'Edit' – button"
860 Kontext "TabFusszeile"
862 '/// Close dialog with 'Cancel'
863 printlog " Close dialog with 'Cancel'"
864 Kontext "TabFusszeileCalc"
865 TabFusszeileCalc.Cancel
867 '/// Switch to tabpage 'Sheet'
868 printlog " Switch to tabpage 'Sheet'"
870 active.SetPage TabTabelleCalc
871 Kontext "TabTabelleCalc"
872 '/// Check option 'Left to right, then down'
873 printlog " Check option 'Left to right, then down'"
874 SeitenreihenfolgeLinksRechts.Check
875 '/// Check option 'First page number'
876 printlog " Check option 'First page number'"
877 ErsteSeitenzahl.Check
878 '/// Increase 'Page number'
879 printlog " Increase 'Page number'"
880 NummerErsteSeite.More
881 '/// Check option 'Column and row headers'
882 printlog " Check option 'Column and row headers'"
883 ZeilenSpaltenKoepfe.Check
884 '/// Check option 'Grid'
885 printlog " Check option 'Grid'"
887 '/// Check option 'Notes'
888 printlog " Check option 'Notes'"
890 '/// Check option 'Objects/grphics'
891 printlog " Check option 'Objects/grphics'"
892 GrafikenObjekte.Check
893 '/// Check option 'Charts'
894 printlog " Check option 'Charts'"
896 '/// Check option 'Drawing objects'
897 printlog " Check option 'Drawing objects'"
899 '/// Check option 'Formulas'
900 printlog " Check option 'Formulas'"
902 '/// Check option 'Zero values'
903 printlog " Check option 'Zero values'"
905 '/// Choose first 'Scaling mode' (Reduce/enlarge printout)
906 printlog " Choose first 'Scaling mode' (Reduce/enlarge printout)"
908 DialogTest ( TabTabelleCalc,1 )
909 '/// Increase 'scaling factor'
910 printlog " Increase 'scaling factor'"
911 SkalierungProzent.More
912 '/// Choose second 'Scaling mode' (Fit print range to width/height)
913 printlog " Choose second 'Scaling mode' (Fit print range to width/height)"
915 DialogTest ( TabTabelleCalc,2 )
916 '/// Increase 'Width in pages'
917 printlog " Increase 'Width in pages'"
919 '/// Increase 'Height in pages'
920 printlog " Increase 'Height in pages'"
922 '/// Choose third 'Scaling mode' (Fit print range on number of pages)
923 printlog " Choose third 'Scaling mode' (Fit print range on number of pages)"
925 DialogTest ( TabTabelleCalc,3 )
926 '/// Increase 'Number of pages'
927 printlog " Increase 'Number of pages'"
929 '/// Close 'Page Style' – dialog with 'Cancel'
930 printlog " Close 'Page Style' – dialog with 'Cancel'"
932 '/// Set support for CJK and CTL back to default (Tools – Options – Language Support)
933 printlog " Set support for CJK and CTL back to default (Tools – Options – Language Support)"
934 if bAsianLanguage = FALSE then
935 Call ActiveDeactivateAsianSupport(FALSE)
937 if bCTLLanguage = FALSE then
938 Call ActiveDeactivateCTLSupport(FALSE)
941 printlog " Close starting document"
946 '-----------------------------------------------------------