1 'encoding UTF-8 Do not remove or change this line!
2 '**************************************************************************
3 '* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 '* Copyright 2008 by Sun Microsystems, Inc.
7 '* OpenOffice.org - a multi-platform office productivity suite
9 '* $RCSfile: w_section.bas,v $
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
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()
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
90 Printlog
Chr(13) + "End of Level1 - Test :"
91 Printlog
"Duration: "+ WieLange ( StartZeit
)
92 Printlog
"Date: " + Date + " Time: " + Time
97 use
"global\system\includes\master.inc"
98 use
"global\system\includes\gvariabl.inc"
99 use
"global\tools\includes\required\t_lists.inc"
101 gApplication
= "WRITER"