1 '**************************************************************************
2 ' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 ' Copyright 2000, 2010 Oracle and/or its affiliates.
6 ' OpenOffice.org - a multi-platform office productivity suite
8 ' This file is part of OpenOffice.org.
10 ' OpenOffice.org is free software: you can redistribute it and/or modify
11 ' it under the terms of the GNU Lesser General Public License version 3
12 ' only, as published by the Free Software Foundation.
14 ' OpenOffice.org is distributed in the hope that it will be useful,
15 ' but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ' GNU Lesser General Public License version 3 for more details
18 ' (a copy is included in the LICENSE file that accompanied this code).
20 ' You should have received a copy of the GNU Lesser General Public License
21 ' version 3 along with OpenOffice.org. If not, see
22 ' <http://www.openoffice.org/license.html>
23 ' for a copy of the LGPLv3 License.
25 '/************************************************************************
27 '* owner : helge.delfs@oracle.com
29 '* short description : Testcases for the Format-Menu
31 '\******************************************************************
35 printLog Chr(13) + "--------- Menu Format (w_005_.inc) ----------"
36 gApplication = "WRITER"
42 Call tFormatNumberingBullets
45 Call tFormatChangeCase
51 Call tFormatAutoformatWhileTyping
54 Call tFormatAnchorArea
60 Call tHtmlDocFormatParagraph
61 Call tHtmlDocFormatPage
62 Call tHtmlDocFormatStylist
63 gApplication = "WRITER"
67 '------------------------------------------------------
69 testcase tFormatDefault
70 PrintLog "- Format / Default"
72 printlog " Open new document"
74 printlog " Insert dummy text"
75 Call wBlindtextEinfuegen
76 printlog " Edit / Select All"
78 printlog " Format / Default"
80 printlog " Close active document"
84 '------------------------------------------------------
86 testcase tFormatSections
87 printlog "- Format / Sections"
88 printlog " Open new document"
90 printlog " Insert / Section"
92 printlog " Step through all tabpages"
94 Active.Setpage TabBereiche
96 Bereichsliste.SetText "Mein Bereich"
99 hUseAsyncSlot( "FormatSections" )
100 Kontext "BereicheBearbeiten"
101 Call Dialogtest(BereicheBearbeiten)
105 Active.SetPage TabSpalten
107 Call Dialogtest(TabSpalten)
109 Active.SetPage TabHintergrund
110 Kontext "TabHintergrund"
111 Call DialogTest(TabHintergrund, 1)
113 Call DialogTest (TabHintergrund,2)
117 If Active.Exists then
118 if Active.GetRT = 304 then
119 Warnlog Active.GetText
124 Kontext "GrafikEinfuegenDlg"
125 if ( GrafikEinfuegenDlg.exists( 1 ) ) then
126 GrafikEinfuegenDlg.Cancel
129 warnlog( "Dialog <GrafikEinfuegenDlg> is not available" )
132 Kontext "TabHintergrund"
133 TabHintergrund.Cancel
135 Kontext "BereicheBearbeiten"
136 if ( BereicheBearbeiten.exists( 1 ) ) then
137 BereicheBearbeiten.Cancel
139 warnlog( "Dialog <BereicheBearbeiten> is not available" )
141 printlog " Close active document"
145 '------------------------------------------------------
147 testcase tFormatCharacter
148 PrintLog "- Format / Character"
151 printlog " Open new document"
154 printlog " Format / Character"
157 printlog " Step through all tabpages"
159 active.SetPage TabFont
161 Call DialogTest ( TabFont )
164 active.SetPage TabFontEffects
165 kontext "TabFontEffects"
166 Call DialogTest ( TabFontEffects )
169 Active.SetPage TabFontPosition
170 Kontext "TabFontPosition"
171 Call DialogTest ( TabFontPosition )
173 if gAsianSup = True then
176 Active.SetPage TabAsianLayout
177 Kontext "TabAsianLayout"
178 Call DialogTest ( TabAsianLayout )
180 Warnlog "Tabpage 'Asian Layout' is not visible! Activated in Options ?"
185 active.SetPage TabHyperlinkZeichen
186 Kontext "TabHyperlinkZeichen"
187 Call DialogTest ( TabHyperlinkZeichen )
191 if OeffnenDlg.Exists( 1 ) then
194 Warnlog "File-Open dialog is not up!"
197 Kontext "TabHyperlinkZeichen"
199 ' if no JRE is installed a messagebox appears
203 if Active.Exists then
204 if Active.GetRT = 304 then
205 if j = 1 then Warnlog Active.Gettext
214 Kontext "MakroZuweisen"
215 Call DialogTest ( MakroZuweisen )
218 active.SetPage TabHintergrund
219 kontext "TabHintergrund"
220 Call DialogTest ( TabHintergrund )
221 printlog " Close dialog"
224 printlog " Close active document"
228 '------------------------------------------------
230 testcase tFormatChangeCase
231 printlog "- Format / Change Case"
232 printlog " Open new document"
234 printlog " Insert some text in document and select text"
235 Call wTypeKeys ("call him now ! please")
236 Call wTypeKeys ("<Shift Home>")
238 printlog " Format / Case Characters / Upper"
239 hUseAsyncSlot( "FormatChangeCaseUpper" )
241 if GetClipboardtext() <> "CALL HIM NOW ! PLEASE" then
242 Warnlog "Sentence not 'CALL HIM NOW ! PLEASE' but " & GetClipboardtext()
244 printlog " " & GetClipboardtext()
247 printlog " Format / Case Characters / Lower"
248 hUseAsyncSlot( "FormatChangeCaseLower" )
250 if GetClipboardtext() <> "call him now ! please" then
251 Warnlog "Sentence not 'call him now ! please' but " & GetClipboardtext()
253 printlog " " & GetClipboardtext()
256 printlog " Format / Case Characters / Sentence Case"
257 FormatChangeCaseToSentence
259 if GetClipboardtext() <> "Call him now ! Please" then
260 Warnlog "Sentence not 'Call him now ! Please' but " & GetClipboardtext()
262 printlog " " & GetClipboardtext()
265 printlog " Format / Case Characters / Capitalize every word"
266 FormatChangeCaseCapitalizeEveryWord
268 if GetClipboardtext() <> "Call Him Now ! Please" then
269 Warnlog "Sentence not 'Call Him Now ! Please' but " & GetClipboardtext()
271 printlog " " & GetClipboardtext()
275 printlog " Format / Case Characters / tOGGLE cASE"
276 FormatChangeCaseToggleCase
278 if GetClipboardtext() <> "cALL hIM nOW ! pLEASE" then
279 Warnlog "Sentence not 'cALL hIM nOW ! pLEASE' but " & GetClipboardtext()
281 printlog " " & GetClipboardtext()
285 if ( gAsianSup ) then
287 FormatChangeCaseHalfWidth
288 printlog " Format / Case Characters / Half Width"
290 Warnlog "Format / Change Case / Half Width does not work. Maybe no Asian support!"
295 printlog " Format / Case Characters / Full Width"
296 FormatChangeCaseFullWidth
298 Warnlog "Format / Change Case / Full Width does not work. Maybe no Asian support!"
303 printlog " Format / Case Characters / Hiragana"
304 FormatChangeCaseHiragana
306 Warnlog "Format / Change Case / Hiragana does not work. Maybe no Asian support!"
311 printlog " Format / Case Characters / Katagana"
312 FormatChangeCaseKatagana
314 Warnlog "Format / Change Case / Katagana does not work. Maybe no Asian support!"
318 printlog " Close active document"
322 '------------------------------------------------
325 printlog "- Format / Ruby"
326 if gAsianSup = True then
327 if gApplication = "HTML" then
328 printlog "Not in WriterWeb!"
332 printlog " Open new document"
333 Call wTypeKeys ("Hello World!")
334 Call wTypeKeys ("<Shift Home>")
335 printlog " Insert some text in document"
338 printlog " Format / Ruby"
341 Warnlog "Format / Ruby does not work. Maybe No Asian support!"
346 Call DialogTest ( RubyDialog )
348 printlog " Open Stylist"
352 if Stylist.Exists( 1 ) then
355 Warnlog "Stylist has not been opened!"
358 printlog " Close Stylist and Ruby dialog"
362 printlog " Close active document"
367 '------------------------------------------------
369 testcase tFormatParagraph
370 PrintLog "- Format / Paragraph"
372 printlog " Open new document"
374 printlog " Format / Paragraph"
378 active.SetPage TabEinzuegeUndAbstaende
379 kontext "TabEinzuegeUndAbstaende"
380 Call DialogTest ( TabEinzuegeUndAbstaende )
381 printlog " Step through all tabpages"
384 Active.SetPage TabAusrichtungAbsatz
385 Kontext "TabAusrichtungAbsatz"
386 Call DialogTest ( TabAusrichtungAbsatz )
389 active.SetPage TabNumerierungAbsatz
390 kontext "TabNumerierungAbsatz"
391 Call DialogTest ( TabNumerierungAbsatz )
394 active.SetPage TabUmrandung
395 kontext "TabUmrandung"
396 Call DialogTest ( TabUmrandung )
398 if gApplication <> "HTML" then
400 active.SetPage TabTextfluss
401 kontext "TabTextfluss"
402 Call DialogTest ( TabTextfluss )
404 if ( gAsianSup ) then
407 Active.SetPage TabAsianTypography
408 Kontext "TabAsianTypography"
409 Call DialogTest ( TabAsianTypography )
411 Warnlog "Tabpage 'Asian Typography' is not visible! Activated in Options ?"
416 active.SetPage TabTabulator
417 kontext "TabTabulator"
418 Call DialogTest ( TabTabulator )
421 active.SetPage TabInitialen
422 kontext "TabInitialen"
424 Call DialogTest ( TabInitialen )
427 active.SetPage TabHintergrund
428 Kontext "TabHintergrund"
429 Call DialogTest ( TabHintergrund, 1 )
431 Kontext "TabHintergrund"
432 Call DialogTest ( TabHintergrund, 2 )
434 Kontext "GrafikEinfuegenDlg"
435 GrafikEinfuegenDlg.Cancel
437 printlog " Close dialog"
438 kontext "TabHintergrund"
441 printlog " Close dialog"
445 printlog " Close active document"
449 '------------------------------------------------
452 PrintLog "- Format / Page"
454 printlog " Open new document"
457 printlog " Format / Page"
461 printlog " Step through all tabpages"
462 active.SetPage TabVerwalten
463 kontext "TabVerwalten"
464 Call DialogTest ( TabVerwalten )
467 active.SetPage TabSeite
469 Call DialogTest ( TabSeite )
472 active.SetPage TabHintergrund
474 If Active.GetRT = 304 then Active.Yes ' Messagebox abfangen-> Seitenr�nder au�erhalb des Bereichs
477 active.SetPage TabHintergrund
478 kontext "TabHintergrund"
479 Call DialogTest ( TabHintergrund, 1 )
481 Call DialogTest ( TabHintergrund, 2 )
484 Kontext "GrafikEinfuegenDlg"
485 if ( GrafikEinfuegenDlg.exists( 1 ) ) then
486 GrafikEinfuegenDlg.Cancel
488 warnlog( "Dialog <GrafikEinfuegenDlg> is not available" )
492 active.SetPage TabKopfzeile
493 kontext "TabKopfzeile"
494 Call DialogTest ( TabKopfzeile )
495 if gApplication <> "HTML" then
496 KopfzeileMitAbstand.Check
500 active.SetPage TabUmrandung
501 kontext "TabUmrandung"
502 Call DialogTest ( TabUmrandung )
504 active.SetPage TabHintergrund
505 kontext "TabHintergrund"
506 Call DialogTest ( TabHintergrund )
508 Call DialogTest ( TabHintergrund )
512 active.SetPage TabFusszeile
513 kontext "TabFusszeile"
514 Call DialogTest ( TabFusszeile )
515 if gApplication <> "HTML" then
516 FusszeileMitAbstand.Check
520 active.SetPage TabUmrandung
521 kontext "TabUmrandung"
522 Call DialogTest ( TabUmrandung )
524 active.SetPage TabHintergrund
525 kontext "TabHintergrund"
526 Call DialogTest ( TabHintergrund, 1 )
528 Call DialogTest ( TabHintergrund, 2 )
532 active.SetPage TabUmrandung
533 kontext "TabUmrandung"
534 Call DialogTest ( TabUmrandung )
537 active.SetPage TabSpalten
539 Call DialogTest ( TabSpalten )
541 if gAsianSup = True then
543 active.Setpage TabGrid
545 Call DialogTest ( TabGrid )
549 active.SetPage TabFussnote
550 kontext "TabFussnote"
551 Call DialogTest ( TabFussnote )
552 printlog " Close dialog"
555 printlog " Close dialog"
559 printlog " Close active document"
563 '--------------------------------------------------
565 testcase tFormatNumberingBullets
566 dim referencecounter as integer
567 PrintLog "- Format / Numbering / Bullets"
569 printlog " Open new document"
572 printlog " Format / Numbering/Bullets"
573 FormatNumberingBullets
576 printlog " Step through all tabpages"
578 Active.SetPage TabBullet
580 Call DialogTest ( TabBullet )
583 Active.SetPage TabNumerierungsart
584 Kontext "TabNumerierungsart"
585 Call DialogTest ( TabNumerierungsart )
588 Active.SetPage TabNumerierung
589 Kontext "TabNumerierung"
590 Call DialogTest ( TabNumerierung )
593 Active.SetPage TabGrafiken
594 Kontext "TabGrafiken"
595 Call DialogTest ( TabGrafiken )
598 Active.SetPage TabPositionNumerierung
599 Kontext "TabPositionNumerierung"
600 Call DialogTest ( TabPositionNumerierung )
603 Active.SetPage TabOptionenNumerierung
604 Kontext "TabOptionenNumerierung"
605 Call DialogTest ( TabOptionenNumerierung )
611 QAErrorlog "Numbering option 'Linked graphics' is missing"
612 TabOptionenNumerierung.Cancel
617 Call hMenuSelectNr (1)
622 Kontext "TabOptionenNumerierung"
628 referencecounter = hMenuItemGetCount
630 do while (hMenuItemGetCount <> "2")
631 referencecounter = hMenuItemGetCount
634 Call hMenuSelectNr(2)
635 referencecounter = hMenuItemGetCount
637 do while (hMenuItemGetCount <> referencecounter)
638 referencecounter = hMenuItemGetCount
647 printlog " Close dialog"
648 TabOptionenNumerierung.Cancel
650 printlog " Close active document"
654 '------------------------------------------------------
656 testcase tFormatStylist
657 PrintLog "- Format / Stylist"
659 if gPlatgroup = "unx" then
660 QAErrorlog "Doesn't run on unix"
663 printlog " Open new document"
666 If Not Gestalter.Exists then FormatStylist
667 printlog " Format / Stylist"
669 Call DialogTest ( Gestalter )
670 Zeichenvorlagen.Click
671 printlog " Click all Styles-buttons in Stylist"
672 if gApplication <> "HTML" then
679 Numerierungsvorlagen.Click
684 TBGestalterRight.Click Giesskanne
687 AusSelektion.OpenMenu
691 Kontext "VorlageErzeugen"
692 if ( VorlageErzeugen.exists( 1 ) ) then
693 DialogTest ( VorlageErzeugen )
694 VorlageErzeugen.Cancel
696 warnlog( "Dialog <VorlageErzeugen> is not available" )
700 AusSelektion.OpenMenu
704 AusSelektion.OpenMenu
709 if ( Neu.exists( 10 ) ) then
713 warnlog( "Dialog <Neu> is not available" )
716 printlog " Close Stylist"
720 printlog " Close active document"
724 '------------------------------------------------------
726 testcase tFormatAutoformatWhileTyping
727 PrintLog "- Format / Autoformat / "
729 printlog " Open new document"
732 printlog " Uncheck 'Format / Autoformat / While typing'"
733 FormatAutoformatWhileTyping
735 printlog " Check 'Format / Autoformat / While typing'"
736 FormatAutoformatWhileTyping
737 printlog " Close active document"
741 '-----------------------------------------------------------
743 testcase tFormatColumn
744 PrintLog "- Format / Column"
746 printlog " Open new document"
748 printlog " Insert a table"
749 Call hTabelleEinfuegen
751 printlog " Format / column / Width"
752 FormatColumnWidthWriter
754 Kontext "SpaltenBreite"
756 Call DialogTest ( SpaltenBreite )
757 printlog " Close dialog"
760 hSetDocumentContext()
761 printlog " Enter some text in document"
762 Call wTypeKeys ("Dies ist ein langer Text, HALLO HALLO")
764 printlog " Format / Column / Optimal Width"
765 FormatColumnOptimalWidthWriter
767 printlog " Format / Row / Select"
770 printlog " Format / Column / Space equally"
771 FormatColumnSpaceEqually
773 printlog " Format / Column / Select"
776 printlog " Format / Cloumn / Delete"
779 hSetDocumentContext()
780 printlog " Press 'up' twice to point cursor in the table"
781 Call wTypeKeys ("<Up>",2)
783 printlog " Format / Column / Insert "
786 Kontext "EinfuegenSpalten"
788 Call DialogTest ( EinfuegenSpalten )
789 printlog " Close dialog"
791 printlog " Close active document"
795 '-----------------------------------------------------------
797 testcase tFormatAnchor
799 PrintLog "- Format / Anchor"
801 printlog " Open new document"
803 printlog " Insert a graphic from file '..\writer\required\input\graphics\jolink.jpg'"
804 Call hGrafikEinfuegen ( gTesttoolPath + "writer\required\input\graphics\jolink.jpg" )
808 printlog " Format / Anchor / to page"
810 Warnlog "'Page' couldn't be executed!"
815 FormatAnchorToParagraph
817 printlog " Format / Anchor / to paragraph"
818 Warnlog "'to paragraph' couldn't be executed!"
823 FormatAnchorToCharacter
824 printlog " Format / Anchor / to character"
826 Warnlog "'To Character' couldn't be executed!"
831 FormatAnchorAsCharacter
832 printlog " Format / Anchor / As Character"
834 Warnlog "'as Character' couldn't be executed!"
838 printlog " Close active document"
842 '-----------------------------------------------------------
845 PrintLog "- Format / Wrap"
846 if gApplication = "HTML" then
847 printlog "Not in Writer/Web!"
850 printlog " Open new document"
852 printlog " Insert a graphic from file '..\writer\required\input\graphics\jolink.jpg'"
853 Call hGrafikEinfuegen ( gTesttoolPath + "writer\required\input\graphics\jolink.jpg" )
856 printlog " Format / Wrap / No wrap"
858 Warnlog "Error on 'No Wrap'"
864 printlog " Format / Wrap / Page Wrap"
866 Warnlog "Error on 'Page Wrap'"
871 FormatWrapOptimalPageWrap
872 printlog " Format / Wrap / optimal page wrap"
874 Warnlog "Error on 'Optimal Page Wrap'"
880 printlog " Format / Wrap / Through"
882 Warnlog "Error on 'Wrap Through'"
887 FormatWrapInBackground
888 printlog " Format / Wrap / In Background "
890 Warnlog "Error on 'In Background'"
895 FormatWrapFirstParagraph
896 printlog " Format / Wrap / First paragraph"
898 Warnlog "Error on 'First Paragraph'"
904 printlog " Format / Wrap / Contour"
905 Warnlog "Error on 'Contour'"
907 printlog "Contour Wrap disabled->OK"
912 FormatWrapEditContour
913 printlog " Format / Wrap / Edit Contour"
915 Kontext "KonturEditor"
916 Dialogtest ( KonturEditor )
919 printlog " Close contour editor"
921 if Active.Exists (2) then Active.Yes
923 Warnlog "#85505#Error on 'Edit Contur'"
926 printlog " Close active document"
930 '-----------------------------------------------------------
932 testcase tFormatAnchorArea
934 PrintLog "- Format / Anchor drawing objects"
935 if gApplication = "HTML" then
936 printlog "Not in WriterWeb!"
939 printlog "crashed because of i32539 (fixed in m54)"
941 printlog " Open new document"
943 printlog " Paste a rectangle from draw via clipboard"
944 Call wRectangleToClipboard
946 hUseAsyncSlot( "EditPaste" )
949 printlog " Format / Anchor / To page"
952 Warnlog "Clipboard problem between applications!"
953 Call wZeichenobjektEinfuegen ( "Rechteck", 40, 40, 50, 50 )
954 Call gMouseClick ( 45, 45 )
959 printlog " Format / Anchor / to paragraph"
960 FormatAnchorToParagraph
962 printlog " Format / Anchor / As character"
963 FormatAnchorAsCharacter
966 printlog " Close active document"
970 '-----------------------------------------------------------
972 testcase tFormatWrapArea
973 PrintLog "- Format / Wrap drawing objects"
974 if gApplication = "HTML" then
975 printlog "Not in WriterWeb!"
978 printlog "crashed because of i32539 (fixed in m54)"
980 printlog " Open new document"
982 printlog " Paste a rectangle from draw via clipboard"
983 Call wRectangleToClipboard
985 hUseAsyncSlot( "EditPaste" )
988 printlog " Format / Wrap / No wrap"
991 Warnlog "Clipboard problem between applications!"
992 Call wZeichenobjektEinfuegen ( "Rechteck", 40, 40, 50, 50 )
993 Call gMouseClick ( 45, 45 )
998 printlog " Format / Wrap / Contour"
1000 FormatWrapContour ' should be disabled with 'No wrap'
1001 Warnlog "Format / Wrap / Contour is disabled!"
1005 printlog " Format / Wrap / Page wrap"
1009 Warnlog "Format / Wrap / Page Wrap is disabled!"
1012 printlog " Format / Wrap / Contour"
1016 Warnlog "Format / Wrap / Contour is disabled!"
1019 printlog " Format / Wrap / optimal page wrap"
1021 FormatWrapOptimalPageWrap
1023 Warnlog "Format / Wrap / Optimal page wrap is disabled!"
1026 printlog " Format / Wrap / Through"
1030 Warnlog "Format / Wrap /Through is disabled!"
1033 printlog " Format / Wrap / In Background"
1035 FormatWrapInBackground
1037 Warnlog "Format / Wrap / In Background is disabled!"
1040 printlog " Format / Wrap / First paragraph"
1042 FormatWrapFirstParagraph
1044 Warnlog "Format / Wrap / First paragraph is disabled!"
1048 printlog " Format / Wrap / Edit"
1051 Warnlog "Drawing object in wrong format from the clipboard!"
1054 Call DialogTest ( TabUmlauf )
1055 printlog " Close upcoming dialog"
1058 printlog " Close active document"
1062 '-----------------------------------------------------------
1064 testcase tHtmlDocFormatParagraph
1065 PrintLog "- Format / Paragraph"
1066 gApplication = "HTML"
1067 printlog " Open new document"
1069 printlog " Format / Paragraph"
1073 active.SetPage TabEinzuegeUndAbstaende
1074 kontext "TabEinzuegeUndAbstaende"
1075 Call DialogTest ( TabEinzuegeUndAbstaende )
1076 printlog " Step through all tabpages"
1079 Active.SetPage TabAusrichtungAbsatz
1080 Kontext "TabAusrichtungAbsatz"
1081 Call DialogTest ( TabAusrichtungAbsatz )
1084 active.SetPage TabNumerierungAbsatz
1085 kontext "TabNumerierungAbsatz"
1086 Call DialogTest ( TabNumerierungAbsatz )
1089 active.SetPage TabUmrandung
1090 kontext "TabUmrandung"
1091 Call DialogTest ( TabUmrandung )
1092 printlog " Close dialog"
1095 printlog " Close active document"
1097 gApplication = "WRITER"
1100 '------------------------------------------------
1102 testcase tHtmlDocFormatPage
1103 PrintLog "- Format / Page"
1104 gApplication = "HTML"
1105 printlog " Open new document"
1108 printlog " Format / Page"
1112 printlog " Step through all tabpages"
1113 active.SetPage TabVerwalten
1114 kontext "TabVerwalten"
1115 Call DialogTest ( TabVerwalten )
1118 active.SetPage TabSeite
1120 Call DialogTest ( TabSeite )
1123 active.SetPage TabHintergrund
1125 If Active.GetRT = 304 then Active.Yes ' Messagebox abfangen-> Seitenr�nder au�erhalb des Bereichs
1128 active.SetPage TabHintergrund
1129 kontext "TabHintergrund"
1130 Call DialogTest ( TabHintergrund, 1 )
1132 Call DialogTest ( TabHintergrund, 2 )
1135 Kontext "GrafikEinfuegenDlg"
1136 if ( GrafikEinfuegenDlg.exists( 1 ) ) then
1137 GrafikEinfuegenDlg.Cancel
1139 warnlog( "Dialog <GrafikEinfuegenDlg> is not available" )
1143 active.SetPage TabKopfzeile
1144 kontext "TabKopfzeile"
1145 Call DialogTest ( TabKopfzeile )
1147 active.SetPage TabFusszeile
1148 kontext "TabFusszeile"
1149 Call DialogTest ( TabFusszeile )
1150 printlog " Close dialog"
1153 printlog " Close active document"
1155 gApplication = "WRITER"
1158 '--------------------------------------------------
1160 testcase tHtmlDocFormatStylist
1161 PrintLog "- Format / Stylist"
1162 gApplication = "HTML"
1163 if gPlatgroup = "unx" then
1164 QAErrorlog "Doesn't run on unix"
1167 printlog " Open new document"
1170 If Not Gestalter.Exists then FormatStylist
1171 printlog " Format / Stylist"
1173 Call DialogTest ( Gestalter )
1174 Zeichenvorlagen.Click
1175 printlog " Click all Styles-buttons in Stylist"
1178 Numerierungsvorlagen.Click
1181 Absatzvorlagen.Click
1184 TBGestalterRight.Click Giesskanne
1187 AusSelektion.OpenMenu
1191 Kontext "VorlageErzeugen"
1192 if ( VorlageErzeugen.exists( 1 ) ) then
1193 DialogTest ( VorlageErzeugen )
1194 VorlageErzeugen.Cancel
1196 warnlog( "Dialog <VorlageErzeugen> is not available" )
1201 if ( Gestalter.exists( 1 ) ) then
1202 AusSelektion.OpenMenu
1206 AusSelektion.OpenMenu
1211 if ( Neu.exists( 10 ) ) then
1215 warnlog( "Dialog <Neu> is not available" )
1218 printlog " Close Stylist"
1222 warnlog( "Dialog <Gestalter> is not available" )
1225 printlog " Close active document"
1227 gApplication = "WRITER"
1230 '------------------------------------------------------