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
") then
66 sHelpButton = GetResText(
"HelpButton
")
67 sCancelButton = GetResText(
"CancelButton
")
68 sBackButton = GetResText(
"BackButton
")
69 sNextButton = GetResText(
"NextButton
")
70 sBeginButton = GetResText(
"BeginButton
")
71 sCloseButton = GetResText(
"CloseButton
")
73 sWelcometextLabel1 = ReplaceString(GetResText(
"WelcometextLabel1
"), GetProductName(),
"%PRODUCTNAME
")
74 sWelcometextLabel3 = GetResText(
"WelcometextLabel3
")
76 ' Microsoft Documents
77 sMSTemplateCheckBox(
0) = GetResText(
"MSTemplateCheckbox_1_
")
78 sMSTemplateCheckBox(
1) = GetResText(
"MSTemplateCheckbox_2_
")
79 sMSTemplateCheckBox(
2) = GetResText(
"MSTemplateCheckbox_3_
")
81 ' DocumentCheckbox- Captions
82 sMSDocumentCheckBox(
0) = GetResText(
"MSDocumentCheckbox_1_
")
83 sMSDocumentCheckBox(
1) = GetResText(
"MSDocumentCheckbox_2_
")
84 sMSDocumentCheckBox(
2) = GetResText(
"MSDocumentCheckbox_3_
")
86 'StarOffice Applicationnames
88 sContainerName(
0) = GetResText(
"MSContainerName
")
90 sSummaryHeader = GetResText(
"SummaryHeader
")
92 sTemplateGroupName = GetResText(
"GroupnameDefault
")
94 sProgressMoreDocs = GetResText(
"ProgressMoreDocs
")
95 sProgressMoreTemplates = GetResText(
"ProgressMoreTemplates
")
96 sNoDirCreation = GetResText(
"NoDirCreation
")
97 sMsgDirNotThere = GetResText(
"MsgDirNotThere
")
98 sQueryForNewCreation = GetResText(
"QueryfornewCreation
")
99 sFileExists = GetResText(
"FileExists
")
100 sMorePathsError3 = GetResText(
"MorePathsError3
")
101 sConvertError1 = GetResText(
"ConvertError1
")
102 sConvertError2 = GetResText(
"ConvertError2
")
103 sRTErrorDesc = GetResText(
"RTErrorDesc
")
104 sRTErrorHeader = GetResText(
"RTErrorHeader
")
105 sOverwriteallFiles = GetResText(
"OverwriteallFiles
")
106 sReeditMacro = GetResText(
"ReeditMacro
")
107 sCouldnotsaveDocument = GetResText(
"CouldNotsaveDocument
")
108 sCouldnotopenDocument = GetResText(
"CouldNotopenDocument
")
109 sPathDialogMessage = GetResText(
"PathDialogMessage
")
110 sTitle = GetResText(
"DialogTitle
")
112 sProgressPage_1 = GetResText(
"ProgressPage1
")
113 sProgressPage_2 = GetResText(
"ProgressPage2
")
114 sProgressPage_3 = GetResText(
"ProgressPage3
")
115 sProgressFound = GetResText(
"ProgressFound
")
116 sProgressPage_5 = GetResText(
"ProgressPage5
")
117 sReady = GetResText(
"Ready
")
118 sSourceDocuments = GetResText(
"SourceDocuments
")
119 sTargetDocuments = GetResText(
"TargetDocuments
")
120 sLogSummary = GetResText(
"LogfileSummary
")
121 sSumInclusiveSubDir = GetResText(
"SumInclusiveSubDir
")
122 sSumSaveDocuments = GetResText(
"SumSaveDokumente
")
123 sSumMSDocuments(
0) = GetResText(
"SumMSTextDocuments
")
124 sSumMSDocuments(
1) = GetResText(
"SumMSTableDocuments
")
125 sSumMSDocuments(
2) = GetResText(
"SumMSDrawDocuments
")
126 sSumMSTemplates(
0) = GetResText(
"SumMSTextTemplates
")
127 sSumMSTemplates(
1) = GetResText(
"SumMSTableTemplates
")
128 sSumMSTemplates(
2) = GetResText(
"SumMSDrawTemplates
")
130 sImportLabel = GetResText(
"TextImportLabel
")
131 sExportLabel = GetResText(
"TextExportLabel
")
132 sSearchInSubDir = GetResText(
"SearchInSubDir
")
133 .chkTemplateSearchSubDir.Label = sSearchInSubDir
134 .lblDocumentImport.Label = sImportLabel
135 .lblDocumentExport.Label = sExportLabel
136 .chkDocumentSearchSubDir.Label = sSearchInSubDir
137 .lblTemplateImport.Label = sImportLabel
138 .lblTemplateExport.Label = sExportLabel
139 .chkLogfile.Label = GetResText(
"CreateLogfile
")
140 .chkLogfile.Helptext = GetResText(
"LogfileHelpText
")
141 .cmdShowLogFile.Label = GetResText(
"ShowLogfile
")
143 ModuleList(
0) =
"com.sun.star.text.TextDocument
"
144 ModuleList(
1) =
"com.sun.star.sheet.SpreadsheetDocument
"
145 ModuleList(
2) =
"com.sun.star.drawing.DrawingDocument/com.sun.star.presentation.PresentationDocument
"
146 ModuleList(
3) =
"com.sun.star.formula.FormulaProperties/com.sun.star.text.GlobalDocument
"