merge the formfield patch from ooo-build
[ooovba.git] / testautomation / writer / optional / w_section.bas
blob658c4cd5148b55fa16d22972f8008a8fe2098cf8
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_section.bas,v $
11 '* $Revision: 1.2 $
13 '* last change: $Author: fredrikh $ $Date: 2008-06-18 20:00:35 $
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 : Section test
38 '\*******************************************************************
40 global gSeperator , gMeasurementUnit , gDefaultSectionName as String
42 sub main
43 Dim StartZeit
44 StartZeit = Now()
46 use "writer\tools\includes\w_tools.inc"
47 use "writer\tools\includes\w_tool7.inc"
48 use "writer\optional\includes\section\w_section_1.inc"
49 use "writer\optional\includes\section\w_section_2.inc"
50 use "writer\optional\includes\section\w_section_3.inc"
51 use "writer\optional\includes\section\w_section_4.inc"
52 use "writer\optional\includes\section\w_section_tools.inc"
54 printlog Chr(13) + "Loading of Include - Files takes: " + Wielange ( StartZeit )
55 printlog Chr(13) + "******* Writer - Section - Test *******"
57 Call hStatusIn ( "writer" , "w_section.bas" , "Section" )
59 'Software Configuration:
60 'Getting the decimal seperator from global function
61 gSeperator = GetDecimalSeperator()
62 'Setting the measurement unit to centimeters.
63 gMeasurementUnit = fSetMeasurementToCM()
65 Select case iSprache
66 case 01 : gDefaultSectionName = "Section" '(English USA)
67 case 31 : gDefaultSectionName = "Bereik" '(Dutch)
68 case 33 : gDefaultSectionName = "Section" '(French)
69 case 34 : gDefaultSectionName = "Sección" '(Spanish)
70 case 36 : gDefaultSectionName = "Szakasz" '(Hungarian)
71 case 39 : gDefaultSectionName = "Sezione" '(Italian)
72 case 46 : gDefaultSectionName = "Område" '(Swedish)
73 case 49 : gDefaultSectionName = "Bereich" '(German)
74 case 55 : gDefaultSectionName = "Seção" '(Portuguese)
75 case 81 : gDefaultSectionName = "範囲" '(Japanese)
76 case 82 : gDefaultSectionName = "구역" '(Korean)
77 case 86 : gDefaultSectionName = "区域" '(Simplified Chinese)
78 case 88 : gDefaultSectionName = "�?�域" '(Traditional Chinese)
79 case else : QAErrorLog "The test does not support the language " + iSprache
80 exit sub
81 end select
83 Call w_section_1
84 Call w_section_2
85 Call w_section_3
86 Call w_section_4
88 Call hStatusOut
90 Printlog Chr(13) + "End of Level1 - Test :"
91 Printlog "Duration: "+ WieLange ( StartZeit )
92 Printlog "Date: " + Date + " Time: " + Time
94 end sub
96 sub LoadIncludeFiles
97 use "global\system\includes\master.inc"
98 use "global\system\includes\gvariabl.inc"
99 use "global\tools\includes\required\t_lists.inc"
100 Call GetUseFiles
101 gApplication = "WRITER"
103 end sub