1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 package com.sun.star.wizards.web; 24 25 import com.sun.star.lang.XMultiServiceFactory; 26 import com.sun.star.wizards.common.Configuration; 27 import com.sun.star.wizards.common.Properties; 28 import com.sun.star.wizards.common.Resource; 29 import com.sun.star.wizards.document.OfficeDocument; 30 31 public class WebWizardDialogResources 32 { 33 34 String resSessionName; 35 String resSizeTemplate; 36 String resSpecifyNewFileLocation; 37 String resCreatedTemplate; 38 String resUpdatedTemplate; 39 String resSlides; 40 String resDelSessionConfirm; 41 String resErrIsDirectory; 42 String resErrDocValidate; 43 String resStep1; 44 String resStep2; 45 String resStep3; 46 String resStep4; 47 String resStep5; 48 String resStep6; 49 String resStep7; 50 String resDefaultArchiveFilename; 51 String resValidatingDocuments; 52 String resErrUnexpected; 53 String resLoadingSession; 54 String resErrExportIO; 55 String resErrPublishMedia; 56 String resErrPublish; 57 String resErrUnknown; 58 //String resErrDocClose; 59 String resErrSecurity; 60 String resErrMkDir; 61 //String resErrDocOpen; 62 String resErrDocExport; 63 String resErrDocInfo; 64 String resErrTOCMedia; 65 String resErrTOC; 66 final static String UNIT_NAME = "dbwizres"; 67 final static String MODULE_NAME = "dbw"; 68 final static int RID_WEBWIZARDDIALOG_START = 4000; 69 final static int RID_COMMON_START = 500; 70 final static int RID_DB_COMMON_START = 1000; 71 String resWebWizardDialog_title; 72 String reslblIntroduction_value; 73 String resbtnDelSession_value; 74 String reslbIntroTitle_value; 75 String reslblContentTitle_value; 76 String reslnDocsInfo_value; 77 String reslblDocTitle_value; 78 String reslblDocInfo_value; 79 String reslblDocAuthor_value; 80 String reslblDocExportFormat_value; 81 String reslblTitleGeneralPage_value; 82 String reslblSiteTitle_value; 83 String reslblSiteDesc_value; 84 String reslblSiteCreated_value; 85 String reslblEmail_value; 86 String reslblCopyright_value; 87 String reslblSiteUpdated_value; 88 String resbtnPreview_value; 89 String reslblTitlePublish_value; 90 String reslblCreateSite_value; 91 String reschkLocalDir_value; 92 String resbtnLocalDir_value; 93 String reschkFTP_value; 94 String resbtnFTP_value; 95 String reschkZip_value; 96 String resbtnZip_value; 97 String reschkSaveSettings_value; 98 String reslblSaveSettings_value; 99 String reslblLoadSettings_value; 100 String reslblSiteContent_value; 101 String resbtnAddDoc_value; 102 String resbtnRemoveDoc_value; 103 String reslblLayoutTitle_value; 104 String reslblStyleTitle_value; 105 String reslblStyle_value; 106 String reslblLayouts_value; 107 String reschbDocDesc_value; 108 String reschbDocAuthor_value; 109 String reschkDocCreated_value; 110 String reschkDocChanged_value; 111 String reschkDocFilename_value; 112 String reschkDocFormat_value; 113 String reschkDocFormatIcon_value; 114 String reschkDocPages_value; 115 String reschkDocSize_value; 116 String resFixedLine1_value; 117 String reslblLayout2Title_value; 118 String reslblDisplay_value; 119 String reslblOptimizeFor_value; 120 String resoptOptimize640x480_value; 121 String resoptOptimize800x600_value; 122 String resoptOptimize1024x768_value; 123 final String resbtnDocUp_value = String.valueOf((char) 8743); 124 final String resbtnDocDown_value = String.valueOf((char) 8744); 125 String reslblBackground; 126 String reslblIconset; 127 String reslblIconSetInfo; 128 String reslblMetaData; 129 String resBtnChooseBackground; 130 String resBtnChooseIconset; //String resGenerate; 131 //String resPublish; 132 //String resExport; 133 String resCancel; 134 String resClose; 135 String resCounter; 136 String resStatusDialogTitle; 137 String resPublishDir; 138 String resFTPTargetExistsAsfile; 139 String resLocalTargetExistsAsfile; 140 String resZipTargetExists; 141 String resFTPTargetNotEmpty; 142 String resLocalTragetNotEmpty; 143 String resSessionExists; 144 String resTaskExport; 145 String resTaskExportDocs; 146 String resTaskExportPrepare; 147 String resTaskGenerateCopy; 148 String resTaskGeneratePrepare; 149 String resTaskGenerateXsl; 150 String resTaskPrepare; 151 String resTaskPublishPrepare; 152 String resTaskPublishLocal; 153 String resTaskPublishFTP; 154 String resTaskPublishZip; 155 String resTaskFinish; 156 String resPages; 157 String resImages; 158 String resAllFiles; 159 String resZipFiles; 160 String resGifFiles; 161 String resOK; 162 String resHelp; 163 String resBackgroundsDialog; 164 String resBackgroundsDialogCaption; 165 String resIconsDialog; 166 String resIconsDialogCaption; 167 String resOther; 168 String resDeselect; 169 String resFinishedSuccess; 170 String resFinishedNoSuccess; 171 String resSessionNameNone; 172 String reslblFTPDisabled; 173 String resBackgroundNone; 174 String resIconsetNone; 175 String prodName; 176 String resFTPTargetCouldNotCreate; 177 String resFTPTargetCreate; 178 String resZipTargetIsDir; 179 String resLocalTargetCouldNotCreate; 180 String resLocalTargetCreate; 181 Resource oResource; 182 WebWizardDialogResources(XMultiServiceFactory xmsf, Resource _oResource)183 public WebWizardDialogResources(XMultiServiceFactory xmsf, Resource _oResource) 184 { 185 oResource = _oResource; 186 /** 187 * Delete the String, uncomment the getResText method 188 * 189 */ 190 resWebWizardDialog_title = oResource.getResText(RID_WEBWIZARDDIALOG_START + 1); 191 reslblIntroduction_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 2); 192 resbtnDelSession_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 4); 193 reslbIntroTitle_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 5); 194 reslblContentTitle_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 6); 195 reslnDocsInfo_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 8); 196 reslblDocTitle_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 9); 197 reslblDocInfo_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 10); 198 reslblDocAuthor_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 11); 199 reslblDocExportFormat_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 12); 200 reslblTitleGeneralPage_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 13); 201 reslblSiteTitle_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 14); 202 reslblSiteDesc_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 16); 203 reslblSiteCreated_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 18); 204 reslblEmail_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 20); 205 reslblCopyright_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 21); 206 reslblSiteUpdated_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 22); 207 resbtnPreview_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 24); 208 reslblTitlePublish_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 25); 209 reslblCreateSite_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 26); 210 reschkLocalDir_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 27); 211 resbtnLocalDir_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 28); 212 reschkFTP_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 29); 213 // 214 resbtnFTP_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 31); 215 reschkZip_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 32); 216 resbtnZip_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 33); 217 reschkSaveSettings_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 34); 218 reslblSaveSettings_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 35); 219 reslblLoadSettings_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 36); 220 reslblSiteContent_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 37); 221 resbtnAddDoc_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 38); 222 resbtnRemoveDoc_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 39); 223 reslblLayoutTitle_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 40); 224 reslblStyleTitle_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 41); 225 reslblStyle_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 42); 226 // 227 reslblLayouts_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 48); 228 // 229 reschbDocDesc_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 50); 230 reschbDocAuthor_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 51); 231 reschkDocCreated_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 52); 232 reschkDocChanged_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 53); 233 reschkDocFilename_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 54); 234 reschkDocFormat_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 55); 235 reschkDocFormatIcon_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 56); 236 reschkDocPages_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 57); 237 reschkDocSize_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 58); 238 resFixedLine1_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 59); 239 reslblLayout2Title_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 60); 240 reslblDisplay_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 61); 241 reslblOptimizeFor_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 62); 242 resoptOptimize640x480_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 64); 243 resoptOptimize800x600_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 65); 244 resoptOptimize1024x768_value = oResource.getResText(RID_WEBWIZARDDIALOG_START + 66); 245 //resExport = oResource.getResText(RID_WEBWIZARDDIALOG_START + 67); 246 //resGenerate = oResource.getResText(RID_WEBWIZARDDIALOG_START + 68); 247 //resPublish = oResource.getResText(RID_WEBWIZARDDIALOG_START + 69); 248 resStatusDialogTitle = oResource.getResText(RID_WEBWIZARDDIALOG_START + 70); 249 resCounter = oResource.getResText(RID_WEBWIZARDDIALOG_START + 71); 250 resPublishDir = oResource.getResText(RID_WEBWIZARDDIALOG_START + 72); 251 resFTPTargetExistsAsfile = oResource.getResText(RID_WEBWIZARDDIALOG_START + 73); 252 resLocalTargetExistsAsfile = oResource.getResText(RID_WEBWIZARDDIALOG_START + 74); 253 resZipTargetExists = oResource.getResText(RID_WEBWIZARDDIALOG_START + 75); 254 resFTPTargetNotEmpty = oResource.getResText(RID_WEBWIZARDDIALOG_START + 76); 255 resLocalTragetNotEmpty = oResource.getResText(RID_WEBWIZARDDIALOG_START + 77); 256 resSessionExists = oResource.getResText(RID_WEBWIZARDDIALOG_START + 78); 257 resTaskExportDocs = oResource.getResText(RID_WEBWIZARDDIALOG_START + 79); 258 resTaskExportPrepare = oResource.getResText(RID_WEBWIZARDDIALOG_START + 80); 259 resTaskGenerateCopy = oResource.getResText(RID_WEBWIZARDDIALOG_START + 81); 260 resTaskGeneratePrepare = oResource.getResText(RID_WEBWIZARDDIALOG_START + 82); 261 resTaskGenerateXsl = oResource.getResText(RID_WEBWIZARDDIALOG_START + 83); 262 resTaskPrepare = oResource.getResText(RID_WEBWIZARDDIALOG_START + 84); 263 resTaskPublishPrepare = oResource.getResText(RID_WEBWIZARDDIALOG_START + 86); 264 resTaskPublishLocal = oResource.getResText(RID_WEBWIZARDDIALOG_START + 87); 265 resTaskPublishFTP = oResource.getResText(RID_WEBWIZARDDIALOG_START + 88); 266 resTaskPublishZip = oResource.getResText(RID_WEBWIZARDDIALOG_START + 89); 267 resTaskFinish = oResource.getResText(RID_WEBWIZARDDIALOG_START + 90); 268 //resPages = oResource.getResText(RID_WEBWIZARDDIALOG_START + 91); 269 resImages = oResource.getResText(RID_WEBWIZARDDIALOG_START + 94); 270 resAllFiles = oResource.getResText(RID_WEBWIZARDDIALOG_START + 95); 271 resZipFiles = oResource.getResText(RID_WEBWIZARDDIALOG_START + 96); 272 resBackgroundsDialog = oResource.getResText(RID_WEBWIZARDDIALOG_START + 98); 273 resBackgroundsDialogCaption = oResource.getResText(RID_WEBWIZARDDIALOG_START + 99); 274 resIconsDialog = oResource.getResText(RID_WEBWIZARDDIALOG_START + 100); 275 resIconsDialogCaption = oResource.getResText(RID_WEBWIZARDDIALOG_START + 101); 276 resOther = oResource.getResText(RID_WEBWIZARDDIALOG_START + 102); 277 resDeselect = oResource.getResText(RID_WEBWIZARDDIALOG_START + 103); 278 resFinishedSuccess = oResource.getResText(RID_WEBWIZARDDIALOG_START + 104); 279 resFinishedNoSuccess = oResource.getResText(RID_WEBWIZARDDIALOG_START + 105); 280 resErrTOC = oResource.getResText(RID_WEBWIZARDDIALOG_START + 106); 281 resErrTOCMedia = oResource.getResText(RID_WEBWIZARDDIALOG_START + 107); 282 resErrDocInfo = oResource.getResText(RID_WEBWIZARDDIALOG_START + 108); 283 resErrDocExport = oResource.getResText(RID_WEBWIZARDDIALOG_START + 109); 284 resErrMkDir = oResource.getResText(RID_WEBWIZARDDIALOG_START + 110); 285 resErrSecurity = oResource.getResText(RID_WEBWIZARDDIALOG_START + 111); 286 resErrExportIO = oResource.getResText(RID_WEBWIZARDDIALOG_START + 112); 287 resErrPublishMedia = oResource.getResText(RID_WEBWIZARDDIALOG_START + 113); 288 resErrPublish = oResource.getResText(RID_WEBWIZARDDIALOG_START + 114); 289 resErrUnknown = oResource.getResText(RID_WEBWIZARDDIALOG_START + 115); 290 resErrDocValidate = oResource.getResText(RID_WEBWIZARDDIALOG_START + 116); 291 resErrIsDirectory = oResource.getResText(RID_WEBWIZARDDIALOG_START + 117); 292 resLoadingSession = oResource.getResText(RID_WEBWIZARDDIALOG_START + 118); 293 resErrUnexpected = oResource.getResText(RID_WEBWIZARDDIALOG_START + 119); 294 resValidatingDocuments = oResource.getResText(RID_WEBWIZARDDIALOG_START + 120); 295 resDefaultArchiveFilename = oResource.getResText(RID_WEBWIZARDDIALOG_START + 121); 296 resStep1 = oResource.getResText(RID_WEBWIZARDDIALOG_START + 122); 297 resStep2 = oResource.getResText(RID_WEBWIZARDDIALOG_START + 123); 298 resStep3 = oResource.getResText(RID_WEBWIZARDDIALOG_START + 124); 299 resStep4 = oResource.getResText(RID_WEBWIZARDDIALOG_START + 125); 300 resStep5 = oResource.getResText(RID_WEBWIZARDDIALOG_START + 126); 301 resStep6 = oResource.getResText(RID_WEBWIZARDDIALOG_START + 127); 302 resStep7 = oResource.getResText(RID_WEBWIZARDDIALOG_START + 128); 303 resDelSessionConfirm = oResource.getResText(RID_WEBWIZARDDIALOG_START + 130); 304 resPages = oResource.getResText(RID_WEBWIZARDDIALOG_START + 131); 305 resSlides = oResource.getResText(RID_WEBWIZARDDIALOG_START + 132); 306 resCreatedTemplate = oResource.getResText(RID_WEBWIZARDDIALOG_START + 133); 307 resUpdatedTemplate = oResource.getResText(RID_WEBWIZARDDIALOG_START + 134); 308 resSessionName = oResource.getResText(RID_WEBWIZARDDIALOG_START + 135); 309 310 reslblBackground = oResource.getResText(RID_WEBWIZARDDIALOG_START + 136); 311 reslblIconset = oResource.getResText(RID_WEBWIZARDDIALOG_START + 137); 312 reslblIconSetInfo = oResource.getResText(RID_WEBWIZARDDIALOG_START + 138); 313 reslblMetaData = oResource.getResText(RID_WEBWIZARDDIALOG_START + 139); 314 resBtnChooseBackground = oResource.getResText(RID_WEBWIZARDDIALOG_START + 140); 315 resBtnChooseIconset = oResource.getResText(RID_WEBWIZARDDIALOG_START + 141); 316 resSessionNameNone = oResource.getResText(RID_WEBWIZARDDIALOG_START + 142); 317 reslblFTPDisabled = oResource.getResText(RID_WEBWIZARDDIALOG_START + 143); 318 resBackgroundNone = oResource.getResText(RID_WEBWIZARDDIALOG_START + 144); 319 resIconsetNone = oResource.getResText(RID_WEBWIZARDDIALOG_START + 145); 320 resFTPTargetCouldNotCreate = oResource.getResText(RID_WEBWIZARDDIALOG_START + 146); 321 resFTPTargetCreate = oResource.getResText(RID_WEBWIZARDDIALOG_START + 147); 322 resZipTargetIsDir = oResource.getResText(RID_WEBWIZARDDIALOG_START + 148); 323 resLocalTargetCouldNotCreate = oResource.getResText(RID_WEBWIZARDDIALOG_START + 149); 324 resLocalTargetCreate = oResource.getResText(RID_WEBWIZARDDIALOG_START + 150); 325 resSizeTemplate = oResource.getResText(RID_WEBWIZARDDIALOG_START + 151); 326 resSpecifyNewFileLocation = oResource.getResText(RID_WEBWIZARDDIALOG_START + 152); 327 328 resClose = oResource.getResText(RID_COMMON_START + 17); 329 resCancel = oResource.getResText(RID_COMMON_START + 11); 330 resOK = oResource.getResText(RID_COMMON_START + 18); 331 resHelp = oResource.getResText(RID_COMMON_START + 15); 332 333 try 334 { 335 prodName = Configuration.getProductName(xmsf); 336 resGifFiles = (String) Properties.getPropertyValue(OfficeDocument.getTypeMediaDescriptor(xmsf, "gif_Graphics_Interchange"), "UIName"); 337 } 338 catch (Exception ex) 339 { 340 ex.printStackTrace(); 341 } 342 343 } 344 } 345