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: c_upd_editmenu.inc,v $
13 '* last change: $Author: rt $ $Date: 2008-07-31 19:04:59 $
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 : oliver.craemer@sun.com
36 '* short description : Resource Test - Edit Menu
38 '************************************************************************
45 ' #1 tEditPasteSpecial
48 ' #1 tEditCompareDocuments
49 ' #1 tEditFindAndReplace
50 ' #1 tEditHeadersAndFooters
52 '\***********************************************************************
56 Printlog Chr(13) + "--------- EDIT Menu Part I (c_upd_editmenu.inc) ---------"
63 call tEditPasteSpecial
66 call tEditCompareDocuments
67 call tEditFindAndReplace
68 call tEditHeadersAndFooters
72 '-----------------------------------------------------------
74 testcase tEditUndoRedo
75 '///<u><b>Edit - UndoRedo</b></u>
76 '/// Open new Spreadsheet document
77 printlog " Open new Spreadsheet document"
80 printlog " Enter some text"
81 kontext "DocumentCalc"
82 DocumentCalc.Typekeys "Test<RETURN>"
86 if fCalcGetCellValue ("A1") = "" then
87 printlog " - Undo is working"
89 warnlog "Undo doesn't work"
93 if fCalcGetCellValue ("A1") = "Test" then
94 printlog " - Redo is working"
96 warnlog "Redo doesn't work"
99 printlog " Close document"
104 '-----------------------------------------------------------
107 '///<u><b>Edit - Repeat</b></u>
108 '/// Open new Spreadsheet document
109 printlog " Open new Spreadsheet document"
112 printlog " Enter some text"
113 kontext "DocumentCalc"
114 DocumentCalc.Typekeys "Test<RETURN>"
115 '/// Click on cell A2
116 printlog " Click on cell A2"
117 call fCalcSelectCell ("A2")
118 '/// Repeat insertion via Edit - Repeat
119 printlog " Repeat insertion via Edit - Repeat"
121 if fCalcGetCellValue ("A2") = "Test" then
122 printlog " - Repeat is working"
124 warnlog "Repeat doesn't work"
127 printlog " Close document"
132 '-----------------------------------------------------------
135 '///<u><b>Edit - Cut</b></u>
136 '/// Open new Spreadsheet document
137 printlog " Open new Spreadsheet document"
140 printlog " Enter some text"
141 kontext "DocumentCalc"
142 DocumentCalc.Typekeys "Cutted Text<RETURN>"
143 '/// Click on cell A1
144 printlog " Click on cell A1"
145 call fCalcSelectCell ("A1")
146 '/// Make sure that the clipboard is empty
147 printlog " Make sure that the clipboard is empty"
150 printlog " Cut cellcontent"
152 if GetClipboardText = "Cutted Text" AND fCalcGetCellValue ("A1") = "" then
153 printlog " - Cutting is working"
155 warnlog "Cutting does not work correctly"
158 printlog " Close document"
163 '-----------------------------------------------------------
166 '///<u><b>Edit - Copy</b></u>
167 '/// Open new Spreadsheet document
168 printlog " Open new Spreadsheet document"
171 printlog " Enter some text"
172 kontext "DocumentCalc"
173 DocumentCalc.Typekeys "Copied Text<RETURN>"
174 '/// Click on cell A1
175 printlog " Click on cell A1"
176 call fCalcSelectCell ("A1")
177 '/// Make sure that the clipboard is empty
178 printlog " Make sure that the clipboard is empty"
180 '/// Copy cellcontent
181 printlog " Copy cellcontent"
183 if GetClipboardText = "Copied Text" AND fCalcGetCellValue ("A1") = "Copied Text" then
184 printlog " - Copying is working"
186 warnlog "Copying does not work correctly"
189 printlog " Close document"
194 '-----------------------------------------------------------
197 '///<u><b>Edit - Paste</b></u>
198 '/// Open new Spreadsheet document
199 printlog " Open new Spreadsheet document"
202 printlog " Gotocell A1"
203 call fCalcSelectCell ("A1")
204 '/// Fill clipboard with text
205 printlog " Fill clipboard with text"
206 setclipboard ("Pasted Text")
208 printlog " Paste clipboard"
211 if TextImport.Exists(2) then
212 call DialogTest (TextImport)
213 '/// Close text import dialog with OK.
214 printlog " Close text import dialog with OK."
217 '/// Make sure that the clipboard is empty
218 printlog " Make sure that the clipboard is empty"
220 if fCalcGetCellValue ("A1") = "Pasted Text" then
221 printlog " - Pasting is working"
223 warnlog "Pasting does not work correctly"
225 '/// Check overwrite messagebox via copy cellcontent and paste into itself
226 printlog " Check overwrite messagebox via copy cellcontent and paste into itself"
230 Kontext "CellWarning"
231 Dialogtest (CellWarning)
232 '///<li>Cancel overwrite warning</li>///
234 printlog " - Paste overwrite MsgBox tested"
236 warnlog "MsgBox for overwrite warning doesn't exist"
239 printlog " Close document"
244 '-----------------------------------------------------------
246 testcase tEditPasteSpecial
247 '///<u><b>Edit - PasteSpecial</b></u>
248 '/// Open new Spreadsheet document
249 printlog " Open new Spreadsheet document"
252 printlog " Enter some text"
253 kontext "DocumentCalc"
254 DocumentCalc.Typekeys "Pasted Text<RETURN>"
255 '/// Click on cell A1
256 printlog " Click on cell A1"
257 call fCalcSelectCell ("A1")
258 '/// Copy cellcontent
259 printlog " Copy cellcontent"
261 '/// Paste Special the clipboard
262 printlog " Paste Special the clipboard"
264 kontext "InhalteEinfuegenCalc"
265 call DialogTest (InhalteEinfuegenCalc)
266 '/// Cancel PasteSpecial-Dialog
267 printlog " Cancel PasteSpecial-Dialog"
268 InhalteEinfuegenCalc.Cancel
269 if fCalcGetCellValue ("A1") = "Pasted Text" then
270 printlog " - PasteSpecial of spreadsheet content is working"
272 warnlog "PasteSpecial of spreadsheet content does not work correctly"
274 '/// Insert a picture from file Insert - Graphic - From File
275 printlog " Insert a picture from file Insert - Graphic - From File"
276 InsertGraphicsFromFile
277 Kontext "GrafikEinfuegenDlg"
278 '/// Choose gTesttoolpath + global\input\graf_inp\baer.tif
279 printlog " Choose gTesttoolpath + global\input\graf_inp\baer.tif"
280 Dateiname.Settext (convertpath( gTesttoolpath + "global\input\graf_inp\baer.tif" ))
284 kontext "DocumentCalc"
285 '/// Cut the still selected graphic via Edit - Cut
286 printlog " Cut the still selected graphic via Edit - Cut"
288 '/// PasteSpecial the cutted graphic
289 printlog " PasteSpecial the cutted graphic"
291 kontext "InhaltEinfuegen"
292 call DialogTest (InhaltEinfuegen)
293 printlog " - PasteSpecial of other content is working"
294 '/// Cancel the PasteSpecial dialog
295 printlog " Cancel the PasteSpecial dialog"
296 InhaltEinfuegen.Cancel
298 printlog " Close document"
303 '-----------------------------------------------------------
305 testcase tEditSelectAll
306 '///<u><b>Edit - SelectAll</b></u>
307 '/// Open new Spreadsheet document
308 printlog " Open new Spreadsheet document"
310 '/// Select whole sheet via Edit - Select All
311 printlog " Select whole sheet via Edit - Select All"
313 '/// Check in areafield if the whole sheet is selected (A1:AMJ65536)
314 printlog " Check in areafield if the whole sheet is selected (A1:AMJ65536)"
315 kontext "RechenleisteCalc"
316 if Bereich.getSelText = "A1:AMJ65536" then
317 printlog " - SelectAll is working"
319 if Bereich.getSelText = "A1:IV65536" then
320 printlog " - SelectAll is working"
321 QaErrorLog "This should be a spreadsheet before the column limit (256 -> 1024) was enhanced"
323 warnlog "SelectAll is not working as expected. The area is " & Bereich.getSelText & " instead of A1:IV65536"
327 printlog " Close document"
332 '-----------------------------------------------------------
334 testcase tEditChanges
335 '///<u><b>Edit - Changes</b></u>
337 '/// Open new Spreadsheet document
338 printlog " Open new Spreadsheet document"
341 '/// Activate recording mode via Edit Changes Record
342 printlog " Activate recording mode via Edit Changes Record"
343 EditChangesRecordCalc
344 'If changerecording is initially activated (which should not be) a messagebox appears
346 if active.exists then
348 warnlog "Unexpected state of the office - Redlining was initialy enabled"
349 EditChangesRecordCalc
353 printlog " Enter some text"
354 kontext "DocumentCalc"
355 DocumentCalc.Typekeys "Recorded Text1<RETURN>Recorded Text2<RETURN>"
357 '/// Open Protect changes dialog via Edit - Changes - Protect
358 printlog " Open Protect changes dialog via Edit - Changes - Protect"
359 EditChangesProtectTraceCalc
360 Kontext ("PasswortEingeben")
361 call Dialogtest (PasswortEingeben)
362 '/// Cancel Passwort dialog
363 printlog " Cancel Passwort dialog"
364 PasswortEingeben.Cancel
366 '/// Open Edit - Changes - Show dialog
367 printlog " Open Edit - Changes - Show dialog"
368 kontext "DocumentCalc"
370 kontext "ShowChanges"
371 call Dialogtest (ShowChanges)
372 '/// Check all checkboxes
373 printlog " Check all checkboxes"
374 ShowChangesCalc.Check
379 ShowAcceptedChanges.Check
380 ShowRejectedChanges.Check
381 '/// Click on range chooser button
382 printlog " Click on range chooser button"
384 '/// Enter range A1:B3
385 printlog " Enter range A1:B3"
386 RangeCalc.SetText "A1:B3"
387 '/// Click on enlarge button
388 printlog " Click on enlarge button"
390 '/// Click on 'Clock' button
391 printlog " Click on 'Clock' button"
393 '/// Choose 'Between' in date listbox
394 printlog " Choose 'Between' in date listbox"
396 '/// Now the second datefields are enabled, click on second 'Clock' button
397 printlog " Now the second datefields are enabled, click on second 'Clock' button"
399 '/// Choose first author from list
400 printlog " Choose first author from list"
402 '/// Enter comment 'Test' in comment field
403 printlog " Enter comment 'Test' in comment field"
404 EditComment.SetText "Test"
405 '/// Close Edit - Changes - Show dialog with cancel
406 printlog " Close Edit - Changes - Show dialog with cancel"
409 '/// Open dialog Edit - Changes - Accept or Discard changes
410 printlog " Open dialog Edit - Changes - Accept or Discard changes"
411 EditChangesAcceptOrDiscardCalc
412 Kontext "AenderungenAnzeigen"
413 '/// Choose tabpage List
414 printlog " Choose tabpage List"
416 TabControl.setpage TabListe
418 Call Dialogtest (TabListe)
419 '/// Choose tabpage Filter
420 printlog " Choose tabpage Filter"
422 TabControl.setpage TabFilter
423 Call Dialogtest (TabFilter)
424 '/// Close dialog Edit - Changes - Accept or Discard changes
425 printlog " Close dialog Edit - Changes - Accept or Discard changes"
426 Kontext "AenderungenAnzeigen"
427 AenderungenAnzeigen.close
430 printlog " Select cell A1"
431 call fCalcSelectRange ("A1")
432 '/// Open Comments dialog via Edit - Changes - Comments
433 printlog " Open Comments dialog via Edit - Changes - Comments"
434 EditChangesCommentsCalc
436 call Dialogtest( Kommentar )
437 '/// Click on arrow-right-button
438 printlog " Click on arrow-right-button"
440 '/// Click on arrow-left-button
441 printlog " Click on arrow-left-button"
443 '/// Enter comment "Test"
444 printlog " Enter comment 'Test'"
445 KommentarText.SetText "Test"
446 '/// Close Comments dialog with cancel
447 printlog " Close Comments dialog with cancel"
450 '/// Choose Edit - Changes - Merge Documents
451 printlog " Choose Edit - Changes - Merge Documents"
452 EditChangesMergeDocument
453 '/// Enter filename 'gtesttoolpath +spreadsheet\required\input\merge.ods'
454 printlog " Enter filename 'gtesttoolpath +spreadsheet\required\input\merge.ods'"
456 Dateiname.settext convertpath(gtesttoolpath +"spreadsheet\required\input\merge.ods")
458 printlog " Click Open"
460 '/// Now the redlining dialog should appear. Close dialog with windowcloser
461 printlog " Now the redlining dialog should appear. Close dialog with windowcloser"
462 kontext "AenderungenAnzeigen"
463 AenderungenAnzeigen.close
466 printlog " Close document"
471 '-----------------------------------------------------------
473 testcase tEditCompareDocuments
474 '///<u><b>Edit - Compare Documents</b></u>
475 '/// Open new Spreadsheet document
476 printlog " Open new Spreadsheet document"
479 printlog " Enter some text"
480 kontext "DocumentCalc"
481 DocumentCalc.Typekeys "Inserted Text<RETURN>"
482 '/// Choose Edit - Compare Documents
483 printlog " Choose Edit - Compare Documents"
484 EditCompareDocumentCalc
485 '/// Enter filename 'gtesttoolpath +spreadsheet\required\input\merge.ods'
486 printlog " Enter filename 'gtesttoolpath +spreadsheet\required\input\merge.ods'"
488 Dateiname.settext convertpath(gtesttoolpath +"spreadsheet\required\input\merge.ods")
490 printlog " Click Open"
492 '/// Now the redlining dialog should appear. Close dialog with windowcloser
493 printlog " Now the redlining dialog should appear. Close dialog with windowcloser"
494 kontext "AenderungenAnzeigen"
495 AenderungenAnzeigen.close
497 printlog " Close document"
502 '-----------------------------------------------------------
504 testcase tEditFindAndReplace
505 '///<u><b>Edit - Find And Replace</b></u>
507 Dim bAsianLanguage as boolean
509 '/// Open new Spreadsheet document
510 printlog " Open new Spreadsheet document"
512 '/// Enable 'Asian Language support' ON for getting all controls on dialog
513 printlog " Enable 'Asian Language support' ON for getting all controls on dialog"
514 bAsianLanguage = ActiveDeactivateAsianSupport(TRUE)
516 printlog " Enter some text"
517 kontext "DocumentCalc"
518 DocumentCalc.Typekeys "Inserted Text<RETURN><UP>"
519 '/// Choose Edit - Find And Replace
520 printlog " Choose Edit - Find And Replace"
522 kontext "FindAndReplace"
523 '/// Click 'More' button
524 printlog " Click 'More' button"
526 call DialogTest ( FindAndReplace )
527 '/// By default all checkboxes have to be unchecked.
528 printlog " Uncheck all checkboxes (unchecked is also default)"
529 if not MatchCase.IsEnabled then 'SoundsLike disables MatchCase
532 if MatchCase.IsEnabled then
535 if WholeWordsOnly.IsEnabled then
536 WholeWordsOnly.UnCheck
538 if CurrentSelectionOnly.IsEnabled then
539 CurrentSelectionOnly.UnCheck
541 if Backwards.IsEnabled then
544 if RegularExpressions.IsEnabled then
545 RegularExpressions.UnCheck
547 if SearchForStyles.IsEnabled then
548 SearchForStyles.UnCheck
550 if SearchInAllSheets.IsEnabled then
551 SearchInAllSheets.UnCheck
553 '/// Check SimilaritySearch
554 printlog " Check SimilaritySearch"
555 if SimilaritySearch.IsEnabled then
556 SimilaritySearch.Check
558 '/// Click ...button for similaritysearch
559 printlog " Click ...button for similaritysearch"
560 If SimilaritySearchFor.IsEnabled then
561 SimilaritySearchFor.Click
563 SimilaritySearch.Check
564 SimilaritySearchFor.Click
566 kontext "Aehnlichkeitssuche"
567 call DialogTest ( Aehnlichkeitssuche )
568 '/// Use every control on opened similaritydialog
569 printlog " Use every control on opened similaritydialog"
571 ZeichenHinzufuegen.Less
572 ZeichenEntfernen.More
574 '/// Close similaritydialog with cancel
575 printlog " Close similaritydialog with cancel"
576 Aehnlichkeitssuche.Cancel
577 kontext "FindAndReplace"
578 SimilaritySearch.UnCheck
579 If MatchFullHalfWidth.Isvisible then
580 MatchFullHalfWidth.Uncheck
582 If SoundsLike.Isvisible then
584 SoundsLikeOptions.Click
585 kontext "TabJapaneseFind"
586 call DialogTest ( TabJapaneseFind )
587 TabJapaneseFind.Cancel
588 kontext "FindAndReplace"
594 printlog " Close Dialog"
596 '/// Set the 'Asian Language support' to default
597 printlog " Set the 'Asian Language support' to default"
598 if bAsianLanguage = FALSE then
599 Call ActiveDeactivateAsianSupport(FALSE)
602 printlog " Close document"
607 '-----------------------------------------------------------
609 testcase tEditHeadersAndFooters
610 '///<u><b>Edit - Headers and Footers</b></u>
612 Dim bAsianLanguage as boolean
613 Dim bCTLlanguage as boolean
615 '/// Open new Spreadsheet document
616 printlog " Open new Spreadsheet document"
618 '/// Enable 'Asian and CTL Language support' ON for getting all controls on dialog
619 printlog " Enable 'Asian and CTL Language support' ON for getting all controls on dialog"
620 bAsianLanguage = ActiveDeactivateAsianSupport(TRUE)
621 bCTLLanguage = ActiveDeactivateCTLSupport(TRUE)
622 '/// Disable 'Same content left/right' on Format-Page to get all resources
623 printlog " Disable 'Same content left/right' on Format-Page to get all resources"
624 '/// - Open Format-Page dialog
626 '/// - Switch to tabpage Header
628 Active.SetPage TabKopfzeile
630 if Active.Exists(2) then
631 if Active.GetRT = 304 then
632 Printlog Active.GetText
637 '/// - Uncheck 'Same content left/right'
638 Kontext "TabKopfzeile"
639 InhaltLinksRechtsGleich.uncheck
640 '/// - Switch to tabpage Footer
642 Active.SetPage TabFusszeile
643 Kontext "TabFussZeile"
644 '/// - Uncheck 'Same content left/right'
645 InhaltLinksRechtsGleich.uncheck
646 '/// - Close Dialog with OK
649 '/// Open Edit - Headers & Footers
650 printlog " Open Edit - Headers & Footers"
651 EditHeadersAndFooters
652 '/// Choose tabpage Header (right)
653 printlog " Choose tabpage Header (right)"
655 Active.SetPage TabKopfzeileCalc
656 Kontext "TabKopfzeileCalc"
657 Call DialogTest ( TabKopfzeileCalc )
658 '/// Choose in Listbox Header the first entry (none)
659 printlog " Choose in Listbox Header the first entry (none)"
660 PredefinedHeader.Select 1
661 '/// Enter '1' in left area field
662 printlog " Enter '1' in left area field"
663 LinkerBereich.typeKeys ("1")
664 '/// Enter '1' in middle area field
665 printlog " Enter '1' in middlearea field"
666 MittlererBereich.typeKeys ("1")
667 '/// Enter '1' in right area field
668 printlog " Enter '1' in right area field"
669 RechterBereich.typeKeys ("1")
670 '/// Open fontdialog by clicking on Text Attributes button
671 printlog " Open fontdialog by clicking on Text Attributes button"
673 '/// Now the Dialog for Text Attributes opened. Choose tabpage Font
674 printlog " Now the Dialog for Text Attributes opened. Choose tabpage Font"
676 Active.setpage TabFont
678 Call DialogTest ( TabFont)
679 '/// Count number of western fonts (amount is dependent from system but should be more than one)
680 printlog " Count number of western fonts (amount is dependent from system but should be more than one)"
681 if Fontwest.GetItemCount < 1 then warnlog "The Fontwest listbox is empty"
682 '/// Count number of western Typeface (amount is dependent from font but should be more than one)
683 printlog " Count number of western Typeface (amount is dependent from font but should be more than one)"
684 if StyleWest.GetItemCount < 1 then warnlog "The Stylewest listbox is empty"
685 '/// Count number of western Size (amount is dependent from font but should be more than one)
686 printlog " Count number of western Size (amount is dependent from font but should be more than one)"
687 if SizeWest.GetItemCount < 1 then warnlog "The Sizewest listbox is empty"
688 '/// Count number of western Language (amount is dependent from system but should be more than one)
689 printlog " Count number of western Language (amount is dependent from system but should be more than one)"
690 if LanguageWest.GetItemCount < 1 then warnlog "The Languagewest listbox is empty"
691 '/// Count number of asian fonts (amount is dependent from system but should be more than one)
692 printlog " Count number of asian fonts (amount is dependent from system but should be more than one)"
693 if FontEast.GetItemCount < 1 then warnlog "The Fonteast listbox is empty"
694 '/// Count number of asian Typeface (amount is dependent from font but should be more than one)
695 printlog " Count number of asian Typeface (amount is dependent from font but should be more than one)"
696 if StyleEast.GetItemCount < 1 then warnlog "The Styleeast listbox is empty"
697 '/// Count number of asian Size (amount is dependent from font but should be more than one)
698 printlog " Count number of asian Size (amount is dependent from font but should be more than one)"
699 if SizeEast.GetItemCount < 1 then warnlog "The SizeEast listbox is empty"
700 '/// Count number of asian Language (amount is dependent from system but should be more than one)
701 printlog " Count number of asian Language (amount is dependent from system but should be more than one)"
702 if LanguageEast.GetItemCount < 1 then warnlog "The Languageeast listbox is empty"
703 '/// Count number of CTL fonts (amount is dependent from system but should be more than one)
704 printlog " Count number of CTL fonts (amount is dependent from system but should be more than one)"
705 if FontCTL.GetItemCount < 1 then warnlog "The FontCTL listbox is empty"
706 '/// Count number of CTL Typeface (amount is dependent from font but should be more than one)
707 printlog " Count number of CTL Typeface (amount is dependent from font but should be more than one)"
708 if StyleCTL.GetItemCount < 1 then warnlog "The StyleCTL listbox is empty"
709 '/// Count number of CTL Size (amount is dependent from font but should be more than one)
710 printlog " Count number of CTL Size (amount is dependent from font but should be more than one)"
711 if SizeCTL.GetItemCount < 1 then warnlog "The SizeCTL listbox is empty"
712 '/// Count number of CTL Language (amount is dependent from system but should be more than one)
713 printlog " Count number of CTL Language (amount is dependent from system but should be more than one)"
714 if LanguageCTL.GetItemCount < 1 then warnlog "The LanguageCTL listbox is empty"
715 '/// Choose tabpage Font Effects
716 printlog " Choose tabpage Font Effects"
718 Active.setpage TabFontEffects
719 Kontext "TabFontEffects"
720 Call DialogTest ( TabFontEffects)
721 '/// Choose second entry for Underlining
722 printlog " Choose second entry for Underlining"
724 '/// Count number of Color
725 printlog " Count number of Color"
726 if Color.GetItemCount < 1 then warnlog "The Color listbox is empty"
727 '/// Choose second entry for Strikethrough
728 printlog " Choose second entry for Strikethrough"
729 StrikeThrough.Select 2
730 '/// Check Individual words
731 printlog " Check Individual words"
732 IndividualWords.Check
734 printlog " Check Outline"
737 printlog " Check Shadow"
739 '/// Choose second entry for Relief
740 printlog " Choose second entry for Relief"
742 '/// Verify that Outline and Shadow are now disabled
743 printlog " Verify that Outline and Shadow are now disabled"
744 if Outline.IsEnabled then warnlog "Outline is enabled but should be disabled"
745 if Shadow.IsEnabled then warnlog "Shadow is enabled but should be disabled"
746 '/// Choose second entry for Emphasis mark
747 printlog " Choose second entry for Emphasis mark"
749 '/// Verify that Position is enabled
750 printlog " Verify that Position is enabled"
751 if not Position.IsEnabled then warnlog "Position is disabled but should be enabled"
752 '/// Count number of Font colors
753 printlog " Count number of Font colors"
754 if FontColor.GetItemCount < 1 then warnlog "The FontColor listbox is empty"
755 '/// Choose tabpage Font position
756 printlog " Choose tabpage Font position"
758 Active.setpage TabFontPosition
759 Kontext "TabFontPosition"
760 Call DialogTest ( TabFontPosition)
761 '/// Check Superscript
762 printlog " Check Superscript"
764 '/// Check that Relative Font Size is enabled
765 printlog " Check that Relative Font Size is enabled"
766 if not RelativeFontSize.IsEnabled then warnlog "The RelativeFontSize is disabled but should be enabled"
767 '/// Uncheck Automatic
768 printlog " Uncheck Automatic"
770 '/// Raise Raise/Lower by 1
771 printlog " Raise Raise/Lower by 1"
774 printlog " Check Normal"
776 '/// Verify that Relative font size is disabled
777 printlog " Verify that Relative font size is disabled"
778 if RelativeFontSize.IsEnabled then warnlog "RelativeFontSize is enabled but should be disabled"
779 '/// Verify that Raise is disabled
780 printlog " Verify that Raise is disabled"
781 if RaiseLower.IsEnabled then warnlog "Raise is enabled but should be disabled"
782 '/// Verify that Automatic is disabled
783 printlog " Verify that Automatic is disabled"
784 if Automatic.IsEnabled then warnlog "Automatic is enabled but should be disabled"
786 printlog " Check Subscript"
788 '/// Verify that Relative font size is enabled
789 printlog " Verify that Relative font size is enabled"
790 if not RelativeFontSize.IsEnabled then warnlog "The RelativeFontSize is disabled but should be enabled"
792 printlog " Check Automatic"
794 '/// Verify that Raise is disabled
795 printlog " Verify that Raise is disabled"
796 if RaiseLower.IsEnabled then warnlog "Raise is enabled but should be disabled"
797 '/// Lower Scale width by 1
798 printlog " Lower Scale width by 1"
800 '/// Change Spacing to second entry
801 printlog " Change Spacing to second entry"
803 '/// Verify that SpacingBy is enabled
804 printlog " Verify that SpacingBy is enabled"
805 if not SpacingBy.IsEnabled then warnlog "The SpacingBy is disabled but should be enabled"
806 '/// Change Spacing to first entry
807 printlog " Change Spacing to first entry"
809 '/// Verify that SpacingBy is disabled
810 printlog " Verify that SpacingBy is disabled"
811 if SpacingBy.IsEnabled then warnlog "SpacingBy is enabled but should be disabled"
812 '/// Check Pair kerning
813 printlog " Check Pair kerning"
815 '/// Close Text Attributes dialog with Cancel
816 printlog " Close Text Attributes dialog with Cancel"
817 TabFontPosition.Cancel
819 Kontext "TabKopfzeileCalc"
820 '/// Open menu on File button
821 printlog " Open menu on File button"
822 'Control not usable by testtool (#i85788')
824 '/// Choose second entry
825 printlog " Choose second entry"
828 printlog " Close menu"
830 '/// Click button for Sheetname
831 printlog " Click button for Sheetname"
833 '/// Click button for Page
834 printlog " Click button for Page"
836 '/// Click button for Pages
837 printlog " Click button for Pages"
839 '/// Click button for Date
840 printlog " Click button for Date"
842 '/// Click button for Time
843 printlog " Click button for Time"
846 '/// Choose tabpage Header (left)
847 printlog " Choose tabpage Header (left)"
849 Active.SetPage TabKopfzeileCalcLinks
850 Kontext "TabKopfzeileCalcLinks"
851 Call DialogTest ( TabKopfzeileCalcLinks )
852 '/// Choose in Listbox Header the first entry (none)
853 printlog " Choose in Listbox Header the first entry (none)"
854 PredefinedHeaderLeft.Select 1
855 '/// Enter 'Test' in left area field
856 printlog " Enter 'Test' in left area field"
857 LinkerBereich.typeKeys ("Test")
858 '/// Enter 'Test' in middle area field
859 printlog " Enter 'Test' in middlearea field"
860 MittlererBereich.typeKeys ("Test")
861 '/// Enter 'Test' in right area field
862 printlog " Enter 'Test' in right area field"
863 RechterBereich.typeKeys ("Test")
864 '/// Open fontdialog by clicking on Text Attributes button
865 printlog " Open fontdialog by clicking on Text Attributes button"
867 '/// Now the Dialog for Text Attributes opened. Choose tabpage Font
868 printlog " Now the Dialog for Text Attributes opened. Choose tabpage Font"
870 Active.setpage TabFont
872 '/// Close fontdialog with Cancel
873 printlog " Close fontdialog with Cancel"
875 Kontext "TabKopfzeileCalcLinks"
876 '/// Open menu on File button
877 printlog " Open menu on File button"
878 'Control not usable by testtool (#i85788')
880 '/// Choose second entry
881 printlog " Choose second entry"
884 printlog " Close menu"
886 '/// Click button for Sheetname
887 printlog " Click button for Sheetname"
889 '/// Click button for Page
890 printlog " Click button for Page"
892 '/// Click button for Pages
893 printlog " Click button for Pages"
895 '/// Click button for Date
896 printlog " Click button for Date"
898 '/// Click button for Time
899 printlog " Click button for Time"
902 '/// Choose tabpage Footer (right)
903 printlog " Choose tabpage Footer (right)"
905 Active.SetPage TabFusszeileCalc
906 Kontext "TabFusszeileCalc"
907 Call DialogTest ( TabFusszeileCalc )
908 '/// Choose in Listbox Footer the first entry (none)
909 printlog " Choose in Listbox Footer the first entry (none)"
910 PredefinedFooter.Select 1
911 '/// Enter 'Test' in left area field
912 printlog " Enter 'Test' in left area field"
913 LinkerBereich.typeKeys ("Test")
914 '/// Enter 'Test' in middle area field
915 printlog " Enter 'Test' in middlearea field"
916 MittlererBereich.typeKeys ("Test")
917 '/// Enter 'Test' in right area field
918 printlog " Enter 'Test' in right area field"
919 RechterBereich.typeKeys ("Test")
920 '/// Open fontdialog by clicking on Text Attributes button
921 printlog " Open fontdialog by clicking on Text Attributes button"
923 '/// Now the Dialog for Text Attributes opened. Choose tabpage Font
924 printlog " Now the Dialog for Text Attributes opened. Choose tabpage Font"
926 Active.setpage TabFont
928 '/// Close fontdialog with Cancel
929 printlog " Close fontdialog with Cancel"
931 Kontext "TabFusszeileCalc"
932 '/// Open menu on File button
933 printlog " Open menu on File button"
934 'Control not usable by testtool (#i85788')
936 '/// Choose second entry
937 printlog " Choose second entry"
940 printlog " Close menu"
942 '/// Click button for Sheetname
943 printlog " Click button for Sheetname"
945 '/// Click button for Page
946 printlog " Click button for Page"
948 '/// Click button for Pages
949 printlog " Click button for Pages"
951 '/// Click button for Date
952 printlog " Click button for Date"
954 '/// Click button for Time
955 printlog " Click button for Time"
958 '/// Choose tabpage Footer (left)
959 printlog " Choose tabpage Footer (left)"
961 Active.SetPage TabFusszeileCalcLinks
962 Kontext "TabFusszeileCalcLinks"
963 Call DialogTest ( TabFusszeileCalcLinks )
964 '/// Choose in Listbox Footer the first entry (none)
965 printlog " Choose in Listbox Footer the first entry (none)"
966 PredefinedFooterLeft.Select 1
967 '/// Enter 'Test' in left area field
968 printlog " Enter 'Test' in left area field"
969 LinkerBereich.typeKeys ("Test")
970 '/// Enter 'Test' in middle area field
971 printlog " Enter 'Test' in middlearea field"
972 MittlererBereich.typeKeys ("Test")
973 '/// Enter 'Test' in right area field
974 printlog " Enter 'Test' in right area field"
975 RechterBereich.typeKeys ("Test")
976 '/// Open fontdialog by clicking on Text Attributes button
977 printlog " Open fontdialog by clicking on Text Attributes button"
979 '/// Now the Dialog for Text Attributes opened. Choose tabpage Font
980 printlog " Now the Dialog for Text Attributes opened. Choose tabpage Font"
982 Active.setpage TabFont
984 '/// Close fontdialog with Cancel
985 printlog " Close fontdialog with Cancel"
987 Kontext "TabFusszeileCalcLinks"
988 '/// Open menu on File button
989 printlog " Open menu on File button"
990 'Control not usable by testtool (#i85788')
992 '/// Choose second entry
993 printlog " Choose second entry"
996 printlog " Close menu"
998 '/// Click button for Sheetname
999 printlog " Click button for Sheetname"
1001 '/// Click button for Page
1002 printlog " Click button for Page"
1004 '/// Click button for Pages
1005 printlog " Click button for Pages"
1007 '/// Click button for Date
1008 printlog " Click button for Date"
1010 '/// Click button for Time
1011 printlog " Click button for Time"
1014 '/// Close Headers/Footers-dialog with cancel
1015 printlog " Close Headers/Footers-dialog with cancel"
1016 TabFusszeileCalcLinks.close
1017 '/// Set the 'Asian and CTL Language support' to default
1018 printlog " Set the 'Asian and CTL Language support' to default"
1019 if bAsianLanguage = FALSE then
1020 Call ActiveDeactivateAsianSupport(FALSE)
1022 if bCTLLanguage = FALSE then
1023 Call ActiveDeactivateCTLSupport(FALSE)
1026 printlog " Close document"
1031 '-----------------------------------------------------------