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: CJKCTLDependency1.inc,v $
13 '* last change: $Author: fredrikh $ $Date: 2008-06-18 15:03:46 $
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 CJK and CTL support dependency
38 '************************************************************************
40 ' #1 tCJKDependency_1 'Test Tabpage 'Text Grid'
41 ' #1 tCJKDependency_2 'Test Tabpage 'Asian Typography'
42 ' #1 tCJKDependency_3 'Test CheckBox 'Snap to text grid (if active)'
43 ' #1 tCJKDependency_4 'Test listbox 'Text direction' in page
44 ' #1 tCJKDependency_5 'Test listbox 'Text direction' in Frame
45 ' #1 tCTLDependency_1 'Test listbox 'Text direction' -- insert/section
46 ' #1 tCTLDependency_2 'Test listbox 'Text direction' -- format/section
47 ' #1 tCTLDependency_3 'Test listbox 'Text direction' -- table
48 ' #1 tCTLDependency_4 'Test 'left to right' and 'right to left' button(Writer)
49 ' #1 tCTLDependency_5 'Test 'left to right' and 'right to left' button - HTML(HTML 3.2)
50 ' #1 tCTLDependency_6 'Test 'left to right' and 'right to left' button - HTML(Microsoft Internet Bxplorer)
51 ' #1 tCTLDependency_7 'Test 'left to right' and 'right to left' button - HTML(Netscape Navigator)
52 ' #1 tCTLDependency_8 'Test 'left to right' and 'right to left' button - HTML(StarOffice Writer)
53 ' #1 tCTLKashidaCheck 'Check for additional numerals if CTL support is enabled
55 '\***********************************************************************
57 testcase tCJKDependency_1
59 Dim bAsianLanguage as Boolean
61 PrintLog "- Tabpage 'Text Grid"
63 printlog " Open a new document"
66 printlog " Set 'Asian Language support' ON"
67 bAsianLanguage = ActiveDeactivateAsianSupport(TRUE)
69 printlog " Format/Page , the tabpage 'Text Grid' should exist"
73 Active.SetPage TabGrid
78 Active.SetPage TabSeite
81 warnlog "Should get Tabpage: Grid Text"
84 'if system language is Asian language, the checkbox
85 ''Asian Language support' is checked by default and
86 'can't do any operation for it
87 if iSystemSprache = 81 Or iSystemSprache = 82 Or iSystemSprache = 86 or iSystemSprache = 88 then
91 printlog " Set 'Asian Language support' Off"
92 ActiveDeactivateAsianSupport(FALSE)
94 printlog " Format/Page , the tabpage 'Text Grid' shouldn't exist"
98 Active.SetPage TabGrid
101 warnlog "Shouldn't get Tabpage: Grid Text"
104 Active.SetPage TabSeite
109 printlog " Set the 'Asian Language support' to default"
110 if bAsianLanguage = FALSE then
111 Call ActiveDeactivateAsianSupport(FALSE)
115 printlog " Close active document"
119 '-------------------------------------------------------------------------------------------
121 testcase tCJKDependency_2
123 Dim bAsianLanguage as Boolean
125 PrintLog "- Tabpage'Asian Typography'"
127 printlog " Open a new document"
130 printlog " Set 'Asian Language support' ON"
131 bAsianLanguage = ActiveDeactivateAsianSupport(TRUE)
133 printlog " Format/Paragraph , the tabpage 'Asian Typography' should exist"
137 Active.SetPage TabAsianTypography
138 Kontext "TabAsianTypography"
139 TabAsianTypography.Cancel
142 Active.SetPage TabTextfluss
143 Kontext "TabTextfluss"
145 warnlog "Should get Tabpage: Asian Typography"
148 'if system language is Asian language, the checkbox
149 ''Asian Language support' is checked by default and
150 'can't do any operation for it
151 if iSystemSprache = 81 Or iSystemSprache = 82 Or iSystemSprache = 86 or iSystemSprache = 88 then
155 printlog " Set 'Asian Language support' Off"
156 ActiveDeactivateAsianSupport(FALSE)
158 printlog " Format/Page , the tabpage 'Asian Typography' shouldn't exist"
162 Active.SetPage TabAsianTypography
163 Kontext "TabAsianTypography"
164 TabAsianTypography.Cancel
165 warnlog "Shouldn't get Tabpage: Asian Typography"
168 Active.SetPage TabTextfluss
169 Kontext "TabTextfluss"
173 printlog " Set the 'Asian Language support' to default"
174 if bAsianLanguage = FALSE then
175 Call ActiveDeactivateAsianSupport(FALSE)
179 printlog " Close active document"
183 '-------------------------------------------------------------------------------------------
185 testcase tCJKDependency_3
187 Dim bAsianLanguage as Boolean
189 PrintLog "- CheckBox 'Snap to text grid (if active)'"
191 printlog " Open a new document"
194 printlog " Set 'Asian Language support' ON"
195 bAsianLanguage = ActiveDeactivateAsianSupport(TRUE)
197 printlog " Format/Paragraph / Alignment ,"
198 printlog " the CheckBox 'Snap to text grid (if active)' should exist"
199 Call fFormatParagraph("TabAusrichtungAbsatz")
201 TextrasterFangen.UnCheck
203 warnlog "Should get checkbox 'Snap to text grid (if active)'"
205 TabAusrichtungAbsatz.Cancel
207 'if system language is Asian language, the checkbox
208 ''Asian Language support' is checked by default and
209 'can't do any operation for it
210 if iSystemSprache = 81 Or iSystemSprache = 82 Or iSystemSprache = 86 or iSystemSprache = 88 then
214 printlog " Set 'Asian Language support' Off"
215 ActiveDeactivateAsianSupport(FALSE)
217 printlog " Format/Paragraph / Alignment ,"
218 printlog " the CheckBox 'Snap to text grid (if active)' shouldn't exist"
219 Call fFormatParagraph("TabAusrichtungAbsatz")
221 TextrasterFangen.UnCheck
222 warnlog "Shouldn't get checkbox 'Snap to text grid (if active)'"
225 TabAusrichtungAbsatz.Cancel
227 printlog " Set the 'Asian Language support' to default"
228 if bAsianLanguage = FALSE then
229 Call ActiveDeactivateAsianSupport(FALSE)
233 printlog " Close active document"
237 '-------------------------------------------------------------------------------------------
239 testcase tCJKDependency_4
241 Dim bAsianLanguage as Boolean
242 Dim bCTLLanguage as Boolean
243 'if system language is Asian language, the checkbox
244 ''Asian Language support' is checked by default and
245 'can't do any operation for it
246 if iSystemSprache = 81 Or iSystemSprache = 82 Or iSystemSprache = 86 or iSystemSprache = 88 then
250 PrintLog "- listbox 'Text direction' - Page"
252 printlog " Open a new document"
255 printlog " Set 'CTL language support' OFF"
256 bCTLLanguage = ActiveDeactivateCTLSupport(FALSE)
258 printlog " Set 'Asian Language support' ON"
259 bAsianLanguage = ActiveDeactivateAsianSupport(TRUE)
261 printlog " Format/Page / Page, the listbox 'Text direction' should exist"
262 Call fFormatPageWriter("TabSeite")
263 if Textfluss.IsVisible = TRUE then
266 warnlog "Should get listbox 'Text direction'"
270 printlog " Set 'Asian Language support' Off"
271 ActiveDeactivateAsianSupport(FALSE)
272 printlog " Format/Page / Page, the listbox 'Text direction' shouldn't exist"
273 Call fFormatPageWriter("TabSeite")
274 if Textfluss.IsVisible = TRUE then
275 warnlog "Shouldn't get listbox 'Text direction'"
279 printlog " Set the 'Asian Language support' to default"
280 if bAsianLanguage = FALSE then
281 Call ActiveDeactivateAsianSupport(FALSE)
287 '-------------------------------------------------------------------------------------------
289 testcase tCJKDependency_5
291 Dim bAsianLanguage as Boolean
292 Dim bCTLLanguage as Boolean
294 PrintLog "- listbox 'Text direction' - Frame"
296 printlog " Open a new document"
299 printlog " Set 'CTL language support' OFF"
300 bCTLLanguage = ActiveDeactivateCTLSupport(FALSE)
302 printlog " Set 'Asian Language support' ON"
303 bAsianLanguage = ActiveDeactivateAsianSupport(TRUE)
305 printlog " Insert a frame"
308 printlog " Format/Frame / Options, the listbox 'Text direction' should exist"
309 Call fFormatFrame("TabZusaetze")
310 if Not TextDirection.IsVisible then
311 warnlog "Should get listbox 'Text direction'"
315 'if system language is Asian language, the checkbox
316 ''Asian Language support' is checked by default and
317 'can't do any operation for it
318 if iSystemSprache = 81 Or iSystemSprache = 82 Or iSystemSprache = 86 or iSystemSprache = 88 then
322 printlog " Set 'Asian Language support' Off"
323 ActiveDeactivateAsianSupport(FALSE)
325 printlog " Format/Frame / Options, the listbox 'Text direction' shouldn't exist"
326 Call fFormatFrame("TabZusaetze")
327 if TextDirection.IsVisible = TRUE then
328 QAErrorLog "#135837# Shouldn't get listbox 'Text direction'."
332 printlog " Set the 'Asian Language support' to default"
333 if bAsianLanguage = FALSE then
334 Call ActiveDeactivateAsianSupport(FALSE)
338 printlog " Set the 'CTL language support' to default"
339 if bCTLLanguage = TRUE then
340 Call ActiveDeactivateAsianSupport(TRUE)
343 printlog " Close active document"
347 '-------------------------------------------------------------------------------------------
349 testcase tCTLDependency_1
351 Dim bCTLLanguage as Boolean
353 PrintLog "- listbox 'Text direction' -- insert/section"
355 printlog " Open a new document"
358 printlog " Set 'CTL Language support' ON"
359 bCTLLanguage = ActiveDeactivateCTLSupport(TRUE)
361 printlog " Insert/Section/Columns,"
362 printlog " the listbox 'Text direction' should exist"
363 Call fInsertSection("TabSpalten")
364 if Not TextDirection.IsVisible then
365 Warnlog "Should get listbox 'Text direction'"
369 printlog " Set 'CTL Language support' Off"
370 Call ActiveDeactivateCTLSupport(FALSE)
372 printlog " Insert/Section/Columns,"
373 printlog " the listbox 'Text direction' shouldn't exist"
374 Call fInsertSection("TabSpalten")
375 if TextDirection.IsVisible then
376 Warnlog "Shouldn't get listbox 'Text direction'"
380 printlog " Set the 'CTL Language support' to default"
381 if bCTLLanguage = TRUE then
382 Call ActiveDeactivateCTLSupport(TRUE)
385 printlog " Close active document"
389 '-------------------------------------------------------------------------------------------
391 testcase tCTLDependency_2
393 Dim bCTLLanguage as Boolean
395 PrintLog "- listbox 'Text direction' -- format/section"
397 printlog " Open a new document"
400 printlog " Insert a section"
401 Call fInsertSection("TabBereiche")
404 printlog " Set 'CTL Language support' ON"
405 bCTLLanguage = ActiveDeactivateCTLSupport(TRUE)
407 printlog " Format/Section , then click option button,"
408 printlog " the listbox 'Text direction' should exist"
410 Kontext "BereicheBearbeiten"
414 Active.Setpage TabSpalten
416 if Not TextDirection.IsVisible then
417 Warnlog "Should get listbox 'Text direction'"
421 Kontext "BereicheBearbeiten"
422 BereicheBearbeiten.Cancel
424 printlog " Set 'CTL Language support' Off"
425 Call ActiveDeactivateCTLSupport(FALSE)
427 printlog " Format/Section , then click option button,"
428 printlog " the listbox 'Text direction' shouldn't exist"
430 Kontext "BereicheBearbeiten"
433 Active.Setpage TabSpalten
435 if TextDirection.IsVisible then
436 Warnlog "Shouldn't get listbox 'Text direction'"
440 Kontext "BereicheBearbeiten"
441 BereicheBearbeiten.Cancel
443 printlog " Set the 'CTL Language support' to default"
444 if bCTLLanguage = TRUE then
445 Call ActiveDeactivateCTLSupport(TRUE)
448 printlog " Close active document"
452 '-------------------------------------------------------------------------------------------
454 testcase tCTLDependency_3
456 Dim bCTLLanguage as Boolean
457 PrintLog "- listbox 'Text direction' -- Table"
459 printlog " Open a new document"
462 printlog " Insert a table"
463 Call hTabelleEinfuegen
465 printlog " Set 'CTL Language support' ON"
466 bCTLLanguage = ActiveDeactivateCTLSupport(TRUE)
468 printlog " Format/Table / Table ,"
469 printlog " the listbox 'Text direction' should exist"
470 Call fFormatTable("TabTabelle")
471 if Not TextDirection.IsVisible then
472 Warnlog "Should get listbox 'Text direction'"
476 printlog " Set 'CTL Language support' Off"
477 Call ActiveDeactivateCTLSupport(FALSE)
479 printlog " Format/Table / Table ,"
480 printlog " the listbox 'Text direction' shouldn't exist"
481 Call fFormatTable("TabTabelle")
482 if TextDirection.IsVisible then
483 Warnlog "Shouldn't get listbox 'Text direction'"
487 printlog " Set the 'CTL Language support' to default"
488 if bCTLLanguage = TRUE then
489 Call ActiveDeactivateCTLSupport(TRUE)
492 printlog " Close active document"
496 '-------------------------------------------------------------------------------------------
498 testcase tCTLDependency_4
500 Dim bCTLLanguage as Boolean
504 PrintLog "- 'left to right' and 'right to left' button "
506 printlog " Open a new document"
509 bLToR = fActiveObjectInToolbar("Text Object" , "Left-To-Right" , TRUE)
510 bRToL = fActiveObjectInToolbar("Text Object" , "Right-To-Left" , TRUE)
512 printlog " Set 'CTL Language support' Off"
513 bCTLLanguage = ActiveDeactivateCTLSupport(FALSE)
516 printlog " Check if 'left to right' button and 'right to left' button"
517 printlog " can be clicked in text tool bar -- Shouldn't be"
518 Kontext "TextObjectbar"
521 warnlog "Left To Right button shouldn't be clicked!"
526 warnlog "Right To Left button shouldn't be clicked!"
530 printlog " Set 'CTL Language support' ON"
531 ActiveDeactivateCTLSupport(TRUE)
533 printlog " Check if 'left to right' button and 'right to left' button"
534 printlog " can be clicked in text tool bar -- Should be"
535 Kontext "TextObjectbar"
541 warnlog "#i38788# Left To Right button can't be clicked!"
547 warnlog "#i38788# Right To Left button can't be clicked!"
550 'Set R to L and L to R button disappear
551 if bLToR = FALSE then
552 Call fActiveObjectInToolbar("Text Object" , "Left-To-Right" , FALSE)
554 if bRToL = FALSE then
555 Call fActiveObjectInToolbar("Text Object" , "Right-To-Left" , FALSE)
558 printlog " Set the 'CTL Language support' to default"
559 if bCTLLanguage = FALSE then
560 Call ActiveDeactivateCTLSupport(FALSE)
563 printlog " Close active document"
567 '-------------------------------------------------------------------------------------------
569 testcase tCTLDependency_5
571 Dim bCTLLanguage as Boolean
574 Dim iHtmlExportMode as Integer
575 Dim iCurrentHtmlExportMode as Integer
579 PrintLog "- 'left to right' and 'right to left' button - HTML (HTML 3.2)"
581 printlog " Open a new document"
584 bLToR = fActiveObjectInToolbar("Text Object" , "Left-To-Right" , TRUE)
585 bRToL = fActiveObjectInToolbar("Text Object" , "Right-To-Left" , TRUE)
587 printlog " Set Export mode to HTML 3.2"
588 printlog " Tools/load&save/HTML compatibility/Exprt"
590 Call hToolsOptions ( "LoadSave", "HTMLCompatibility" )
591 iCurrentHtmlExportMode = Export.GetSelIndex
593 Export.Select iHtmlExportMode
595 Kontext "ExtrasOptionenDlg"
598 PrintLog "Set 'CTL Language support' Off"
599 bCTLLanguage = ActiveDeactivateCTLSupport(FALSE)
602 printlog " Check if 'left to right' button and 'right to left' button"
603 printlog " can be clicked in text tool bar -- Shouldn't be"
604 Kontext "TextObjectbar"
607 warnlog "Left To Right button shouldn't be clicked!"
612 warnlog "Right To Left button shouldn't be clicked!"
616 PrintLog "Set 'CTL Language support' ON"
617 ActiveDeactivateCTLSupport(TRUE)
619 printlog " Check if 'left to right' button and 'right to left' button"
620 printlog " can be clicked in text tool bar -- Should NOT be"
621 Kontext "TextObjectbar"
625 QAErrorLog "#115836# Left To Right button shouldn't be clicked!"
631 QAErrorLog "#115836# Right To Left button shouldn't be clicked!"
636 'Set R to L and L to R button disappear
637 if bLToR = FALSE then
638 Call fActiveObjectInToolbar("Text Object" , "Left-To-Right" , FALSE)
640 if bRToL = FALSE then
641 Call fActiveObjectInToolbar("Text Object" , "Right-To-Left" , FALSE)
644 printlog " Set the 'CTL Language support' to default"
645 if bCTLLanguage = FALSE then
646 Call ActiveDeactivateCTLSupport(FALSE)
649 printlog " Set Export mode to default"
651 Call hToolsOptions ( "LoadSave", "HTMLCompatibility" )
652 Export.Select iCurrentHtmlExportMode
654 Kontext "ExtrasOptionenDlg"
657 printlog " Close active document"
661 '-------------------------------------------------------------------------------------------
663 testcase tCTLDependency_6
665 Dim bCTLLanguage as Boolean
668 Dim iHtmlExportMode as Integer
669 Dim iCurrentHtmlExportMode as Integer
673 PrintLog "- 'left to right' and 'right to left' button - HTML(Microsoft Internet Bxplorer)"
675 printlog " Open a new document"
678 bLToR = fActiveObjectInToolbar("Text Object" , "Left-To-Right" , TRUE)
679 bRToL = fActiveObjectInToolbar("Text Object" , "Right-To-Left" , TRUE)
681 printlog " Set Export mode to Microsoft Internet Bxplorer"
682 printlog " Tools/load&save/HTML compatibility/Exprt"
684 Call hToolsOptions ( "LoadSave", "HTMLCompatibility" )
685 iCurrentHtmlExportMode = Export.GetSelIndex
686 Export.Select iHtmlExportMode
688 Kontext "ExtrasOptionenDlg"
691 printlog " Set 'CTL Language support' Off"
692 bCTLLanguage = ActiveDeactivateCTLSupport(FALSE)
695 printlog " Check if 'left to right' button and 'right to left' button"
696 printlog " can be clicked in text tool bar -- Shouldn't be"
697 Kontext "TextObjectbar"
700 warnlog "Left To Right button shouldn't be clicked!"
705 warnlog "Right To Left button shouldn't be clicked!"
709 printlog " Set 'CTL Language support' ON"
710 ActiveDeactivateCTLSupport(TRUE)
712 printlog " Check if 'left to right' button and 'right to left' button"
713 printlog " can be clicked in text tool bar -- Should be"
714 Kontext "TextObjectbar"
720 warnlog "#i38788# Left To Right button can't be clicked!"
726 warnlog "#i38788# Right To Left button can't be clicked!"
729 'Set R to L and L to R button disappear
730 if bLToR = FALSE then
731 Call fActiveObjectInToolbar("Text Object" , "Left-To-Right" , FALSE)
733 if bRToL = FALSE then
734 Call fActiveObjectInToolbar("Text Object" , "Right-To-Left" , FALSE)
737 printlog " Set the 'CTL Language support' to default"
738 if bCTLLanguage = FALSE then
739 Call ActiveDeactivateCTLSupport(FALSE)
742 printlog " Set Export mode to default"
744 Call hToolsOptions ( "LoadSave", "HTMLCompatibility" )
745 Export.Select iCurrentHtmlExportMode
747 Kontext "ExtrasOptionenDlg"
750 printlog " Close active document"
754 '-------------------------------------------------------------------------------------------
756 testcase tCTLDependency_7
758 Dim bCTLLanguage as Boolean
761 Dim iHtmlExportMode as Integer
762 Dim iCurrentHtmlExportMode as Integer
766 PrintLog "- 'left to right' and 'right to left' button - HTML(Netscape Navigator)"
768 printlog " Open a new document"
771 bLToR = fActiveObjectInToolbar("Text Object" , "Left-To-Right" , TRUE)
772 bRToL = fActiveObjectInToolbar("Text Object" , "Right-To-Left" , TRUE)
774 printlog " Set Export mode to Netscape Navigator"
775 printlog " Tools/load&save/HTML compatibility/Exprt"
777 Call hToolsOptions ( "LoadSave", "HTMLCompatibility" )
778 iCurrentHtmlExportMode = Export.GetSelIndex
779 Export.Select iHtmlExportMode
781 Kontext "ExtrasOptionenDlg"
784 printlog " Set 'CTL Language support' Off"
785 bCTLLanguage = ActiveDeactivateCTLSupport(FALSE)
788 printlog " Check if 'left to right' button and 'right to left' button"
789 printlog " can be clicked in text tool bar -- Shouldn't be"
790 Kontext "TextObjectbar"
793 warnlog "Left To Right button shouldn't be clicked!"
798 warnlog "Right To Left button shouldn't be clicked!"
802 printlog " Set 'CTL Language support' ON"
803 ActiveDeactivateCTLSupport(TRUE)
805 printlog " Check if 'left to right' button and 'right to left' button"
806 printlog " can be clicked in text tool bar -- Should be"
807 Kontext "TextObjectbar"
813 warnlog "#i38788# Left To Right button can't be clicked!"
819 warnlog "#i38788# Right To Left button can't be clicked!"
822 'Set R to L and L to R button disappear
823 if bLToR = FALSE then
824 Call fActiveObjectInToolbar("Text Object" , "Left-To-Right" , FALSE)
826 if bRToL = FALSE then
827 Call fActiveObjectInToolbar("Text Object" , "Right-To-Left" , FALSE)
830 printlog " Set the 'CTL Language support' to default"
831 if bCTLLanguage = FALSE then
832 Call ActiveDeactivateCTLSupport(FALSE)
835 printlog " Set Export mode to default"
837 Call hToolsOptions ( "LoadSave", "HTMLCompatibility" )
838 Export.Select iCurrentHtmlExportMode
840 Kontext "ExtrasOptionenDlg"
843 printlog " Close active document"
847 '-------------------------------------------------------------------------------------------
849 testcase tCTLDependency_8
851 Dim bCTLLanguage as Boolean
854 Dim iHtmlExportMode as Integer
855 Dim iCurrentHtmlExportMode as Integer
859 PrintLog "- 'left to right' and 'right to left' button - HTML(StarOffice Writer)"
861 printlog " Open a new document"
864 bLToR = fActiveObjectInToolbar("Text Object" , "Left-To-Right" , TRUE)
865 bRToL = fActiveObjectInToolbar("Text Object" , "Right-To-Left" , TRUE)
867 printlog " Set Export mode to StarOffice Writer"
868 printlog " Tools/load&save/HTML compatibility/Exprt"
870 Call hToolsOptions ( "LoadSave", "HTMLCompatibility" )
871 iCurrentHtmlExportMode = Export.GetSelIndex
872 Export.Select iHtmlExportMode
874 Kontext "ExtrasOptionenDlg"
877 printlog " Set 'CTL Language support' Off"
878 bCTLLanguage = ActiveDeactivateCTLSupport(FALSE)
881 printlog " Check if 'left to right' button and 'right to left' button"
882 printlog " can be clicked in text tool bar -- Shouldn't be"
883 Kontext "TextObjectbar"
886 warnlog "Left To Right button shouldn't be clicked!"
891 warnlog "Right To Left button shouldn't be clicked!"
895 printlog " Set 'CTL Language support' ON"
896 ActiveDeactivateCTLSupport(TRUE)
898 printlog " Check if 'left to right' button and 'right to left' button"
899 printlog " can be clicked in text tool bar -- Should be"
900 Kontext "TextObjectbar"
906 warnlog "#i38788# Left To Right button can't be clicked!"
912 warnlog "#i38788# Right To Left button can't be clicked!"
915 'Set R to L and L to R button disappear
916 if bLToR = FALSE then
917 Call fActiveObjectInToolbar("Text Object" , "Left-To-Right" , FALSE)
919 if bRToL = FALSE then
920 Call fActiveObjectInToolbar("Text Object" , "Right-To-Left" , FALSE)
923 printlog " Set the 'CTL Language support' to default"
924 if bCTLLanguage = FALSE then
925 Call ActiveDeactivateCTLSupport(FALSE)
928 printlog " Set Export mode to default"
930 Call hToolsOptions ( "LoadSave", "HTMLCompatibility" )
931 Export.Select iCurrentHtmlExportMode
933 Kontext "ExtrasOptionenDlg"
936 printlog " Close active document"
940 '----------------------------------------------------------------------------------------------------
942 testcase tCTLKashidaCheck
944 Dim bCTLLanguage as Boolean
945 Dim bAsianLanguage as boolean
946 Dim iListCounter as Integer
948 printlog " Open a new document"
951 printlog " Set 'Asian support' to ON"
952 bAsianLanguage = ActiveDeactivateAsianSupport(True)
953 printlog " Set 'CTL Language support' to ON"
954 bCTLLanguage = ActiveDeactivateCTLSupport(True)
958 Call hToolsOptions ("LanguageSettings","ComplexTextLayout")
959 Kontext "TabComplexTextLayout"
961 iListCounter = Numerals.GetItemCount
963 if iListCounter <> 4 then
964 Warnlog "There are not 4 items in list 'Numerlas' but " + iListCounter
967 Kontext "ExtrasOptionenDlg"
970 if bAsianLanguage = FALSE then
971 printlog " Set the 'Asian Language support' to default"
972 Call ActiveDeactivateAsianSupport(bAsianLanguage)
975 if bCTLLanguage = FALSE then
976 printlog " Set the 'CTL Language support' to default"
977 Call ActiveDeactivateCTLSupport(FALSE)
980 printlog " Close active document"
984 '----------------------------------------------------------------------------------------------------