1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE script:module PUBLIC
"-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
4 * This file is part of the LibreOffice project.
6 * This Source Code Form is subject to the terms of the Mozilla Public
7 * License, v. 2.0. If a copy of the MPL was not distributed with this
8 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 * This file incorporates work covered by the following license notice:
12 * Licensed to the Apache Software Foundation (ASF) under one or more
13 * contributor license agreements. See the NOTICE file distributed
14 * with this work for additional information regarding copyright
15 * ownership. The ASF licenses this file to you under the Apache
16 * License, Version 2.0 (the "License"); you may not use this file
17 * except in compliance with the License. You may obtain a copy of
18 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 <script:module xmlns:
script=
"http://openoffice.org/2000/script" script:
name=
"Language" script:
language=
"StarBasic">Option Explicit
22 Public sMSTemplateCheckbox(
2) As String
23 Public sMSDocumentCheckbox(
2) As String
24 Public sTemplateCheckbox(SBMAXAPPLCOUNT-
1) As String
25 Public sDocumentCheckbox(SBMAXAPPLCOUNT-
1) As String
26 Public sTemplateGroupName As String
27 Public sSearchInSubDir as String
28 Public sPathErrorTemplates(SBMAXAPPLCOUNT-
1) As String
29 Public sPathErrorDocument(SBMAXAPPLCOUNT-
1) As String
30 Public sPathErrorStarDoc(SBMAXAPPLCOUNT-
1) As String
31 Public sStarDocLabel(SBMAXAPPLCOUNT-
1) As String
32 Public sImportLabel As String, sExportLabel As String
33 Public SOApplicationName(
5) As String
34 Public sHelpButton As String, sCancelButton As String, sBackButton As String, sNextButton As String
35 Public sSumInclusiveSubDir As String, sSumSaveDocuments As String
36 Public sSummaryHeader As String
37 Public sWelcometextLabel1 As String, sWelcometextLabel3 As String
38 Public sBeginButton As String, sMsgDirNotThere As String
39 Public sQueryForNewCreation As String, sPathError3 As String
40 Public sNoDirCreation As String
41 Public sProgressMoreDocs As String, sProgressMoreTemplates as String
42 Public sFileExists As String, sMorePathsError3 As String
43 Public sConvertError1 As String, sConvertError2 As String, sPathDialogMessage As String
44 Public sRTErrorDesc As String, sRTErrorHeader As String
45 Public sProgressPage_1 As String, sProgressPage_2 As String, sProgressPage_3 as String
46 Public sProgressFound as String, sProgresspage_5 as String
47 Public sContainerName(
1) as String
48 Public sReady as String, sTitle as String
49 Public sCloseButton as String
50 Public sSourceDocuments as String
51 Public sTargetDocuments as String
52 Public sSumMSDocuments(
3) as String
53 Public sSumMSTemplates(
3) as String
54 Public ModuleList(
3) as String
55 Public sLogSummary as String
56 Public sReeditMacro as String
57 Public sOverwriteallFiles as String
58 Public scouldnotopenDocument as String
59 Public sCurcouldnotopenDocument as String
60 Public scouldnotsaveDocument as String
61 Public sCurcouldnotsaveDocument as String
65 If InitResources(
"ImportWizard
",
"imp
") then
66 sHelpButton = GetResText(
1000)
67 sCancelButton = GetResText(
1001)
68 sBackButton = GetResText(
1002)
69 sNextButton = GetResText(
1003)
70 sBeginButton = GetResText(
1004)
71 sCloseButton = GetResText(
1005)
73 sWelcometextLabel1 = ReplaceString(GetResText(
1006), GetProductName(),
"%PRODUCTNAME
")
74 sWelcometextLabel3 = GetResText(
1008)
76 ' Microsoft Documents
77 GetApplResourceArray(
1009,
3, sMSTemplateCheckBox())
79 ' DocumentCheckbox- Captions
80 GetApplResourceArray(
1012,
3, sMSDocumentCheckBox())
82 'StarOffice Applicationnames
84 sContainerName(
0) = GetResText(
1030)
86 sSummaryHeader = GetResText(
1031)
88 sTemplateGroupName = GetResText(
1036)
90 sProgressMoreDocs = GetResText(
1041)
91 sProgressMoreTemplates = GetResText(
1042)
92 sNoDirCreation = GetResText(
1050)
93 sMsgDirNotThere = GetResText(
1051)
94 sQueryForNewCreation = GetResText(
1052)
95 sFileExists = GetResText(
1053)
96 sMorePathsError3 = GetResText(
1054)
97 sConvertError1 = GetResText(
1055)
98 sConvertError2 = GetResText(
1056)
99 sRTErrorDesc = GetResText(
1057)
100 sRTErrorHeader = GetResText(
1058)
101 sOverwriteallFiles = GetResText(
1070)
102 sReeditMacro = GetResText(
1071)
103 scouldnotsaveDocument = GetResText(
1072)
104 scouldnotopenDocument = GetResText(
1073)
105 sPathDialogMessage = GetResText(
1080)
106 sTitle = GetResText(
1081)
108 sProgressPage_1 = GetResText(
1090)
109 sProgressPage_2 = GetResText(
1091)
110 sProgressPage_3 = GetResText(
1092)
111 sProgressFound = GetResText(
1093)
112 sProgressPage_5 = GetResText(
1094)
113 sReady = GetResText(
1100)
114 sSourceDocuments = GetResText(
2030)
115 sTargetDocuments = GetResText(
2031)
116 sLogSummary = GetResText(
2034)
117 sSumInclusiveSubDir = GetResText(
3000)
118 sSumSaveDocuments = GetResText(
3001)
119 GetApplResourceArray(
3200,
3, sSumMSDocuments())
120 GetApplResourceArray(
3210,
3, sSumMSTemplates())
122 sImportLabel = GetResText(
1033)
123 sExportLabel = GetResText(
1034)
124 sSearchInSubDir = GetResText(
1022)
125 .chkTemplateSearchSubDir.Label = sSearchInSubDir
126 .lblDocumentImport.Label = sImportLabel
127 .lblDocumentExport.Label = sExportLabel
128 .chkDocumentSearchSubDir.Label = sSearchInSubDir
129 .lblTemplateImport.Label = sImportLabel
130 .lblTemplateExport.Label = sExportLabel
131 .chkLogfile.Label = GetResText(
2032)
132 .chkLogfile.Helptext = GetResText(
2033)
134 blabla = GetResText(
1072)
135 .cmdShowLogFile.Label = GetResText(
2035)
137 ModuleList(
0) =
"com.sun.star.text.TextDocument
"
138 ModuleList(
1) =
"com.sun.star.sheet.SpreadsheetDocument
"
139 ModuleList(
2) =
"com.sun.star.drawing.DrawingDocument/com.sun.star.presentation.PresentationDocument
"
140 ModuleList(
3) =
"com.sun.star.formula.FormulaProperties/com.sun.star.text.GlobalDocument
"
145 Sub GetApplResourceArray(StartResIndex as Integer, Count as Integer, BigArray())
149 For i = StartResIndex To StartResIndex + Count-
1
150 BigArray(a) = GetResText(i)