merge the formfield patch from ooo-build
[ooovba.git] / testautomation / writer / optional / w_hhConversion.bas
bloba61224d1962e35b61667c78e72a3b563ec43782f
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: w_hhConversion.bas,v $
11 '* $Revision: 1.1 $
13 '* last change: $Author: fredrikh $ $Date: 2008-06-18 09:11:25 $
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 Hangul/Hanja Conversion
38 '\*******************************************************************
40 sub main
42 Dim StartZeit
43 Dim bAsianLanguage as Boolean
44 StartZeit = Now()
45 use "writer\tools\includes\w_tools.inc"
46 use "writer\tools\includes\w_tool3.inc"
47 use "writer\optional\includes\tools\tools1.inc"
48 use "writer\optional\includes\tools\tools2.inc"
49 use "writer\optional\includes\hangulhanjaonversion\hhConversion1.inc"
50 use "writer\optional\includes\hangulhanjaonversion\hhConversion2.inc"
51 use "writer\optional\includes\hangulhanjaonversion\hhConversion3.inc"
53 printlog Chr(13) + "Loading of Include - Files takes: " + Wielange ( StartZeit )
54 printlog Chr(13) + "******* Writer - Level 1 - Test *******"
56 Call hStatusIn ( "writer", "w_hhConversion.bas" , "HH Converstion" )
58 printlog Chr(13) + " - Test Hangul/Hanja Conversion"
60 'Enable 'Asian Language support' ON
61 bAsianLanguage = ActiveDeactivateAsianSupport(TRUE)
63 printlog Chr(13) + " - No selection "
65 Call tHHNoSelction_1
66 Call tHHNoSelction_2
67 Call tHHNoSelction_3
68 Call tHHNoSelction_4
69 Call tHHNoSelction_5
70 Call tHHNoSelction_6
71 Call tHHNoSelction_7
73 printlog Chr(13) + " - Single selection "
75 Call tHHSingleSelction_1
77 printlog Chr(13) + " - Multi selection "
79 Call tHHMultiSelction_1
81 printlog Chr(13) + " - in text box and draw box "
83 Call tHHTextBox_1
84 Call tHHDrawBox_1
86 printlog Chr(13) + " - Hangul/Hanja Conversion"
88 Call tHHConversion_1
89 Call tHHConversion_2
90 Call tHHConversion_3
91 Call tHHConversion_4
92 Call tHHConversion_5
93 Call tHHConversion_6
94 Call tHHConversion_7
95 Call tHHConversion_8
96 Call tHHConversion_9
97 Call tHHConversion_10
98 Call tHHConversion_11
99 Call tHHConversion_12
100 Call tHHConversion_13
101 Call tHHConversion_14
102 Call tHHConversion_15
103 Call tHHConversion_16
104 Call tHHConversion_17
105 Call tHHConversion_18
106 Call tHHConversion_19
107 Call tHHConversion_20
108 Call tHHConversion_21
109 Call tHHConversion_22
110 Call tHHConversion_23
111 Call tHHConversion_24
112 Call tHHConversion_25
113 Call tHHConversion_26
115 printlog Chr(13) + " - Hangul/Hanja Options"
117 Call tHHOptions_1
118 Call tHHOptions_2
119 Call tHHOptions_3
120 Call tHHOptions_4
121 Call tHHOptions_5
122 Call tHHOptions_6
123 Call tHHOptions_7
124 Call tHHOptions_8
125 Call tHHOptions_9
126 Call tHHOptions_10
127 Call tHHOptions_11
128 Call tHHOptions_12
130 'Set the 'Asian Language support' to default
131 Call ActiveDeactivateAsianSupport(bAsianLanguage)
132 Call hStatusOut
134 Printlog Chr(13) + "End of Level 1 Test - Hangul/Hanja Conversion"
135 Printlog "Duration: "+ WieLange ( StartZeit )
136 Printlog "Date: " + Date + " Time: " + Time
138 end sub
140 sub LoadIncludeFiles
141 use "global\system\includes\master.inc"
142 use "global\system\includes\gvariabl.inc"
143 Call GetUseFiles
144 gApplication = "WRITER"
145 end Sub