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_get_locale_strings.inc,v $
13 '* last change: $Author: vg $ $Date: 2008-08-18 12:42:49 $
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 : testcase to get Locale Strings used in Writer Optional-Test
38 '\***********************************************************************
40 sub w_get_locale_strings
44 Call wUsedInLoadSaveTests
48 '------------------------------------------------------------------------------------------------
50 testcase wAllFieldNames
54 printlog " get all field descriptions (used in w_tools.inc)"
62 printlog "Tabpage Document"
63 Active.Setpage TabDokumentFeldbefehle
64 Kontext "TabDokumentFeldbefehle"
66 printlog "Tabpage References"
67 Active.Setpage TabReferenzen
68 Kontext "TabReferenzen"
70 printlog "Tabpage Functions"
71 Active.Setpage TabFunktionen
72 Kontext "TabFunktionen"
74 printlog "Tabpage DocInformation"
75 Active.Setpage TabDokumentInfoFeldbefehle
76 Kontext "TabDokumentInfoFeldbefehle"
78 printlog "Tabpage Variables"
79 Active.Setpage TabVariablen
80 Kontext "TabVariablen"
84 for j = 1 to Feldtyp.GetItemCount
90 for j = 1 to Feldtyp.GetItemCount
92 printlog "- " & Feldtyp.GetSelText
98 '------------------------------------------------------------------------------------------------
100 testcase wUsedInTableTest
103 Dim wTableName as string
105 printlog " gets all strings which are used in '.\\optional\\w_table.bas'"
106 printlog " add these entries into file : .\\optional\input\\table\\locale.txt"
110 Kontext "TabelleEinfuegenWriter"
111 TabelleEinfuegenWriter.Ok
113 Kontext "TableObjectbar"
114 printlog " Table Heading: " & Vorlage2.GetSelText
115 Kontext "DocumentWriter"
116 Call wTypeKeys "<Down>"
118 Kontext "TableObjectbar"
119 printlog " Table Contents: " & Vorlage2.GetSelText
120 Kontext "DocumentWriter"
123 Kontext "Zahlenformat"
125 printlog "Number: " & Kategorie.GetSelText
127 printlog "Text: " & Kategorie.GetSelText
129 printlog "Currency: " & Kategorie.GetSelText
131 printlog "Date: " & Kategorie.GetSelText
133 printlog "Time: " & Kategorie.GetSelText
135 printlog "Percent: " & Kategorie.GetSelText
137 printlog "Scientific: " & Kategorie.GetSelText
139 printlog "Fraction: " & Kategorie.GetSelText
141 printlog "Boolean Value: " & Kategorie.GetSelText
145 Kontext "TabelleEinfuegenWriter"
146 wTableName = TabellenName.Gettext
147 pos = Instr(wTableName, "2")
149 wTableName = Left$(wTableName, pos -1)
151 printlog "Table: " & wTableName
152 TabelleEinfuegenWriter.Cancel
157 '------------------------------------------------------------------------------------------------
159 testcase wUsedInLoadSaveTests
163 printlog "- All filters from open dialog:"
166 For i = 1 to Dateityp.GetItemCount
168 printlog " - " & Dateityp.GetSelText
173 printlog "- All filters from save dialog:"
175 Kontext "SpeichernDlg"
176 For i = 1 to Dateityp.GetItemCount
178 printlog " - " & Dateityp.GetSelText
186 '------------------------------------------------------------------------------------------------