jl165 merging heads
[LibreOffice.git] / testautomation / writer / optional / w_hhConversion.bas
blob594623540f25eaf4ba421150f8351d49765c8a32
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 2000, 2010 Oracle and/or its affiliates.
7 ' OpenOffice.org - a multi-platform office productivity suite
9 ' This file is part of OpenOffice.org.
11 ' OpenOffice.org is free software: you can redistribute it and/or modify
12 ' it under the terms of the GNU Lesser General Public License version 3
13 ' only, as published by the Free Software Foundation.
15 ' OpenOffice.org is distributed in the hope that it will be useful,
16 ' but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ' GNU Lesser General Public License version 3 for more details
19 ' (a copy is included in the LICENSE file that accompanied this code).
21 ' You should have received a copy of the GNU Lesser General Public License
22 ' version 3 along with OpenOffice.org. If not, see
23 ' <http://www.openoffice.org/license.html>
24 ' for a copy of the LGPLv3 License.
26 '/************************************************************************
28 '* owner : helge.delfs@oracle.com
30 '* short description : Test Hangul/Hanja Conversion
32 '\*******************************************************************
34 sub main
36 Dim StartZeit
37 Dim bAsianLanguage as Boolean
38 StartZeit = Now()
39 use "writer\tools\includes\w_tools.inc"
40 use "writer\tools\includes\w_tool3.inc"
41 use "writer\optional\includes\tools\tools1.inc"
42 use "writer\optional\includes\tools\tools2.inc"
43 use "writer\optional\includes\hangulhanjaonversion\hhConversion1.inc"
44 use "writer\optional\includes\hangulhanjaonversion\hhConversion2.inc"
45 use "writer\optional\includes\hangulhanjaonversion\hhConversion3.inc"
47 printlog Chr(13) + "Loading of Include - Files takes: " + Wielange ( StartZeit )
48 printlog Chr(13) + "******* Writer - Level 1 - Test *******"
50 Call hStatusIn ( "writer", "w_hhConversion.bas" , "HH Converstion" )
52 printlog Chr(13) + " - Test Hangul/Hanja Conversion"
54 'Enable 'Asian Language support' ON
55 bAsianLanguage = ActiveDeactivateAsianSupport(TRUE)
57 printlog Chr(13) + " - No selection "
59 Call tHHNoSelction_1
60 Call tHHNoSelction_2
61 Call tHHNoSelction_3
62 Call tHHNoSelction_4
63 Call tHHNoSelction_5
64 Call tHHNoSelction_6
65 Call tHHNoSelction_7
67 printlog Chr(13) + " - Single selection "
69 Call tHHSingleSelction_1
71 printlog Chr(13) + " - Multi selection "
73 Call tHHMultiSelction_1
75 printlog Chr(13) + " - in text box and draw box "
77 Call tHHTextBox_1
78 Call tHHDrawBox_1
80 printlog Chr(13) + " - Hangul/Hanja Conversion"
82 Call tHHConversion_1
83 Call tHHConversion_2
84 Call tHHConversion_3
85 Call tHHConversion_4
86 Call tHHConversion_5
87 Call tHHConversion_6
88 Call tHHConversion_7
89 Call tHHConversion_8
90 Call tHHConversion_9
91 Call tHHConversion_10
92 Call tHHConversion_11
93 Call tHHConversion_12
94 Call tHHConversion_13
95 Call tHHConversion_14
96 Call tHHConversion_15
97 Call tHHConversion_16
98 Call tHHConversion_17
99 Call tHHConversion_18
100 Call tHHConversion_19
101 Call tHHConversion_20
102 Call tHHConversion_21
103 Call tHHConversion_22
104 Call tHHConversion_23
105 Call tHHConversion_24
106 Call tHHConversion_25
107 Call tHHConversion_26
109 printlog Chr(13) + " - Hangul/Hanja Options"
111 Call tHHOptions_1
112 Call tHHOptions_2
113 Call tHHOptions_3
114 Call tHHOptions_4
115 Call tHHOptions_5
116 Call tHHOptions_6
117 Call tHHOptions_7
118 Call tHHOptions_8
119 Call tHHOptions_9
120 Call tHHOptions_10
121 Call tHHOptions_11
122 Call tHHOptions_12
124 'Set the 'Asian Language support' to default
125 Call ActiveDeactivateAsianSupport(bAsianLanguage)
126 Call hStatusOut
128 Printlog Chr(13) + "End of Level 1 Test - Hangul/Hanja Conversion"
129 Printlog "Duration: "+ WieLange ( StartZeit )
130 Printlog "Date: " + Date + " Time: " + Time
132 end sub
134 sub LoadIncludeFiles
135 use "global\system\includes\master.inc"
136 use "global\system\includes\gvariabl.inc"
137 Call GetUseFiles
138 gApplication = "WRITER"
139 end Sub