summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/web/WebWizardDialogResources.java
blob: 6b8b416a838747f281dc991c909445aeb2ef2b3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */
package com.sun.star.wizards.web;

import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.wizards.common.Configuration;
import com.sun.star.wizards.common.Properties;
import com.sun.star.wizards.common.Resource;
import com.sun.star.wizards.document.OfficeDocument;

public class WebWizardDialogResources
{

    String resSessionName;
    String resSizeTemplate;
    String resSpecifyNewFileLocation;
    String resCreatedTemplate;
    String resUpdatedTemplate;
    String resSlides;
    String resDelSessionConfirm;
    String resErrIsDirectory;
    String resErrDocValidate;
    String resStep1;
    String resStep2;
    String resStep3;
    String resStep4;
    String resStep5;
    String resStep6;
    String resStep7;
    String resDefaultArchiveFilename;
    String resValidatingDocuments;
    String resErrUnexpected;
    String resLoadingSession;
    String resErrExportIO;
    String resErrPublishMedia;
    String resErrPublish;
    String resErrUnknown;
    //String resErrDocClose;
    String resErrSecurity;
    String resErrMkDir;
    //String resErrDocOpen;
    String resErrDocExport;
    String resErrDocInfo;
    String resErrTOCMedia;
    String resErrTOC;
    final static String UNIT_NAME = "dbwizres";
    final static String MODULE_NAME = "dbw";
    final static int RID_WEBWIZARDDIALOG_START = 4000;
    final static int RID_COMMON_START = 500;
    final static int RID_DB_COMMON_START = 1000;
    String resWebWizardDialog_title;
    String reslblIntroduction_value;
    String resbtnDelSession_value;
    String reslbIntroTitle_value;
    String reslblContentTitle_value;
    String reslnDocsInfo_value;
    String reslblDocTitle_value;
    String reslblDocInfo_value;
    String reslblDocAuthor_value;
    String reslblDocExportFormat_value;
    String reslblTitleGeneralPage_value;
    String reslblSiteTitle_value;
    String reslblSiteDesc_value;
    String reslblSiteCreated_value;
    String reslblEmail_value;
    String reslblCopyright_value;
    String reslblSiteUpdated_value;
    String resbtnPreview_value;
    String reslblTitlePublish_value;
    String reslblCreateSite_value;
    String reschkLocalDir_value;
    String resbtnLocalDir_value;
    String reschkFTP_value;
    String resbtnFTP_value;
    String reschkZip_value;
    String resbtnZip_value;
    String reschkSaveSettings_value;
    String reslblSaveSettings_value;
    String reslblLoadSettings_value;
    String reslblSiteContent_value;
    String resbtnAddDoc_value;
    String resbtnRemoveDoc_value;
    String reslblLayoutTitle_value;
    String reslblStyleTitle_value;
    String reslblStyle_value;
    String reslblLayouts_value;
    String reschbDocDesc_value;
    String reschbDocAuthor_value;
    String reschkDocCreated_value;
    String reschkDocChanged_value;
    String reschkDocFilename_value;
    String reschkDocFormat_value;
    String reschkDocFormatIcon_value;
    String reschkDocPages_value;
    String reschkDocSize_value;
    String resFixedLine1_value;
    String reslblLayout2Title_value;
    String reslblDisplay_value;
    String reslblOptimizeFor_value;
    String resoptOptimize640x480_value;
    String resoptOptimize800x600_value;
    String resoptOptimize1024x768_value;
    final String resbtnDocUp_value = String.valueOf((char) 8743);
    final String resbtnDocDown_value = String.valueOf((char) 8744);
    String reslblBackground;
    String reslblIconset;
    String reslblIconSetInfo;
    String reslblMetaData;
    String resBtnChooseBackground;
    String resBtnChooseIconset;    //String resGenerate;
    //String resPublish;
    //String resExport;
    String resCancel;
    String resClose;
    String resCounter;
    String resStatusDialogTitle;
    String resPublishDir;
    String resFTPTargetExistsAsfile;
    String resLocalTargetExistsAsfile;
    String resZipTargetExists;
    String resFTPTargetNotEmpty;
    String resLocalTragetNotEmpty;
    String resSessionExists;
    String resTaskExport;
    String resTaskExportDocs;
    String resTaskExportPrepare;
    String resTaskGenerateCopy;
    String resTaskGeneratePrepare;
    String resTaskGenerateXsl;
    String resTaskPrepare;
    String resTaskPublishPrepare;
    String resTaskPublishLocal;
    String resTaskPublishFTP;
    String resTaskPublishZip;
    String resTaskFinish;
    String resPages;
    String resImages;
    String resAllFiles;
    String resZipFiles;
    String resGifFiles;
    String resOK;
    String resHelp;
    String resBackgroundsDialog;
    String resBackgroundsDialogCaption;
    String resIconsDialog;
    String resIconsDialogCaption;
    String resOther;
    String resDeselect;
    String resFinishedSuccess;
    String resFinishedNoSuccess;
    String resSessionNameNone;
    String reslblFTPDisabled;
    String resBackgroundNone;
    String resIconsetNone;
    String prodName;
    String resFTPTargetCouldNotCreate;
    String resFTPTargetCreate;
    String resZipTargetIsDir;
    String resLocalTargetCouldNotCreate;
    String resLocalTargetCreate;
    Resource oResource;

    public WebWizardDialogResources(XMultiServiceFactory xmsf, Resource _oResource)
    {
        oResource = _oResource;
        /**
         * Delete the String, uncomment the getResText method 
         * 
         */
        resWebWizardDialog_title = oResource.getResText(RID_WEBWIZARDDIALOG_START + 1);
        reslblIntroduction_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 2);
        resbtnDelSession_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 4);
        reslbIntroTitle_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 5);
        reslblContentTitle_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 6);
        reslnDocsInfo_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 8);
        reslblDocTitle_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 9);
        reslblDocInfo_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 10);
        reslblDocAuthor_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 11);
        reslblDocExportFormat_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 12);
        reslblTitleGeneralPage_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 13);
        reslblSiteTitle_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 14);
        reslblSiteDesc_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 16);
        reslblSiteCreated_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 18);
        reslblEmail_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 20);
        reslblCopyright_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 21);
        reslblSiteUpdated_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 22);
        resbtnPreview_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 24);
        reslblTitlePublish_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 25);
        reslblCreateSite_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 26);
        reschkLocalDir_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 27);
        resbtnLocalDir_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 28);
        reschkFTP_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 29);
        //
        resbtnFTP_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 31);
        reschkZip_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 32);
        resbtnZip_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 33);
        reschkSaveSettings_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 34);
        reslblSaveSettings_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 35);
        reslblLoadSettings_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 36);
        reslblSiteContent_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 37);
        resbtnAddDoc_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 38);
        resbtnRemoveDoc_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 39);
        reslblLayoutTitle_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 40);
        reslblStyleTitle_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 41);
        reslblStyle_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 42);
        //
        reslblLayouts_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 48);
        //
        reschbDocDesc_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 50);
        reschbDocAuthor_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 51);
        reschkDocCreated_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 52);
        reschkDocChanged_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 53);
        reschkDocFilename_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 54);
        reschkDocFormat_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 55);
        reschkDocFormatIcon_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 56);
        reschkDocPages_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 57);
        reschkDocSize_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 58);
        resFixedLine1_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 59);
        reslblLayout2Title_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 60);
        reslblDisplay_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 61);
        reslblOptimizeFor_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 62);
        resoptOptimize640x480_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 64);
        resoptOptimize800x600_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 65);
        resoptOptimize1024x768_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 66);
        //resExport                         = oResource.getResText(RID_WEBWIZARDDIALOG_START + 67);
        //resGenerate                   = oResource.getResText(RID_WEBWIZARDDIALOG_START + 68);
        //resPublish                        = oResource.getResText(RID_WEBWIZARDDIALOG_START + 69);
        resStatusDialogTitle = oResource.getResText(RID_WEBWIZARDDIALOG_START + 70);
        resCounter = oResource.getResText(RID_WEBWIZARDDIALOG_START + 71);
        resPublishDir = oResource.getResText(RID_WEBWIZARDDIALOG_START + 72);
        resFTPTargetExistsAsfile = oResource.getResText(RID_WEBWIZARDDIALOG_START + 73);
        resLocalTargetExistsAsfile = oResource.getResText(RID_WEBWIZARDDIALOG_START + 74);
        resZipTargetExists = oResource.getResText(RID_WEBWIZARDDIALOG_START + 75);
        resFTPTargetNotEmpty = oResource.getResText(RID_WEBWIZARDDIALOG_START + 76);
        resLocalTragetNotEmpty = oResource.getResText(RID_WEBWIZARDDIALOG_START + 77);
        resSessionExists = oResource.getResText(RID_WEBWIZARDDIALOG_START + 78);
        resTaskExportDocs = oResource.getResText(RID_WEBWIZARDDIALOG_START + 79);
        resTaskExportPrepare = oResource.getResText(RID_WEBWIZARDDIALOG_START + 80);
        resTaskGenerateCopy = oResource.getResText(RID_WEBWIZARDDIALOG_START + 81);
        resTaskGeneratePrepare = oResource.getResText(RID_WEBWIZARDDIALOG_START + 82);
        resTaskGenerateXsl = oResource.getResText(RID_WEBWIZARDDIALOG_START + 83);
        resTaskPrepare = oResource.getResText(RID_WEBWIZARDDIALOG_START + 84);
        resTaskPublishPrepare = oResource.getResText(RID_WEBWIZARDDIALOG_START + 86);
        resTaskPublishLocal = oResource.getResText(RID_WEBWIZARDDIALOG_START + 87);
        resTaskPublishFTP = oResource.getResText(RID_WEBWIZARDDIALOG_START + 88);
        resTaskPublishZip = oResource.getResText(RID_WEBWIZARDDIALOG_START + 89);
        resTaskFinish = oResource.getResText(RID_WEBWIZARDDIALOG_START + 90);
        //resPages                      = oResource.getResText(RID_WEBWIZARDDIALOG_START + 91);
        resImages = oResource.getResText(RID_WEBWIZARDDIALOG_START + 94);
        resAllFiles = oResource.getResText(RID_WEBWIZARDDIALOG_START + 95);
        resZipFiles = oResource.getResText(RID_WEBWIZARDDIALOG_START + 96);
        resBackgroundsDialog = oResource.getResText(RID_WEBWIZARDDIALOG_START + 98);
        resBackgroundsDialogCaption = oResource.getResText(RID_WEBWIZARDDIALOG_START + 99);
        resIconsDialog = oResource.getResText(RID_WEBWIZARDDIALOG_START + 100);
        resIconsDialogCaption = oResource.getResText(RID_WEBWIZARDDIALOG_START + 101);
        resOther = oResource.getResText(RID_WEBWIZARDDIALOG_START + 102);
        resDeselect = oResource.getResText(RID_WEBWIZARDDIALOG_START + 103);
        resFinishedSuccess = oResource.getResText(RID_WEBWIZARDDIALOG_START + 104);
        resFinishedNoSuccess = oResource.getResText(RID_WEBWIZARDDIALOG_START + 105);
        resErrTOC = oResource.getResText(RID_WEBWIZARDDIALOG_START + 106);
        resErrTOCMedia = oResource.getResText(RID_WEBWIZARDDIALOG_START + 107);
        resErrDocInfo = oResource.getResText(RID_WEBWIZARDDIALOG_START + 108);
        resErrDocExport = oResource.getResText(RID_WEBWIZARDDIALOG_START + 109);
        resErrMkDir = oResource.getResText(RID_WEBWIZARDDIALOG_START + 110);
        resErrSecurity = oResource.getResText(RID_WEBWIZARDDIALOG_START + 111);
        resErrExportIO = oResource.getResText(RID_WEBWIZARDDIALOG_START + 112);
        resErrPublishMedia = oResource.getResText(RID_WEBWIZARDDIALOG_START + 113);
        resErrPublish = oResource.getResText(RID_WEBWIZARDDIALOG_START + 114);
        resErrUnknown = oResource.getResText(RID_WEBWIZARDDIALOG_START + 115);
        resErrDocValidate = oResource.getResText(RID_WEBWIZARDDIALOG_START + 116);
        resErrIsDirectory = oResource.getResText(RID_WEBWIZARDDIALOG_START + 117);
        resLoadingSession = oResource.getResText(RID_WEBWIZARDDIALOG_START + 118);
        resErrUnexpected = oResource.getResText(RID_WEBWIZARDDIALOG_START + 119);
        resValidatingDocuments = oResource.getResText(RID_WEBWIZARDDIALOG_START + 120);
        resDefaultArchiveFilename = oResource.getResText(RID_WEBWIZARDDIALOG_START + 121);
        resStep1 = oResource.getResText(RID_WEBWIZARDDIALOG_START + 122);
        resStep2 = oResource.getResText(RID_WEBWIZARDDIALOG_START + 123);
        resStep3 = oResource.getResText(RID_WEBWIZARDDIALOG_START + 124);
        resStep4 = oResource.getResText(RID_WEBWIZARDDIALOG_START + 125);
        resStep5 = oResource.getResText(RID_WEBWIZARDDIALOG_START + 126);
        resStep6 = oResource.getResText(RID_WEBWIZARDDIALOG_START + 127);
        resStep7 = oResource.getResText(RID_WEBWIZARDDIALOG_START + 128);
        resDelSessionConfirm = oResource.getResText(RID_WEBWIZARDDIALOG_START + 130);
        resPages = oResource.getResText(RID_WEBWIZARDDIALOG_START + 131);
        resSlides = oResource.getResText(RID_WEBWIZARDDIALOG_START + 132);
        resCreatedTemplate = oResource.getResText(RID_WEBWIZARDDIALOG_START + 133);
        resUpdatedTemplate = oResource.getResText(RID_WEBWIZARDDIALOG_START + 134);
        resSessionName = oResource.getResText(RID_WEBWIZARDDIALOG_START + 135);

        reslblBackground = oResource.getResText(RID_WEBWIZARDDIALOG_START + 136);
        reslblIconset = oResource.getResText(RID_WEBWIZARDDIALOG_START + 137);
        reslblIconSetInfo = oResource.getResText(RID_WEBWIZARDDIALOG_START + 138);
        reslblMetaData = oResource.getResText(RID_WEBWIZARDDIALOG_START + 139);
        resBtnChooseBackground = oResource.getResText(RID_WEBWIZARDDIALOG_START + 140);
        resBtnChooseIconset = oResource.getResText(RID_WEBWIZARDDIALOG_START + 141);
        resSessionNameNone = oResource.getResText(RID_WEBWIZARDDIALOG_START + 142);
        reslblFTPDisabled = oResource.getResText(RID_WEBWIZARDDIALOG_START + 143);
        resBackgroundNone = oResource.getResText(RID_WEBWIZARDDIALOG_START + 144);
        resIconsetNone = oResource.getResText(RID_WEBWIZARDDIALOG_START + 145);
        resFTPTargetCouldNotCreate = oResource.getResText(RID_WEBWIZARDDIALOG_START + 146);
        resFTPTargetCreate = oResource.getResText(RID_WEBWIZARDDIALOG_START + 147);
        resZipTargetIsDir = oResource.getResText(RID_WEBWIZARDDIALOG_START + 148);
        resLocalTargetCouldNotCreate = oResource.getResText(RID_WEBWIZARDDIALOG_START + 149);
        resLocalTargetCreate = oResource.getResText(RID_WEBWIZARDDIALOG_START + 150);
        resSizeTemplate = oResource.getResText(RID_WEBWIZARDDIALOG_START + 151);
        resSpecifyNewFileLocation = oResource.getResText(RID_WEBWIZARDDIALOG_START + 152);

        resClose = oResource.getResText(RID_COMMON_START + 17);
        resCancel = oResource.getResText(RID_COMMON_START + 11);
        resOK = oResource.getResText(RID_COMMON_START + 18);
        resHelp = oResource.getResText(RID_COMMON_START + 15);

        try
        {
            prodName = Configuration.getProductName(xmsf);
            resGifFiles = (String) Properties.getPropertyValue(OfficeDocument.getTypeMediaDescriptor(xmsf, "gif_Graphics_Interchange"), "UIName");
        }
        catch (Exception ex)
        {
            ex.printStackTrace();
        }

    }
}