Update ooo320-m1
[ooovba.git] / testautomation / framework / optional / f_CJK_FeatureSwitch.bas
blob8f05f67359bc34f96f5a9d04e4a6ce64f491cd09
1 'encoding UTF-8 Do not remove or change this line!
2 '**************************************************************************
3 '* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 '*
5 '* Copyright 2008 by Sun Microsystems, Inc.
6 '*
7 '* OpenOffice.org - a multi-platform office productivity suite
8 '*
9 '* $RCSfile: f_CJK_FeatureSwitch.bas,v $
11 '* $Revision: 1.1 $
13 '* last change: $Author: jsk $ $Date: 2008-06-20 07:01:51 $
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: thorsten.bosbach@sun.com
36 '* short description: CJK feature switch test
38 '\*********************************************************************
40 global sAsianLanguageFlag as String
42 sub main
43 printlog "---------------------------------------------------------------------"
44 printlog "----- CJK feature switch test -----"
45 printlog "---------------------------------------------------------------------"
47 use "framework\optional\includes\CJK_FeatureSwitchTest_1.inc"
49 sAsianLanguageFlag = CheckAsianLanguageSupport("Current")
51 call CheckAsianLanguageSupport("On")
53 call hStatusIn("framework", "f_CJK_FeatureSwitch.bas")
54 printlog Chr(13) + "- CJK Feature Switch test -- Writer"
55 call tSwitchLocation
56 '--Turn on/off Asian language support --"
57 call tWriterUIChangesTest1
58 call tWriterUIChangesTest2
59 call tWriterUIChangesTest3
60 call tWriterUIChangesTest4
61 call tWriterUIChangesTest5
62 call tWriterUIChangesTest6
63 call tWriterUIChangesTest7
64 call tWriterUIChangesTest8
65 call tWriterUIChangesTest9
66 call tWriterUIChangesTest10
67 call tWriterUIChangesTest11
68 call tProlongedVowelsTest1
69 printlog Chr(13) + "- CJK Feature Switch test -- Calc"
70 gApplication = "CALC"
71 '--Turn on/off Asian language support --"
72 call tCalcUIChangesTest_10
73 printlog Chr(13) + "- CJK Feature Switch test -- Impress"
74 gApplication = "IMPRESS"
75 '--Turn on/off Asian language support --"
76 call tImpressUIChangesTest_10
77 printlog Chr(13) + "- CJK Feature Switch test -- Draw"
78 gApplication = "DRAW"
79 '--Turn on/off Asian language support --"
80 call tDrawUIChangesTest_10
82 call hStatusOut
84 if sAsianLanguageFlag = "Off" then
85 call CheckAsianLanguageSupport("Off")
86 else
87 call CheckAsianLanguageSupport("On")
88 end if
89 end sub
91 '-------------------------------------------------------------------------
93 sub LoadIncludeFiles
95 use "global\system\includes\master.inc"
96 use "global\system\includes\gvariabl.inc"
98 use "framework\tools\includes\CJK_tools.inc"
100 gApplication = "WRITER"
101 call GetUseFiles
103 end sub