xref: /trunk/main/wizards/source/euro/Init.xba (revision 336de7a5d49c876252cfff340508262c3ec2c30d)
1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2cdf0e10cSrcweir<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
33e02b54dSAndrew Rist<!--***********************************************************
43e02b54dSAndrew Rist *
53e02b54dSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
63e02b54dSAndrew Rist * or more contributor license agreements.  See the NOTICE file
73e02b54dSAndrew Rist * distributed with this work for additional information
83e02b54dSAndrew Rist * regarding copyright ownership.  The ASF licenses this file
93e02b54dSAndrew Rist * to you under the Apache License, Version 2.0 (the
103e02b54dSAndrew Rist * "License"); you may not use this file except in compliance
113e02b54dSAndrew Rist * with the License.  You may obtain a copy of the License at
123e02b54dSAndrew Rist *
133e02b54dSAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
143e02b54dSAndrew Rist *
153e02b54dSAndrew Rist * Unless required by applicable law or agreed to in writing,
163e02b54dSAndrew Rist * software distributed under the License is distributed on an
173e02b54dSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
183e02b54dSAndrew Rist * KIND, either express or implied.  See the License for the
193e02b54dSAndrew Rist * specific language governing permissions and limitations
203e02b54dSAndrew Rist * under the License.
213e02b54dSAndrew Rist *
223e02b54dSAndrew Rist ***********************************************************-->
23cdf0e10cSrcweir<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Init" script:language="StarBasic">Option Explicit
24cdf0e10cSrcweirREM ***** BASIC *****
25cdf0e10cSrcweir
26cdf0e10cSrcweirPublic Const SBRANGEUBOUND = 20
27cdf0e10cSrcweirPublic StyleRangeAssignmentList(SBRANGEUBOUND)as String
28cdf0e10cSrcweirPublic SelRangeList(SBRANGEUBOUND) as String
29cdf0e10cSrcweirPublic RangeList(SBRANGEUBOUND) as String
30cdf0e10cSrcweirPublic UnprotectList() as String
31cdf0e10cSrcweirPublic FilterNames(2,1) as String
32cdf0e10cSrcweirPublic bDoUnProtect as Boolean
33cdf0e10cSrcweirPublic bCancelTask as Boolean
34cdf0e10cSrcweir
35cdf0e10cSrcweirPublic sREADY as String
36cdf0e10cSrcweirPublic sPROTECT as String
37cdf0e10cSrcweirPublic sCONTINUE as String
38cdf0e10cSrcweir
39cdf0e10cSrcweirPublic sSELTEMPL as String
40cdf0e10cSrcweirPublic sSELCELL as String
41cdf0e10cSrcweirPublic sCURRRANGES as String
42cdf0e10cSrcweirPublic sTEMPLATES as String
43cdf0e10cSrcweir
44cdf0e10cSrcweirPublic sSOURCEFILE as String
45cdf0e10cSrcweirPublic sSOURCEDIR as String
46cdf0e10cSrcweirPublic sTARGETDIR as String
47cdf0e10cSrcweir
48cdf0e10cSrcweirPublic sStsPROGRESS as String
49cdf0e10cSrcweirPublic sStsCELLPROGRSS as String
50cdf0e10cSrcweirPublic sStsRELRANGES as String
51cdf0e10cSrcweirPublic sStsRELSHEETRANGES as String
52cdf0e10cSrcweirPublic sStsREPROTECT as String
53cdf0e10cSrcweir
54cdf0e10cSrcweirPublic sMsgSELDIR as String
55cdf0e10cSrcweirPublic sMsgSELFILE as String
56cdf0e10cSrcweirPublic sMsgTARGETDIR as String
57cdf0e10cSrcweirPublic sMsgNOTTHERE as String
58cdf0e10cSrcweirPublic sMsgDLGTITLE as String
59cdf0e10cSrcweirPublic sMsgUNPROTECT as String
60cdf0e10cSrcweirPublic sMsgPWPROTECT as String
61cdf0e10cSrcweirPublic sMsgWRONGPW as String
62cdf0e10cSrcweirPublic sMsgSHEETPROTECTED as String
63cdf0e10cSrcweirPublic sMsgWARNING as String
64cdf0e10cSrcweirPublic sMsgSHEETSNOPROTECT as String
65cdf0e10cSrcweirPublic sMsgSHEETNOPROTECT as String
66cdf0e10cSrcweirPublic sMsgCHOOSECURRENCY as String
67cdf0e10cSrcweirPublic sMsgPASSWORD as String
68cdf0e10cSrcweirPublic sMsgOK as String
69cdf0e10cSrcweirPublic sMsgCANCEL as String
70cdf0e10cSrcweirPublic sMsgFileInvalid as String
71cdf0e10cSrcweirPublic sMsgNODIRECTORY as String
72cdf0e10cSrcweirPublic sMsgDOCISREADONLY as String
73cdf0e10cSrcweirPublic sMsgFileExists as String
74cdf0e10cSrcweirPublic sMsgCancelConversion as String
75cdf0e10cSrcweirPublic sMsgCancelTitle as String
76cdf0e10cSrcweirPublic sCurrPORTUGUESE as String
77cdf0e10cSrcweirPublic sCurrDUTCH as String
78cdf0e10cSrcweirPublic sCurrFRENCH as String
79cdf0e10cSrcweirPublic sCurrSPANISH as String
80cdf0e10cSrcweirPublic sCurrITALIAN as String
81cdf0e10cSrcweirPublic sCurrGERMAN as String
82cdf0e10cSrcweirPublic sCurrBELGIAN as String
83cdf0e10cSrcweirPublic sCurrIRISH as String
84cdf0e10cSrcweirPublic sCurrLUXEMBOURG as String
85cdf0e10cSrcweirPublic sCurrAUSTRIAN as String
86cdf0e10cSrcweirPublic sCurrFINNISH as String
87cdf0e10cSrcweirPublic sCurrGREEK as String
88cdf0e10cSrcweirPublic sCurrSLOVENIAN as String
89cdf0e10cSrcweirPublic sCurrCYPRIOT as String
90cdf0e10cSrcweirPublic sCurrMALTESE as String
91cdf0e10cSrcweirPublic sCurrSLOVAK as String
9210d685eaSMatthias SeidelPublic sCurrESTONIAN as String
9310d685eaSMatthias SeidelPublic sCurrLATVIAN as String
9410d685eaSMatthias SeidelPublic sCurrLITHUANIAN as String
9510d685eaSMatthias SeidelPublic sCurrCROATIAN as String
96*336de7a5SmseidelPublic sCurrBULGARIAN as String
97cdf0e10cSrcweirPublic sCurrUNKNOWN as String
98cdf0e10cSrcweirPublic sCurrSYSUNKNOWN as String
99cdf0e10cSrcweir
100cdf0e10cSrcweirPublic sPrgsRETRIEVAL as String
101cdf0e10cSrcweirPublic sPrgsCONVERTING as String
102cdf0e10cSrcweirPublic sPrgsUNPROTECT as String
103cdf0e10cSrcweirPublic sInclusiveSubDir as String
104cdf0e10cSrcweir
105*336de7a5SmseidelPublic Const SBCOUNTRYCOUNT = 20
106cdf0e10cSrcweirPublic CurMimeType as String
107cdf0e10cSrcweirPublic CurCellCount as Long
108cdf0e10cSrcweirPublic oSheets as Object
109cdf0e10cSrcweirPublic oStyles as Object
110cdf0e10cSrcweirPublic oStyle as Object
111cdf0e10cSrcweirPublic oFormats as Object
112cdf0e10cSrcweirPublic aSimpleStr as String
113cdf0e10cSrcweirPublic nSimpleKey as Long
114cdf0e10cSrcweirPublic aFormat() as Variant
115cdf0e10cSrcweirPublic oRanges as Object
116cdf0e10cSrcweirPublic oRange as Object
117cdf0e10cSrcweirPublic nLanguage as integer
118cdf0e10cSrcweirPublic nFormatLanguage as integer
119cdf0e10cSrcweirPublic aCellFormat as Variant
120cdf0e10cSrcweirPublic oDocument as Object
121cdf0e10cSrcweirPublic StartCol, StartRow, EndCol, EndRow as String
122cdf0e10cSrcweirPublic oSheet as Object
123cdf0e10cSrcweirPublic IntStartCol, IntStartRow, IntEndCol, IntEndRow as integer
124cdf0e10cSrcweirPublic oSelRanges as Object
125cdf0e10cSrcweirPublic nFormatType as Integer
126cdf0e10cSrcweirPublic sFormatCurrency as String
127cdf0e10cSrcweirPublic sFormatLanguage as String
128cdf0e10cSrcweirPublic CurSheetName as String
129cdf0e10cSrcweirPublic oStatusLine as Object
130cdf0e10cSrcweirPublic Const SBRELGET = 50
131cdf0e10cSrcweirPublic StatusValue as Single
132cdf0e10cSrcweirPublic TotCellCount as Long
133cdf0e10cSrcweirPublic StyleIndex as Integer
134cdf0e10cSrcweirPublic RangeIndex as Integer
135cdf0e10cSrcweirPublic CurrIndex as Integer
136cdf0e10cSrcweirPublic ActLangNumber(1) as Integer
137cdf0e10cSrcweirPublic CurExtension(2) as String
138cdf0e10cSrcweirPublic Currfactor as Double
139cdf0e10cSrcweirPublic CurrSymbolList(2) as String
140cdf0e10cSrcweirPublic CurrLanguage as String
141*336de7a5SmseidelPublic CurrValue(20,5)
142*336de7a5SmseidelPublic LangIDValue(20,2,2) as String
143cdf0e10cSrcweirPublic PreName as String
144cdf0e10cSrcweirPublic Separator as String
145cdf0e10cSrcweirPublic BitmapDir as String
146cdf0e10cSrcweirPublic TypeIndex as Integer, CSIndex as Integer, LangIndex as Integer, FSIndex as Integer
147cdf0e10cSrcweirPublic oLocale as New com.sun.star.lang.Locale
148cdf0e10cSrcweirPublic sEuroSign as String
149cdf0e10cSrcweirPublic oPointer as Object
150cdf0e10cSrcweirPublic sDocType as String
151cdf0e10cSrcweirPublic bPreSelected as Boolean
152cdf0e10cSrcweirPublic bRecursive as Boolean
153cdf0e10cSrcweirPublic bCancelProtection as Boolean
154cdf0e10cSrcweirPublic CurrRoundMode as Boolean
155cdf0e10cSrcweirPublic bRangeListDefined as Boolean
156cdf0e10cSrcweirPublic bDocHasProtectedSheets as Boolean
157cdf0e10cSrcweirPublic sGOON as String
158cdf0e10cSrcweirPublic sHELP as String
159cdf0e10cSrcweirPublic sCANCEL as String
160cdf0e10cSrcweirDim sEnd as String
161cdf0e10cSrcweir
162cdf0e10cSrcweirSub InitializeResources()
163cdf0e10cSrcweirDim LocWorkPath as String
164cdf0e10cSrcweir    With DialogModel
165cdf0e10cSrcweir        &apos; Strings that are also needed by the Password Dialog
166cdf0e10cSrcweir        sGoOn = GetResText(1003)
167cdf0e10cSrcweir        sHelp = GetResText(1001)
168cdf0e10cSrcweir        sCANCEL = GetResText(1418)
169cdf0e10cSrcweir        sEnd = GetResText(1000)
170cdf0e10cSrcweir        sPROTECT = GetResText(1005)
171cdf0e10cSrcweir        sCONTINUE = GetResText(1007)
172cdf0e10cSrcweir        sSELTEMPL = GetResText(1106)
173cdf0e10cSrcweir        sSELCELL = GetResText(1107)
174cdf0e10cSrcweir        sCURRRANGES = GetResText(1108)
175cdf0e10cSrcweir        sTEMPLATES = GetResText(1109)
176cdf0e10cSrcweir        sStsPROGRESS = GetResText(1300)
177cdf0e10cSrcweir        sStsCELLPROGRSS = GetResText(1301)
178cdf0e10cSrcweir        sStsRELSHEETRANGES = GetResText(1302)
179cdf0e10cSrcweir        sStsRELRANGES = GetResText(1303)
180cdf0e10cSrcweir        sStsREPROTECT = GetResText(1304)
181cdf0e10cSrcweir        sREADY = GetResText(1400)
182cdf0e10cSrcweir        sMsgSELDIR = GetResText(1401)
183cdf0e10cSrcweir        sMsgSELFILE = GetResText(1402)
184cdf0e10cSrcweir        sMsgTARGETDIR = GetResText(1403)
185cdf0e10cSrcweir        sMsgNOTTHERE = GetResText(1404)
186cdf0e10cSrcweir        sMsgDLGTITLE = GetResText(1405)
187cdf0e10cSrcweir        sMsgUNPROTECT = GetResText(1406)
188cdf0e10cSrcweir        sMsgPWPROTECT = GetResText(1407)
189cdf0e10cSrcweir        sMsgWRONGPW = GetResText(1408)
190cdf0e10cSrcweir        sMsgSHEETPROTECTED = GetResText(1409)
191cdf0e10cSrcweir        sMsgWARNING = GetResText(1410)
192cdf0e10cSrcweir        sMsgSHEETSNOPROTECT = GetResText(1411)
193cdf0e10cSrcweir        sMsgSHEETNOPROTECT = GetResText(1412)
194cdf0e10cSrcweir        sMsgCHOOSECURRENCY = GetResText(1415)
195cdf0e10cSrcweir        sMsgPASSWORD = GetResText(1416)
196cdf0e10cSrcweir        sMsgOK = GetResText(1417)
197cdf0e10cSrcweir        sMsgCANCEL = GetResText(1418)
198cdf0e10cSrcweir        sMsgFILEINVALID = GetResText(1419)
199cdf0e10cSrcweir        sMsgFILEINVALID = ReplaceString(sMsgFILEINVALID,&quot;%PRODUCTNAME&quot;, GetProductname())
200cdf0e10cSrcweir        SMsgNODIRECTORY = GetResText(1420)
201cdf0e10cSrcweir        sMsgDOCISREADONLY = GetResText(1421)
202cdf0e10cSrcweir        sMsgFileExists = GetResText(1422)
203cdf0e10cSrcweir        sMsgCancelConversion = GetResText(1423)
204cdf0e10cSrcweir        sMsgCancelTitle = GetResText(1424)
205cdf0e10cSrcweir        sCurrPORTUGUESE = GetResText(1500)
206cdf0e10cSrcweir        sCurrDUTCH = GetResText(1501)
207cdf0e10cSrcweir        sCurrFRENCH = GetResText(1502)
208cdf0e10cSrcweir        sCurrSPANISH = GetResText(1503)
209cdf0e10cSrcweir        sCurrITALIAN = GetResText(1504)
210cdf0e10cSrcweir        sCurrGERMAN = GetResText(1505)
211cdf0e10cSrcweir        sCurrBELGIAN = GetResText(1506)
212cdf0e10cSrcweir        sCurrIRISH = GetResText(1507)
213cdf0e10cSrcweir        sCurrLUXEMBOURG = GetResText(1508)
214cdf0e10cSrcweir        sCurrAUSTRIAN = GetResText(1509)
215cdf0e10cSrcweir        sCurrFINNISH = GetResText(1510)
216cdf0e10cSrcweir        sCurrGREEK = GetResText(1511)
217cdf0e10cSrcweir        sCurrSLOVENIAN = GetResText(1512)
218cdf0e10cSrcweir        sCurrCYPRIOT = GetResText(1513)
219cdf0e10cSrcweir        sCurrMALTESE = GetResText(1514)
220cdf0e10cSrcweir        sCurrSLOVAK = GetResText(1515)
22110d685eaSMatthias Seidel        sCurrESTONIAN = GetResText(1516)
22210d685eaSMatthias Seidel        sCurrLATVIAN = GetResText(1517)
22310d685eaSMatthias Seidel        sCurrLITHUANIAN = GetResText(1518)
22410d685eaSMatthias Seidel        sCurrCROATIAN = GetResText(1519)
225*336de7a5Smseidel        sCurrBULGARIAN = GetResText(1520)
226*336de7a5Smseidel        sCurrUNKNOWN = GetResText(1521)
227*336de7a5Smseidel        sCurrSYSUNKNOWN = GetResText(1522)
228cdf0e10cSrcweir        .cmdCancel.Label = sCANCEL
229cdf0e10cSrcweir        .cmdHelp.Label = sHELP
230cdf0e10cSrcweir        .cmdBack.Label = GetResText(1002)
231cdf0e10cSrcweir        .cmdGoOn.Label = sGOON
232cdf0e10cSrcweir        .lblHint.Label = GetResText(1004)
233cdf0e10cSrcweir        .lblCurrencies.Label = GetResText(1006)
234cdf0e10cSrcweir        .cmdBack.Enabled = False
235cdf0e10cSrcweir        If .Step = 1 Then
236cdf0e10cSrcweir            .chkComplete.Label = GetResText(1100)
237cdf0e10cSrcweir            .hlnSelection.Label = GetResText(1101)
238cdf0e10cSrcweir            .optCellTemplates.Label = GetResText(1102)
239cdf0e10cSrcweir            .optSheetRanges.Label = GetResText(1103)
240cdf0e10cSrcweir            .optDocRanges.Label = GetResText(1104)
241cdf0e10cSrcweir            .optSelRange.Label = GetResText(1105)
242cdf0e10cSrcweir            sCURRRANGES = GetResText(1108)
243cdf0e10cSrcweir            .lblSelection.Label = sCURRRANGES
244cdf0e10cSrcweir        Else
245cdf0e10cSrcweir            .lblProgress.Label = sStsPROGRESS
246cdf0e10cSrcweir            .hlnExtent.Label = GetResText(1200)
247cdf0e10cSrcweir            .optSingleFile.Label = GetResText(1201)
248cdf0e10cSrcweir            .optWholeDir.Label = GetResText(1202)
249cdf0e10cSrcweir            .chkProtect.Label = GetResText(1207)
250cdf0e10cSrcweir            .chkTextDocuments.Label = GetResText(1210)
251cdf0e10cSrcweir
252cdf0e10cSrcweir            sSOURCEFILE = GetResText(1203)
253cdf0e10cSrcweir            sSOURCEDIR = GetResText(1204)
254cdf0e10cSrcweir            .lblSource.Label = sSOURCEDIR
255cdf0e10cSrcweir            sInclusiveSubDir = GetResText(1205)
256cdf0e10cSrcweir            .chkRecursive.Label = sInclusiveSubDir
257cdf0e10cSrcweir            sTARGETDIR = GetResText(1206)
258cdf0e10cSrcweir            .lblTarget.Label = STARGETDIR
259cdf0e10cSrcweir
260cdf0e10cSrcweir            LocWorkPath = GetPathSettings(&quot;Work&quot;)
261cdf0e10cSrcweir            If Not oUcb.Exists(LocWorkPath) Then
262cdf0e10cSrcweir                ShowNoOfficePathError()
263cdf0e10cSrcweir                Stop
264cdf0e10cSrcweir            End If
265cdf0e10cSrcweir
266cdf0e10cSrcweir            .txtSource.Text = ConvertfromUrl(LocWorkPath)
267cdf0e10cSrcweir
268cdf0e10cSrcweir            SubstDir = .txtSource.Text
269cdf0e10cSrcweir            .txtTarget.Text = .txtSource.Text
270cdf0e10cSrcweir            .hlnProgress.Label = GetResText(1600)
271cdf0e10cSrcweir            .lblConfig.Label = GetResText(1603)
272cdf0e10cSrcweir            sPrgsRETRIEVAL = GetResText(1601)
273cdf0e10cSrcweir            sPrgsCONVERTING = GetResText(1602)
274cdf0e10cSrcweir            sPrgsUNPROTECT = GetResText(1604)
275cdf0e10cSrcweir        End If
276cdf0e10cSrcweir    End With
277cdf0e10cSrcweirEnd Sub
278cdf0e10cSrcweir
279cdf0e10cSrcweirSub InitializeLanguages()
280cdf0e10cSrcweir    sEuroSign = chr(8364)
281cdf0e10cSrcweir
282cdf0e10cSrcweir&apos; CURRENCIES_PORTUGUESE
283cdf0e10cSrcweir    LangIDValue(0,0,0) = &quot;pt&quot;
284cdf0e10cSrcweir    LangIDValue(0,0,1) = &quot;&quot;
285cdf0e10cSrcweir    LangIDValue(0,0,2) = &quot;-816&quot;
286cdf0e10cSrcweir
287cdf0e10cSrcweir&apos; CURRENCIES_DUTCH
288cdf0e10cSrcweir    LangIDValue(1,0,0) = &quot;nl&quot;
289cdf0e10cSrcweir    LangIDValue(1,0,1) = &quot;&quot;
290cdf0e10cSrcweir    LangIDValue(1,0,2) = &quot;-413&quot;
291cdf0e10cSrcweir
292cdf0e10cSrcweir&apos; CURRENCIES_FRENCH
293cdf0e10cSrcweir    LangIDValue(2,0,0) = &quot;fr&quot;
294cdf0e10cSrcweir    LangIDValue(2,0,1) = &quot;&quot;
295cdf0e10cSrcweir    LangIDValue(2,0,2) = &quot;-40C&quot;
296cdf0e10cSrcweir
297cdf0e10cSrcweir&apos; CURRENCIES_SPANISH
298cdf0e10cSrcweir    LangIDValue(3,0,0) = &quot;es&quot;
299cdf0e10cSrcweir    LangIDValue(3,0,1) = &quot;&quot;
300cdf0e10cSrcweir    LangIDValue(3,0,2) = &quot;-40A&quot;
301cdf0e10cSrcweir
302cdf0e10cSrcweir    &apos;Spanish modern
303cdf0e10cSrcweir    LangIDValue(3,1,0) = &quot;es&quot;
304cdf0e10cSrcweir    LangIDValue(3,1,1) = &quot;&quot;
305cdf0e10cSrcweir    LangIDValue(3,1,2) = &quot;-C0A&quot;
306cdf0e10cSrcweir
307cdf0e10cSrcweir    &apos;Spanish katalanic
308cdf0e10cSrcweir    LangIDValue(3,2,0) = &quot;es&quot;
309cdf0e10cSrcweir    LangIDValue(3,2,1) = &quot;&quot;
310cdf0e10cSrcweir    LangIDValue(3,2,2) = &quot;-403&quot;
311cdf0e10cSrcweir
312cdf0e10cSrcweir&apos; CURRENCIES_ITALIAN
313cdf0e10cSrcweir    LangIDValue(4,0,0) = &quot;it&quot;
314cdf0e10cSrcweir    LangIDValue(4,0,1) = &quot;&quot;
315cdf0e10cSrcweir    LangIDValue(4,0,2) = &quot;-410&quot;
316cdf0e10cSrcweir
317cdf0e10cSrcweir&apos; CURRENCIES_GERMAN
318cdf0e10cSrcweir    LangIDValue(5,0,0) = &quot;de&quot;
319cdf0e10cSrcweir    LangIDValue(5,0,1) = &quot;DE&quot;
320cdf0e10cSrcweir    LangIDValue(5,0,2) = &quot;-407&quot;
321cdf0e10cSrcweir
322cdf0e10cSrcweir&apos; CURRENCIES_BELGIAN
323cdf0e10cSrcweir    LangIDValue(6,0,0) = &quot;fr&quot;
324cdf0e10cSrcweir    LangIDValue(6,0,1) = &quot;BE&quot;
325cdf0e10cSrcweir    LangIDValue(6,0,2) = &quot;-80C&quot;
326cdf0e10cSrcweir
327cdf0e10cSrcweir    LangIDValue(6,1,0) = &quot;nl&quot;
328cdf0e10cSrcweir    LangIDValue(6,1,1) = &quot;BE&quot;
329cdf0e10cSrcweir    LangIDValue(6,1,2) = &quot;-813&quot;
330cdf0e10cSrcweir
331cdf0e10cSrcweir&apos; CURRENCIES_IRISH
332cdf0e10cSrcweir    LangIDValue(7,0,0) = &quot;en&quot;
333cdf0e10cSrcweir    LangIDValue(7,0,1) = &quot;IE&quot;
334cdf0e10cSrcweir    LangIDValue(7,0,2) = &quot;-1809&quot;
335cdf0e10cSrcweir
336cdf0e10cSrcweir    LangIDValue(7,1,0) = &quot;ga&quot;
337cdf0e10cSrcweir    LangIDValue(7,1,1) = &quot;IE&quot;
338cdf0e10cSrcweir    LangIDValue(7,1,2) = &quot;-83C&quot;
339cdf0e10cSrcweir
340cdf0e10cSrcweir&apos; CURRENCIES_LUXEMBOURG
341cdf0e10cSrcweir    LangIDValue(8,0,0) = &quot;fr&quot;
342cdf0e10cSrcweir    LangIDValue(8,0,1) = &quot;LU&quot;
343cdf0e10cSrcweir    LangIDValue(8,0,2) = &quot;-140C&quot;
344cdf0e10cSrcweir
345cdf0e10cSrcweir    LangIDValue(8,1,0) = &quot;de&quot;
346cdf0e10cSrcweir    LangIDValue(8,1,1) = &quot;LU&quot;
347cdf0e10cSrcweir    LangIDValue(8,1,2) = &quot;-1007&quot;
348cdf0e10cSrcweir
349cdf0e10cSrcweir&apos; CURRENCIES_AUSTRIAN
350cdf0e10cSrcweir    LangIDValue(9,0,0) = &quot;de&quot;
351cdf0e10cSrcweir    LangIDValue(9,0,1) = &quot;AT&quot;
352cdf0e10cSrcweir    LangIDValue(9,0,2) = &quot;-C07&quot;
353cdf0e10cSrcweir
354cdf0e10cSrcweir&apos; CURRENCIES_FINNISH
355cdf0e10cSrcweir    LangIDValue(10,0,0) = &quot;fi&quot;
356cdf0e10cSrcweir    LangIDValue(10,0,1) = &quot;FI&quot;
357cdf0e10cSrcweir    LangIDValue(10,0,2) = &quot;-40B&quot;
358cdf0e10cSrcweir
359cdf0e10cSrcweir    LangIDValue(10,1,0) = &quot;sv&quot;
360cdf0e10cSrcweir    LangIDValue(10,1,1) = &quot;FI&quot;
361cdf0e10cSrcweir    LangIDValue(10,1,2) = &quot;-81D&quot;
362cdf0e10cSrcweir
363cdf0e10cSrcweir&apos; CURRENCIES_GREEK
364cdf0e10cSrcweir    LangIDValue(11,0,0) = &quot;el&quot;
365cdf0e10cSrcweir    LangIDValue(11,0,1) = &quot;GR&quot;
366cdf0e10cSrcweir    LangIDValue(11,0,2) = &quot;-408&quot;
367cdf0e10cSrcweir
368cdf0e10cSrcweir&apos; CURRENCIES_SLOVENIAN
369cdf0e10cSrcweir    LangIDValue(12,0,0) = &quot;sl&quot;
370cdf0e10cSrcweir    LangIDValue(12,0,1) = &quot;SI&quot;
371cdf0e10cSrcweir    LangIDValue(12,0,2) = &quot;-424&quot;
372cdf0e10cSrcweir
373cdf0e10cSrcweir&apos; CURRENCIES_CYPRIOT
374cdf0e10cSrcweir    LangIDValue(13,0,0) = &quot;el&quot;
375cdf0e10cSrcweir    LangIDValue(13,0,1) = &quot;CY&quot;
376cdf0e10cSrcweir    LangIDValue(13,0,2) = &quot;-408&quot;
377cdf0e10cSrcweir
378cdf0e10cSrcweir&apos; CURRENCIES_MALTESE
379cdf0e10cSrcweir    LangIDValue(14,0,0) = &quot;mt&quot;
380cdf0e10cSrcweir    LangIDValue(14,0,1) = &quot;MT&quot;
381cdf0e10cSrcweir    LangIDValue(14,0,2) = &quot;-43A&quot;
382cdf0e10cSrcweir
383cdf0e10cSrcweir&apos; CURRENCIES_SLOVAK
384cdf0e10cSrcweir    LangIDValue(15,0,0) = &quot;sk&quot;
385cdf0e10cSrcweir    LangIDValue(15,0,1) = &quot;SK&quot;
386cdf0e10cSrcweir    LangIDValue(15,0,2) = &quot;-41B&quot;
387cdf0e10cSrcweir
38810d685eaSMatthias Seidel&apos; CURRENCIES_ESTONIAN
38910d685eaSMatthias Seidel    LangIDValue(16,0,0) = &quot;et&quot;
39010d685eaSMatthias Seidel    LangIDValue(16,0,1) = &quot;ET&quot;
39110d685eaSMatthias Seidel    LangIDValue(16,0,2) = &quot;-425&quot;
39210d685eaSMatthias Seidel
39310d685eaSMatthias Seidel&apos; CURRENCIES_LATVIAN
39410d685eaSMatthias Seidel    LangIDValue(17,0,0) = &quot;lv&quot;
39510d685eaSMatthias Seidel    LangIDValue(17,0,1) = &quot;LV&quot;
39610d685eaSMatthias Seidel    LangIDValue(17,0,2) = &quot;-426&quot;
39710d685eaSMatthias Seidel
39810d685eaSMatthias Seidel    &apos;Latgalian
39910d685eaSMatthias Seidel    LangIDValue(17,1,0) = &quot;ltg&quot;
40010d685eaSMatthias Seidel    LangIDValue(17,1,1) = &quot;LV&quot;
40110d685eaSMatthias Seidel    LangIDValue(17,1,2) = &quot;-64B&quot;
40210d685eaSMatthias Seidel
40310d685eaSMatthias Seidel&apos; CURRENCIES_LITHUANIAN
40410d685eaSMatthias Seidel    LangIDValue(18,0,0) = &quot;lt&quot;
40510d685eaSMatthias Seidel    LangIDValue(18,0,1) = &quot;LT&quot;
40610d685eaSMatthias Seidel    LangIDValue(18,0,2) = &quot;-427&quot;
40710d685eaSMatthias Seidel
40810d685eaSMatthias Seidel&apos; CURRENCIES_CROATIAN
40910d685eaSMatthias Seidel    LangIDValue(19,0,0) = &quot;hr&quot;
41010d685eaSMatthias Seidel    LangIDValue(19,0,1) = &quot;HR&quot;
41110d685eaSMatthias Seidel    LangIDValue(19,0,2) = &quot;-41A&quot;
41210d685eaSMatthias Seidel
413*336de7a5Smseidel&apos; CURRENCIES_BULGARIAN
414*336de7a5Smseidel    LangIDValue(20,0,0) = &quot;bg&quot;
415*336de7a5Smseidel    LangIDValue(20,0,1) = &quot;BG&quot;
416*336de7a5Smseidel    LangIDValue(20,0,2) = &quot;-402&quot;
417*336de7a5Smseidel
418cdf0e10cSrcweirEnd Sub
419cdf0e10cSrcweir
420cdf0e10cSrcweir
421cdf0e10cSrcweir
422cdf0e10cSrcweirSub InitializeCurrencies()
423cdf0e10cSrcweirDim i as Integer
424cdf0e10cSrcweir    GoOn = True
425cdf0e10cSrcweir
426cdf0e10cSrcweir    CurrValue(0,0) = sCurrPORTUGUESE
427cdf0e10cSrcweir    &apos; real conversion rate
428cdf0e10cSrcweir    CurrValue(0,1) = 200.482
429cdf0e10cSrcweir    &apos; rounded conversion rate
430cdf0e10cSrcweir    CurrValue(0,2) = 200
431cdf0e10cSrcweir    CurrValue(0,3) = &quot;Esc.&quot;
432cdf0e10cSrcweir    CurrValue(0,4) = &quot;Esc.&quot;
433cdf0e10cSrcweir    CurrValue(0,5) = &quot;PTE&quot;
434cdf0e10cSrcweir
435cdf0e10cSrcweir    CurrValue(1,0) = sCurrDUTCH
436cdf0e10cSrcweir    &apos; real conversion rate
437cdf0e10cSrcweir    CurrValue(1,1) = 2.20371
438cdf0e10cSrcweir    &apos; rounded conversion rate
439cdf0e10cSrcweir    CurrValue(1,2) = 2
440cdf0e10cSrcweir    CurrValue(1,3) = &quot;F&quot;
441cdf0e10cSrcweir    CurrValue(1,4) = &quot;fl&quot;
442cdf0e10cSrcweir    CurrValue(1,5) = &quot;NLG&quot;
443cdf0e10cSrcweir
444cdf0e10cSrcweir    CurrValue(2,0) = sCurrFRENCH
445cdf0e10cSrcweir    &apos; real conversion rate
446cdf0e10cSrcweir    CurrValue(2,1) = 6.55957
447cdf0e10cSrcweir    &apos; rounded conversion rate
448cdf0e10cSrcweir    CurrValue(2,2) = 7
449cdf0e10cSrcweir    CurrValue(2,3) = &quot;F&quot;
450cdf0e10cSrcweir    CurrValue(2,4) = &quot;F&quot;
451cdf0e10cSrcweir    CurrValue(2,5) = &quot;FRF&quot;
452cdf0e10cSrcweir
453cdf0e10cSrcweir    CurrValue(3,0) = sCurrSPANISH
454cdf0e10cSrcweir    &apos; real conversion rate
455cdf0e10cSrcweir    CurrValue(3,1) = 166.386
456cdf0e10cSrcweir    &apos; rounded conversion rate
457cdf0e10cSrcweir    CurrValue(3,2) = 170
458cdf0e10cSrcweir    CurrValue(3,3) = &quot;Pts&quot;
459cdf0e10cSrcweir    CurrValue(3,4) = &quot;Pts&quot;
460cdf0e10cSrcweir    CurrValue(3,5) = &quot;ESP&quot;
461cdf0e10cSrcweir
462cdf0e10cSrcweir    CurrValue(4,0) = sCurrITALIAN
463cdf0e10cSrcweir    &apos; real conversion rate
464cdf0e10cSrcweir    CurrValue(4,1) = 1936.27
465cdf0e10cSrcweir    &apos; rounded conversion rate
466cdf0e10cSrcweir    CurrValue(4,2) = 2000
467cdf0e10cSrcweir    CurrValue(4,3) = &quot;L.&quot;
468cdf0e10cSrcweir    CurrValue(4,4) = &quot;L.&quot;
469cdf0e10cSrcweir    CurrValue(4,5) = &quot;ITL&quot;
470cdf0e10cSrcweir
471cdf0e10cSrcweir    CurrValue(5,0) = sCurrGERMAN
472cdf0e10cSrcweir    &apos; real conversion rate
473cdf0e10cSrcweir    CurrValue(5,1) = 1.95583
474cdf0e10cSrcweir    &apos; rounded conversion rate
475cdf0e10cSrcweir    CurrValue(5,2) = 2
476cdf0e10cSrcweir    CurrValue(5,3) = &quot;DM&quot;
477cdf0e10cSrcweir    CurrValue(5,4) = &quot;DM&quot;
478cdf0e10cSrcweir    CurrValue(5,5) = &quot;DEM&quot;
479cdf0e10cSrcweir
480cdf0e10cSrcweir    CurrValue(6,0) = sCurrBELGIAN
481cdf0e10cSrcweir    &apos; real conversion rate
482cdf0e10cSrcweir    CurrValue(6,1) = 40.3399
483cdf0e10cSrcweir    &apos; rounded conversion rate
484cdf0e10cSrcweir    CurrValue(6,2) = 40
485cdf0e10cSrcweir    CurrValue(6,3) = &quot;FB&quot;
486cdf0e10cSrcweir    CurrValue(6,4) = &quot;BF&quot;
487cdf0e10cSrcweir    CurrValue(6,5) = &quot;BEF&quot;
488cdf0e10cSrcweir
489cdf0e10cSrcweir    CurrValue(7,0) = sCurrIRISH
490cdf0e10cSrcweir    &apos; real conversion rate
491cdf0e10cSrcweir    CurrValue(7,1) = 0.787564
492cdf0e10cSrcweir    &apos; rounded conversion rate
493cdf0e10cSrcweir    CurrValue(7,2) = 0.8
494cdf0e10cSrcweir    CurrValue(7,3) = &quot;IR£&quot;
495cdf0e10cSrcweir    CurrValue(7,4) = &quot;£&quot;
496cdf0e10cSrcweir    CurrValue(7,5) = &quot;IEP&quot;
497cdf0e10cSrcweir
498cdf0e10cSrcweir    CurrValue(8,0) = sCurrLUXEMBOURG
499cdf0e10cSrcweir    &apos; real conversion rate
500cdf0e10cSrcweir    CurrValue(8,1) = 40.3399
501cdf0e10cSrcweir    &apos; rounded conversion rate
502cdf0e10cSrcweir    CurrValue(8,2) = 40
503cdf0e10cSrcweir    CurrValue(8,3) = &quot;F&quot;
504cdf0e10cSrcweir    CurrValue(8,4) = &quot;F&quot;
505cdf0e10cSrcweir    CurrValue(8,5) = &quot;LUF&quot;
506cdf0e10cSrcweir
507cdf0e10cSrcweir    CurrValue(9,0) = sCurrAUSTRIAN
508cdf0e10cSrcweir    &apos; real conversion rate
509cdf0e10cSrcweir    CurrValue(9,1) = 13.7603
510cdf0e10cSrcweir    &apos; rounded conversion rate
511cdf0e10cSrcweir    CurrValue(9,2) = 15
512cdf0e10cSrcweir    CurrValue(9,3) = &quot;öS&quot;
513cdf0e10cSrcweir    CurrValue(9,4) = &quot;S&quot;
514cdf0e10cSrcweir    CurrValue(9,5) = &quot;ATS&quot;
515cdf0e10cSrcweir
516cdf0e10cSrcweir    CurrValue(10,0) = sCurrFINNISH
517cdf0e10cSrcweir    &apos; real conversion rate
518cdf0e10cSrcweir    CurrValue(10,1) = 5.94573
519cdf0e10cSrcweir    &apos; rounded conversion rate
520cdf0e10cSrcweir    CurrValue(10,2) = 6
521cdf0e10cSrcweir    CurrValue(10,3) = &quot;mk&quot;
522cdf0e10cSrcweir    CurrValue(10,4) = &quot;mk&quot;
523cdf0e10cSrcweir    CurrValue(10,5) = &quot;FIM&quot;
524cdf0e10cSrcweir
525cdf0e10cSrcweir    CurrValue(11,0) = sCurrGREEK
526cdf0e10cSrcweir    &apos; real conversion rate
527cdf0e10cSrcweir    CurrValue(11,1) = 340.750
528cdf0e10cSrcweir    &apos; rounded conversion rate
529cdf0e10cSrcweir    CurrValue(11,2) = 400
530cdf0e10cSrcweir    CurrValue(11,3) = chr(916) &amp; chr(961) &amp; chr(967)
531cdf0e10cSrcweir    CurrValue(11,4) = chr(916) &amp; chr(961) &amp; chr(967)
532cdf0e10cSrcweir    CurrValue(11,5) = &quot;GRD&quot;
533cdf0e10cSrcweir
534cdf0e10cSrcweir    CurrValue(12,0) = sCurrSLOVENIAN
535cdf0e10cSrcweir    &apos; real conversion rate
536cdf0e10cSrcweir    CurrValue(12,1) = 239.64
537cdf0e10cSrcweir    &apos; rounded conversion rate
538cdf0e10cSrcweir    CurrValue(12,2) = 240
539cdf0e10cSrcweir    CurrValue(12,3) = &quot;SIT&quot;
540cdf0e10cSrcweir    CurrValue(12,4) = &quot;SIT&quot;
541cdf0e10cSrcweir    CurrValue(12,5) = &quot;SIT&quot;
542cdf0e10cSrcweir
543cdf0e10cSrcweir    CurrValue(13,0) = sCurrCYPRIOT
544cdf0e10cSrcweir    &apos; real conversion rate
545cdf0e10cSrcweir    CurrValue(13,1) = 0.585274
546cdf0e10cSrcweir    &apos; rounded conversion rate
547cdf0e10cSrcweir    CurrValue(13,2) = 0.6
548cdf0e10cSrcweir    CurrValue(13,3) = &quot;£C&quot;
549cdf0e10cSrcweir    CurrValue(13,4) = &quot;£&quot;
550cdf0e10cSrcweir    CurrValue(13,5) = &quot;CYP&quot;
551cdf0e10cSrcweir
552cdf0e10cSrcweir    CurrValue(14,0) = sCurrMALTESE
553cdf0e10cSrcweir    &apos; real conversion rate
554cdf0e10cSrcweir    CurrValue(14,1) = 0.429300
555cdf0e10cSrcweir    &apos; rounded conversion rate
556cdf0e10cSrcweir    CurrValue(14,2) = 0.4
557cdf0e10cSrcweir    CurrValue(14,3) = chr(8356)
558cdf0e10cSrcweir    CurrValue(14,4) = &quot;Lm&quot;
559cdf0e10cSrcweir    CurrValue(14,5) = &quot;MTL&quot;
560cdf0e10cSrcweir
561cdf0e10cSrcweir    CurrValue(15,0) = sCurrSLOVAK
562cdf0e10cSrcweir    &apos; real conversion rate
563cdf0e10cSrcweir    CurrValue(15,1) = 30.1260
564cdf0e10cSrcweir    &apos; rounded conversion rate
565cdf0e10cSrcweir    CurrValue(15,2) = 30
566cdf0e10cSrcweir    CurrValue(15,3) = &quot;Sk&quot;
567cdf0e10cSrcweir    CurrValue(15,4) = &quot;Sk&quot;
568cdf0e10cSrcweir    CurrValue(15,5) = &quot;SKK&quot;
569cdf0e10cSrcweir
57010d685eaSMatthias Seidel    CurrValue(16,0) = sCurrESTONIAN
57110d685eaSMatthias Seidel    &apos; real conversion rate
57210d685eaSMatthias Seidel    CurrValue(16,1) = 15.6466
57310d685eaSMatthias Seidel    &apos; rounded conversion rate
57410d685eaSMatthias Seidel    CurrValue(16,2) = 15
57510d685eaSMatthias Seidel    CurrValue(16,3) = &quot;kr&quot;
57610d685eaSMatthias Seidel    CurrValue(16,4) = &quot;kr&quot;
57710d685eaSMatthias Seidel    CurrValue(16,5) = &quot;EEK&quot;
57810d685eaSMatthias Seidel
57910d685eaSMatthias Seidel    CurrValue(17,0) = sCurrLATVIAN
58010d685eaSMatthias Seidel    &apos; real conversion rate
58110d685eaSMatthias Seidel    CurrValue(17,1) = 0.702804
58210d685eaSMatthias Seidel    &apos; rounded conversion rate
58310d685eaSMatthias Seidel    CurrValue(17,2) = 0.7
58410d685eaSMatthias Seidel    CurrValue(17,3) = &quot;Ls&quot;
58510d685eaSMatthias Seidel    CurrValue(17,4) = &quot;Ls&quot;
58610d685eaSMatthias Seidel    CurrValue(17,5) = &quot;LVL&quot;
58710d685eaSMatthias Seidel
58810d685eaSMatthias Seidel    CurrValue(18,0) = sCurrLITHUANIAN
58910d685eaSMatthias Seidel    &apos; real conversion rate
59010d685eaSMatthias Seidel    CurrValue(18,1) = 3.45280
59110d685eaSMatthias Seidel    &apos; rounded conversion rate
59210d685eaSMatthias Seidel    CurrValue(18,2) = 3.5
59310d685eaSMatthias Seidel    CurrValue(18,3) = &quot;Lt&quot;
59410d685eaSMatthias Seidel    CurrValue(18,4) = &quot;Lt&quot;
59510d685eaSMatthias Seidel    CurrValue(18,5) = &quot;LTL&quot;
59610d685eaSMatthias Seidel
59710d685eaSMatthias Seidel    CurrValue(19,0) = sCurrCROATIAN
59810d685eaSMatthias Seidel    &apos; real conversion rate
59910d685eaSMatthias Seidel    CurrValue(19,1) = 7.53450
60010d685eaSMatthias Seidel    &apos; rounded conversion rate
60110d685eaSMatthias Seidel    CurrValue(19,2) = 7.5
60210d685eaSMatthias Seidel    CurrValue(19,3) = &quot;kn&quot;
60310d685eaSMatthias Seidel    CurrValue(19,4) = &quot;kn&quot;
60410d685eaSMatthias Seidel    CurrValue(19,5) = &quot;HRK&quot;
60510d685eaSMatthias Seidel
606*336de7a5Smseidel    CurrValue(20,0) = sCurrBULGARIAN
607*336de7a5Smseidel    &apos; real conversion rate
608*336de7a5Smseidel    CurrValue(20,1) = 1.95583
609*336de7a5Smseidel    &apos; rounded conversion rate
610*336de7a5Smseidel    CurrValue(20,2) = 2
611*336de7a5Smseidel    CurrValue(20,3) = &quot;лв.&quot;
612*336de7a5Smseidel    CurrValue(20,4) = &quot;лв.&quot;
613*336de7a5Smseidel    CurrValue(20,5) = &quot;BGN&quot;
614*336de7a5Smseidel
615cdf0e10cSrcweir    i = -1
616cdf0e10cSrcweir    CurrSymbolList(0) = &quot;&quot;
617cdf0e10cSrcweir    CurrSymbolList(1) = &quot;&quot;
618cdf0e10cSrcweir    InitializeCurrencyValues(CurrIndex)
619cdf0e10cSrcweirEnd Sub
620cdf0e10cSrcweir
621cdf0e10cSrcweir
622cdf0e10cSrcweirSub InitializeControls()
623cdf0e10cSrcweir    If CurrIndex = -1 Then
624cdf0e10cSrcweir        If DialogModel.Step = 1 Then
625cdf0e10cSrcweir            EnableStep1DialogControls(True, False, False)
626cdf0e10cSrcweir        ElseIf DialogModel.Step = 2 Then
627cdf0e10cSrcweir            EnableStep2DialogControls(True)
628cdf0e10cSrcweir        End If
629cdf0e10cSrcweir    End If
630cdf0e10cSrcweirEnd Sub
631cdf0e10cSrcweir
632cdf0e10cSrcweir
633cdf0e10cSrcweirSub InitializeConverter(oLocale, iDialogPage as Integer)
634cdf0e10cSrcweirDim Isthere as Boolean
635cdf0e10cSrcweir    bCancelProtection = False
636cdf0e10cSrcweir    bRangeListDefined = False
637cdf0e10cSrcweir    PWIndex = -1
638cdf0e10cSrcweir    If iDialogPage = 1 Then
639cdf0e10cSrcweir        ToggleWindow(False)
640cdf0e10cSrcweir        sDocType = Tools.GetDocumentType(ThisComponent)
641cdf0e10cSrcweir        If sDocType = &quot;sCalc&quot; Then
642cdf0e10cSrcweir            bDocHasProtectedSheets = CheckSheetProtection(oSheets)
643cdf0e10cSrcweir        End If
644cdf0e10cSrcweir        oStatusline = ThisComponent.GetCurrentController.GetFrame.CreateStatusIndicator()
645cdf0e10cSrcweir    End If
646cdf0e10cSrcweir    DialogConvert = LoadDialog(&quot;Euro&quot;, &quot;DlgConvert&quot;)
647cdf0e10cSrcweir    DialogModel = DialogConvert.Model
648cdf0e10cSrcweir    DialogPassword = LoadDialog(&quot;Euro&quot;, &quot;DlgPassword&quot;)
649cdf0e10cSrcweir    PasswordModel = DialogPassword.Model
650cdf0e10cSrcweir    DialogModel.Step = iDialogPage
651cdf0e10cSrcweir    InitializeResources()
652cdf0e10cSrcweir    InitializeLanguages()
653cdf0e10cSrcweir    InitializeLocales(oLocale)
654cdf0e10cSrcweir    InitializeCurrencies()
655cdf0e10cSrcweir    InitializeControls()
656cdf0e10cSrcweir    BitmapDir = GetOfficeSubPath(&quot;Template&quot;, &quot;../wizard/bitmap&quot;)
657cdf0e10cSrcweir    If BitmapDir = &quot;&quot; Then
658cdf0e10cSrcweir        Stop
659cdf0e10cSrcweir    End If
660cdf0e10cSrcweir    FillUpCurrencyListbox()
66179ff0626SMatthias Seidel    DialogModel.imgPreview.ImageUrl = BitmapDir &amp; &quot;euro_&quot; &amp; DialogModel.Step &amp; &quot;.png&quot;
662cdf0e10cSrcweir    DialogConvert.Title = sMsgDLGTITLE
663cdf0e10cSrcweir    DialogModel.cmdGoOn.DefaultButton = True
664cdf0e10cSrcweir    If iDialogPage = 1 Then
665cdf0e10cSrcweir        ToggleWindow(True)
666cdf0e10cSrcweir    End If
667cdf0e10cSrcweirEnd Sub
668cdf0e10cSrcweir
669cdf0e10cSrcweir
670cdf0e10cSrcweirSub InitializeCurrencyValues(CurrIndex)
671cdf0e10cSrcweir    If CurrIndex &lt;&gt; -1 Then
672cdf0e10cSrcweir        CurrLanguage = CurrValue(CurrIndex,0)
673cdf0e10cSrcweir        CurrFactor = CurrValue(CurrIndex,1)
674cdf0e10cSrcweir        CurrSymbolList(0) = CurrValue(CurrIndex,3)
675cdf0e10cSrcweir        CurrSymbolList(1) = CurrValue(CurrIndex,4)
676cdf0e10cSrcweir        CurrSymbolList(2) = CurrValue(CurrIndex,5)
677cdf0e10cSrcweir    End If
678cdf0e10cSrcweirEnd Sub
679cdf0e10cSrcweir
680cdf0e10cSrcweir
681cdf0e10cSrcweirFunction InitializeLocales(oLocale) as Boolean
682cdf0e10cSrcweirDim i as Integer, n as Integer, m as Integer
683cdf0e10cSrcweirDim sLanguage as String, sCountry as String
684cdf0e10cSrcweirDim bTakeThisLocale as Boolean
685cdf0e10cSrcweir    sLanguage = oLocale.Language
686cdf0e10cSrcweir    sCountry = oLocale.Country
687cdf0e10cSrcweir    For n = 0 To SBCOUNTRYCOUNT - 1
688cdf0e10cSrcweir        For m = 0 TO 1
689cdf0e10cSrcweir            If DialogModel.Step = 2 Then
690cdf0e10cSrcweir                bTakeThisLocale = LangIDValue(n,m,0) = sLanguage
691cdf0e10cSrcweir            Else
692cdf0e10cSrcweir                bTakeThisLocale = LangIDValue(n,m,0) = sLanguage
693cdf0e10cSrcweir            End If
694cdf0e10cSrcweir            If bTakeThisLocale Then
695cdf0e10cSrcweir                CurrIndex = n
696cdf0e10cSrcweir                For i = 0 To 2
697cdf0e10cSrcweir                    CurExtension(i) = LangIDValue(CurrIndex,i,2)
698cdf0e10cSrcweir                Next i
699cdf0e10cSrcweir                InitializeLocales = True
700cdf0e10cSrcweir                Exit Function
701cdf0e10cSrcweir            End If
702cdf0e10cSrcweir        Next m
703cdf0e10cSrcweir    Next n
704cdf0e10cSrcweir    CurrIndex = -1
705cdf0e10cSrcweir    InitializeLocales = False
706cdf0e10cSrcweirEnd Function
707cdf0e10cSrcweir</script:module>
708