jl165 merging heads
[LibreOffice.git] / testautomation / framework / optional / f_NewSortingAlgorithmForJapanese.bas
blob44b157fe8d86aa0ed1d613f8ae3fbbc2bd55d965
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: thorsten.bosbach@oracle.com
30 '* short description: New Sorting Algorithm For Japanese
32 '\*********************************************************************
34 global sAsianLanguageFlag as String
36 sub main
37 printlog "---------------------------------------------------------------------"
38 printlog "----- New Sorting Algorithm For Japanese test -----"
39 printlog "---------------------------------------------------------------------"
41 use "framework\optional\includes\NewSortingAlgorithmForJapanese_1.inc"
44 sAsianLanguageFlag = CheckAsianLanguageSupport("Current")
45 Call CheckAsianLanguageSupport("On")
47 Call hStatusIn("framework", "f_NewSortingAlgorithmForJapanese.bas")
49 printLog Chr(13) + "-New Sorting Algorithm For Japanese test -- Writer"
50 Call NewSortingForJapanese_1 'Check if editbox "Entry Phonetic Reading " appear or not
51 Call NewSortingForJapanese_2 'Check if editbox "Entry Phonetic Reading " is enabled or not
52 Call NewSortingForJapanese_3 'Check the number of key type in sort area when choose japanese language
53 Call NewSortingForJapanese_4 'Check the number of key type in data/sort
55 printLog Chr(13) + "-New Sorting Algorithm For Japanese test -- Calc"
56 gApplication = "CALC"
57 Call NewSortingForJapanese_5 'Check the number of key type in data/sort -- Calc
59 Call hStatusOut
61 if sAsianLanguageFlag = "Off" then
62 Call CheckAsianLanguageSupport("Off")
63 else
64 Call CheckAsianLanguageSupport("On")
65 end if
66 end sub
68 '-------------------------------------------------------------------------
70 sub LoadIncludeFiles
71 use "global\system\includes\master.inc"
72 use "global\system\includes\gvariabl.inc"
74 use "framework\tools\includes\CJK_tools.inc"
76 gApplication = "WRITER"
77 Call GetUseFiles
78 end sub