1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 package com.sun.star.wizards.web; 28 29 import com.sun.star.awt.FontDescriptor; 30 import com.sun.star.awt.Size; 31 import com.sun.star.awt.XButton; 32 import com.sun.star.awt.XCheckBox; 33 import com.sun.star.awt.XComboBox; 34 import com.sun.star.awt.XControl; 35 import com.sun.star.awt.XDateField; 36 import com.sun.star.awt.XFixedText; 37 import com.sun.star.awt.XListBox; 38 import com.sun.star.awt.XRadioButton; 39 import com.sun.star.awt.XTextComponent; 40 import com.sun.star.lang.XMultiServiceFactory; 41 import com.sun.star.wizards.common.Helper; 42 import com.sun.star.wizards.common.HelpIds; 43 import com.sun.star.wizards.common.PropertyNames; 44 import com.sun.star.wizards.ui.ImageList; 45 import com.sun.star.wizards.ui.UIConsts; 46 import com.sun.star.wizards.ui.WizardDialog; 47 import com.sun.star.wizards.web.data.CGLayout; 48 49 /** 50 * This class is generated Automatically.... 51 * bla bla bla 52 */ 53 public abstract class WebWizardDialog extends WizardDialog implements WebWizardConst, UIConsts, WWHID 54 { 55 //GUI Components as Class members. 56 XFixedText lbIntroTitle; 57 XFixedText lblIntroduction; 58 //Fixed Line 59 XControl lnLoadSettings; 60 XFixedText lblLoadSettings; 61 XListBox lstLoadSettings; 62 XButton btnDelSession; 63 XFixedText lblContentTitle; 64 //Fixed Line 65 XFixedText lblSiteContent; 66 XListBox lstDocuments; 67 XButton btnAddDoc; 68 XButton btnRemoveDoc; 69 XButton btnDocUp; 70 XButton btnDocDown; 71 //Fixed Line 72 XControl lnDocsInfo; 73 XFixedText lblDocTitle; 74 XTextComponent txtDocTitle; 75 XFixedText lblDocInfo; 76 XTextComponent txtDocInfo; 77 XFixedText lblDocAuthor; 78 XTextComponent txtDocAuthor; 79 XFixedText lblDocExportFormat; 80 XListBox lstDocTargetType; 81 XFixedText lblLayoutTitle; 82 XFixedText lblLayouts; 83 /*XFixedText Label1; 84 //Image Control 85 XControl ImageControl1; 86 //Image Control 87 XControl ImageControl3; 88 //Image Control 89 XControl ImageControl4; 90 //Image Control 91 XControl ImageControl5; 92 //Image Control 93 XControl ImageControl6; 94 XFixedText Label3; 95 //titled box 96 XControl FrameControl1; 97 //Image Control 98 XControl ImageControl2; 99 //Image Control 100 XControl ImageControl7; 101 //Image Control 102 XControl ImageControl8; 103 //Image Control 104 XControl ImageControl9; 105 //Image Control 106 XControl ImageControl10; 107 //Image Control 108 XControl ImageControl11; 109 //Image Control 110 XControl ImageControl12; 111 //Image Control 112 XControl ImageControl13; 113 //Image Control 114 XControl ImageControl14; 115 //Image Control 116 XControl ImageControl15; 117 */ 118 XCheckBox chbDocDesc; 119 XCheckBox chkDocFilename; 120 XCheckBox chbDocAuthor; 121 XCheckBox chkDocFormat; 122 XCheckBox chkDocFormatIcon; 123 XCheckBox chkDocCreated; 124 XCheckBox chkDocChanged; 125 XCheckBox chkDocPages; 126 XCheckBox chkDocSize; 127 XFixedText lnDisplay; 128 XRadioButton optOptimize640x480; 129 XRadioButton optOptimize800x600; 130 XRadioButton optOptimize1024x768; 131 XFixedText lblLayout2Title; 132 XFixedText lblOptimizeFor; // Step 5 133 XFixedText lblStyle; 134 XFixedText lblStyleTitle; 135 XListBox lstStyles; //Image Control 136 XFixedText txtBackground; 137 XFixedText txtIconset; 138 XButton btnBackgrounds; 139 XButton btnIconSets; 140 XControl imgPreview; // Step 6 141 XFixedText lblSiteTitle; 142 XFixedText lblSiteCreated; 143 XFixedText lblEmail; 144 XFixedText lblSiteDesc; 145 XTextComponent txtSiteTitle; 146 XTextComponent txtSiteDesc; 147 XTextComponent txtEmail; 148 XDateField dateSiteCreated; 149 XDateField dateSiteUpdate; 150 XFixedText lblSiteUpdated; 151 XTextComponent txtCopyright; 152 XFixedText lblCopyright; 153 XFixedText lblTitleGeneralPage; 154 XButton btnPreview; 155 XButton btnFTP; 156 XCheckBox chkLocalDir; 157 //Fixed Line 158 XControl lblCreateSite; 159 XCheckBox chkFTP; 160 XFixedText lblFTP; 161 XCheckBox chkZip; 162 XCheckBox chkSaveSettings; 163 XFixedText lblSaveSettings; 164 //Fixed Line 165 XControl lnSaveSetting; 166 XComboBox cbSaveSettings; 167 XTextComponent txtLocalDir; 168 XTextComponent txtZip; 169 XButton btnLocalDir; 170 XButton btnZip; 171 XFixedText lblTitlePublish; 172 //Fixed Line 173 XControl FixedLine1; 174 //Font Descriptors as Class members. 175 FontDescriptor fontDescriptor0 = new FontDescriptor(); 176 FontDescriptor fontDescriptor1 = new FontDescriptor(); 177 FontDescriptor fontDescriptor4 = new FontDescriptor(); 178 FontDescriptor fontDescriptor5 = new FontDescriptor(); 179 FontDescriptor fontDescriptor6 = new FontDescriptor(); 180 FontDescriptor fontDescriptor7 = new FontDescriptor(); //private static String[] PROPNAMES_LBL_NOFOCUS = new String[] {PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_WIDTH}; 181 private static String[] PROPNAMES_LBL = new String[] 182 { 183 PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 184 }; 185 private static String[] PROPNAMES_CHKBOX = new String[] 186 { 187 PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STATE, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 188 }; 189 private static String[] PROPNAMES_BUTTON = new String[] 190 { 191 PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 192 }; 193 private static String[] PROPNAMES_TXT = new String[] 194 { 195 PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 196 }; 197 private static String[] PROPNAMES_TXT_2 = new String[] 198 { 199 PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.READ_ONLY, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 200 }; 201 private static String[] PROPNAMES_TITLE = new String[] 202 { 203 PropertyNames.FONT_DESCRIPTOR, PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_MULTILINE, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 204 }; 205 private static Integer INTEGER_91 = 91; 206 private static Integer INTEGER_97 = 97; 207 private static Integer INTEGER_103 = 103; 208 private static Integer INTEGER_169 = 169; //Resources Object 209 WebWizardDialogResources resources; 210 211 public WebWizardDialog(XMultiServiceFactory xmsf) 212 { 213 super(xmsf, HID0_WEBWIZARD); 214 //Load Resources 215 resources = new WebWizardDialogResources(xmsf, super.getResource()); 216 217 218 //set dialog properties... 219 Helper.setUnoPropertyValues(xDialogModel, 220 new String[] 221 { 222 PropertyNames.PROPERTY_CLOSEABLE, PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_MOVEABLE, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_TITLE, PropertyNames.PROPERTY_WIDTH 223 }, 224 new Object[] 225 { 226 Boolean.TRUE, 210, HelpIds.getHelpIdString(HID0_WEBWIZARD), Boolean.TRUE, "WebWizardDialog", 102, 52, INTEGERS[1], new Short((short) 6), resources.resWebWizardDialog_title, 330 227 }); 228 229 //Set member- FontDescriptors... 230 fontDescriptor0.Weight = 100; 231 fontDescriptor1.Weight = 150; 232 fontDescriptor1.Underline = com.sun.star.awt.FontUnderline.SINGLE; 233 fontDescriptor4.Weight = 150; 234 fontDescriptor5.Name = "Angsana New"; 235 fontDescriptor5.Height = 16; 236 fontDescriptor5.StyleName = "Regular"; 237 fontDescriptor5.Family = com.sun.star.awt.FontFamily.ROMAN; 238 fontDescriptor5.Weight = 100; 239 fontDescriptor6.Name = "Andalus"; 240 fontDescriptor6.Height = 22; 241 fontDescriptor6.StyleName = "Bold Italic"; 242 fontDescriptor6.Weight = 150; 243 fontDescriptor6.Slant = com.sun.star.awt.FontSlant.ITALIC; 244 fontDescriptor7.Name = "StarSymbol"; 245 fontDescriptor7.Height = 9; 246 fontDescriptor7.StyleName = "Regular"; 247 fontDescriptor7.Weight = 100; 248 } 249 //build components 250 public void buildStep1() 251 { 252 short tabIndex = 100; 253 lbIntroTitle = insertLabel("lbIntroTitle", 254 PROPNAMES_TITLE, 255 new Object[] 256 { 257 fontDescriptor4, INTEGER_16, resources.reslbIntroTitle_value, Boolean.TRUE, "lbIntroTitle", 91, INTEGERS[8], INTEGERS[1], new Short(tabIndex++), 232 258 }); 259 lblIntroduction = insertLabel("lblIntroduction", 260 new String[] 261 { 262 PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_MULTILINE, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 263 }, 264 new Object[] 265 { 266 119, resources.reslblIntroduction_value, Boolean.TRUE, "lblIntroduction", 97, 28, INTEGERS[1], new Short(tabIndex++), 226 267 }); 268 269 lnLoadSettings = insertFixedLine("lnLoadSettings", 270 PROPNAMES_TXT, 271 new Object[] 272 { 273 INTEGERS[2], PropertyNames.EMPTY_STRING, "lnLoadSettings", 91, 147, INTEGERS[1], new Short(tabIndex++), 234 274 }); 275 lblLoadSettings = insertLabel("lblLoadSettings", 276 new String[] 277 { 278 PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_MULTILINE, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 279 }, 280 new Object[] 281 { 282 INTEGERS[8], resources.reslblLoadSettings_value, Boolean.TRUE, "lblLoadSettings", 97, 153, INTEGERS[1], new Short(tabIndex++), 226 283 }); 284 lstLoadSettings = insertListBox("lstLoadSettings", null, LSTLOADSETTINGS_ITEM_CHANGED, 285 new String[] 286 { 287 "Dropdown", PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, "LineCount", PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 288 }, 289 new Object[] 290 { 291 Boolean.TRUE, INTEGER_12, HelpIds.getHelpIdString(HID1_LST_SESSIONS), new Short((short) 14), "lstLoadSettings", 97, 165, INTEGERS[1], new Short(tabIndex++), 173 292 }); 293 btnDelSession = insertButton("btnDelSession", BTNDELSESSION_ACTION_PERFORMED, 294 new String[] 295 { 296 PropertyNames.PROPERTY_ENABLED, PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, "ImageAlign", PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 297 }, 298 new Object[] 299 { 300 Boolean.FALSE, INTEGER_14, HelpIds.getHelpIdString(HID1_BTN_DEL_SES), new Short(com.sun.star.awt.ImageAlign.LEFT), resources.resbtnDelSession_value, "btnDelSession", 274, 164, INTEGERS[1], new Short(tabIndex++), INTEGER_50 301 }); 302 } 303 304 public void buildStep2() 305 { 306 short tabIndex = 200; 307 308 lblContentTitle = insertLabel("lblContentTitle", 309 PROPNAMES_TITLE, 310 new Object[] 311 { 312 fontDescriptor4, INTEGER_16, resources.reslblContentTitle_value, Boolean.TRUE, "lblContentTitle", 91, INTEGERS[8], INTEGERS[2], new Short(tabIndex++), 232 313 }); 314 lblSiteContent = insertLabel("lblSiteContent", 315 PROPNAMES_LBL, 316 new Object[] 317 { 318 INTEGERS[8], resources.reslblSiteContent_value, "lblSiteContent", 97, 28, INTEGERS[2], new Short(tabIndex++), 105 319 }); 320 lstDocuments = insertListBox("lstDocuments", null, null, 321 new String[] 322 { 323 PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, "LineCount", PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 324 }, 325 new Object[] 326 { 327 123, HelpIds.getHelpIdString(HID2_LST_DOCS), new Short((short) 9), "lstDocuments", 97, 38, INTEGERS[2], new Short(tabIndex++), 103 328 }); 329 btnAddDoc = insertButton("btnAddDoc", BTNADDDOC_ACTION_PERFORMED, 330 PROPNAMES_BUTTON, 331 new Object[] 332 { 333 INTEGER_14, HelpIds.getHelpIdString(HID2_BTN_ADD_DOC), resources.resbtnAddDoc_value, "btnAddDoc", 97, 165, INTEGERS[2], new Short(tabIndex++), INTEGER_50 334 }); 335 btnRemoveDoc = insertButton("btnRemoveDoc", BTNREMOVEDOC_ACTION_PERFORMED, 336 PROPNAMES_BUTTON, 337 new Object[] 338 { 339 INTEGER_14, HelpIds.getHelpIdString(HID2_BTN_REM_DOC), resources.resbtnRemoveDoc_value, "btnRemoveDoc", 150, 165, INTEGERS[2], new Short(tabIndex++), INTEGER_50 340 }); 341 btnDocUp = insertButton("btnDocUp", BTNDOCUP_ACTION_PERFORMED, 342 new String[] 343 { 344 PropertyNames.FONT_DESCRIPTOR, PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 345 }, 346 new Object[] 347 { 348 fontDescriptor7, INTEGER_14, HelpIds.getHelpIdString(HID2_BTN_DOC_UP), resources.resbtnDocUp_value, "btnDocUp", 205, 87, INTEGERS[2], new Short(tabIndex++), 18 349 }); 350 btnDocDown = insertButton("btnDocDown", BTNDOCDOWN_ACTION_PERFORMED, 351 new String[] 352 { 353 PropertyNames.FONT_DESCRIPTOR, PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 354 }, 355 new Object[] 356 { 357 fontDescriptor7, INTEGER_14, HelpIds.getHelpIdString(HID2_BTN_DOC_DOWN), resources.resbtnDocDown_value, "btnDocDown", 205, 105, INTEGERS[2], new Short(tabIndex++), 18 358 }); 359 360 lblDocExportFormat = insertLabel("lblDocExportFormat", 361 PROPNAMES_LBL, 362 new Object[] 363 { 364 INTEGERS[8], resources.reslblDocExportFormat_value, "lblDocExportFormat", 235, 28, INTEGERS[2], new Short(tabIndex++), 89 365 }); 366 lstDocTargetType = insertListBox("lstDocTargetType", null, null, 367 new String[] 368 { 369 "Dropdown", PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, "LineCount", PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 370 }, 371 new Object[] 372 { 373 Boolean.TRUE, INTEGER_12, HelpIds.getHelpIdString(HID2_LST_DOC_EXPORT), new Short((short) 14), "lstDocTargetType", 235, 38, INTEGERS[2], new Short(tabIndex++), 89 374 }); 375 376 377 378 379 lnDocsInfo = insertFixedLine("lnDocsInfo", 380 PROPNAMES_LBL, 381 new Object[] 382 { 383 INTEGERS[8], resources.reslnDocsInfo_value, "lnDocsInfo", 235, 66, INTEGERS[2], new Short(tabIndex++), 90 384 }); 385 lblDocTitle = insertLabel("lblDocTitle", 386 PROPNAMES_LBL, 387 new Object[] 388 { 389 INTEGERS[8], resources.reslblDocTitle_value, "lblDocTitle", 235, 78, INTEGERS[2], new Short(tabIndex++), 89 390 }); 391 txtDocTitle = insertTextField("txtDocTitle", null, 392 PROPNAMES_TXT, 393 new Object[] 394 { 395 INTEGER_12, HelpIds.getHelpIdString(HID2_TXT_DOC_TITLE), "txtDocTitle", 235, 88, INTEGERS[2], new Short(tabIndex++), 89 396 }); 397 lblDocInfo = insertLabel("lblDocInfo", 398 PROPNAMES_LBL, 399 new Object[] 400 { 401 INTEGERS[8], resources.reslblDocInfo_value, "lblDocInfo", 235, 103, INTEGERS[2], new Short(tabIndex++), 89 402 }); 403 txtDocInfo = insertTextField("txtDocInfo", null, 404 new String[] 405 { 406 PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_MULTILINE, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 407 }, 408 new Object[] 409 { 410 INTEGER_40, HelpIds.getHelpIdString(HID2_TXT_DOC_DESC), Boolean.TRUE, "txtDocInfo", 235, 113, INTEGERS[2], new Short(tabIndex++), 89 411 }); 412 lblDocAuthor = insertLabel("lblDocAuthor", 413 PROPNAMES_LBL, 414 new Object[] 415 { 416 INTEGERS[8], resources.reslblDocAuthor_value, "lblDocAuthor", 235, 155, INTEGERS[2], new Short(tabIndex++), 89 417 }); 418 txtDocAuthor = insertTextField("txtDocAuthor", null, 419 PROPNAMES_TXT, 420 new Object[] 421 { 422 INTEGER_12, HelpIds.getHelpIdString(HID2_TXT_DOC_AUTHOR), "txtDocAuthor", 235, 165, INTEGERS[2], new Short(tabIndex++), 89 423 }); 424 } 425 426 public void buildStep3() 427 { 428 lblLayoutTitle = insertLabel("lblLayoutTitle", 429 PROPNAMES_TITLE, 430 new Object[] 431 { 432 fontDescriptor4, INTEGER_16, resources.reslblLayoutTitle_value, Boolean.TRUE, "lblLayoutTitle", 91, INTEGERS[8], INTEGERS[3], new Short((short) 29), 232 433 }); 434 lblLayouts = insertLabel("lblLayouts", 435 PROPNAMES_LBL, 436 new Object[] 437 { 438 INTEGERS[8], resources.reslblLayouts_value, "lblLayouts", 97, 28, INTEGERS[3], new Short((short) 30), 206 439 }); 440 441 } 442 443 public void buildStep4() 444 { 445 lblLayout2Title = insertLabel("lblLayout2Title", 446 PROPNAMES_TITLE, 447 new Object[] 448 { 449 fontDescriptor4, INTEGER_16, resources.reslblLayout2Title_value, Boolean.TRUE, "lblLayout2Title", 91, INTEGERS[8], INTEGERS[4], new Short((short) 33), 232 450 }); 451 lnDisplay = insertLabel("lblDisplay", 452 new String[] 453 { 454 PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_MULTILINE, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 455 }, 456 new Object[] 457 { 458 INTEGER_16, resources.reslblDisplay_value, Boolean.TRUE, "lblDisplay", 97, 28, INTEGERS[4], new Short((short) 34), 226 459 }); 460 chkDocFilename = insertCheckBox("chkDocFilename", null, 461 PROPNAMES_CHKBOX, 462 new Object[] 463 { 464 INTEGERS[8], HelpIds.getHelpIdString(HID4_CHK_DISPLAY_FILENAME), resources.reschkDocFilename_value, "chkDocFilename", 103, 50, new Short((short) 0), INTEGERS[4], new Short((short) 35), 99 465 }); 466 chbDocDesc = insertCheckBox("chbDocDesc", null, 467 PROPNAMES_CHKBOX, 468 new Object[] 469 { 470 INTEGERS[8], HelpIds.getHelpIdString(HID4_CHK_DISPLAY_DESCRIPTION), resources.reschbDocDesc_value, "chbDocDesc", 103, 60, new Short((short) 0), INTEGERS[4], new Short((short) 36), 99 471 }); 472 chbDocAuthor = insertCheckBox("chbDocAuthor", null, 473 PROPNAMES_CHKBOX, 474 new Object[] 475 { 476 INTEGERS[8], HelpIds.getHelpIdString(HID4_CHK_DISPLAY_AUTHOR), resources.reschbDocAuthor_value, "chbDocAuthor", 103, 70, new Short((short) 0), INTEGERS[4], new Short((short) 37), 99 477 }); 478 chkDocCreated = insertCheckBox("chkDocCreated", null, 479 PROPNAMES_CHKBOX, 480 new Object[] 481 { 482 INTEGERS[8], HelpIds.getHelpIdString(HID4_CHK_DISPLAY_CR_DATE), resources.reschkDocCreated_value, "chkDocCreated", 103, 80, new Short((short) 0), INTEGERS[4], new Short((short) 38), 99 483 }); 484 chkDocChanged = insertCheckBox("chkDocChanged", null, 485 PROPNAMES_CHKBOX, 486 new Object[] 487 { 488 INTEGERS[8], HelpIds.getHelpIdString(HID4_CHK_DISPLAY_UP_DATE), resources.reschkDocChanged_value, "chkDocChanged", 103, 90, new Short((short) 0), INTEGERS[4], new Short((short) 39), 99 489 }); 490 491 chkDocFormat = insertCheckBox("chkDocFormat", null, 492 PROPNAMES_CHKBOX, 493 new Object[] 494 { 495 INTEGERS[8], HelpIds.getHelpIdString(HID4_CHK_DISPLAY_FORMAT), resources.reschkDocFormat_value, "chkDocFormat", 200, 50, new Short((short) 0), INTEGERS[4], new Short((short) 40), 110 496 }); 497 chkDocFormatIcon = insertCheckBox("chkDocFormatIcon", null, 498 PROPNAMES_CHKBOX, 499 new Object[] 500 { 501 INTEGERS[8], HelpIds.getHelpIdString(HID4_CHK_DISPLAY_F_ICON), resources.reschkDocFormatIcon_value, "chkDocFormatIcon", 200, 60, new Short((short) 0), INTEGERS[4], new Short((short) 41), 110 502 }); 503 chkDocPages = insertCheckBox("chkDocPages", null, 504 PROPNAMES_CHKBOX, 505 new Object[] 506 { 507 INTEGERS[8], HelpIds.getHelpIdString(HID4_CHK_DISPLAY_PAGES), resources.reschkDocPages_value, "chkDocPages", 200, 70, new Short((short) 0), INTEGERS[4], new Short((short) 42), 110 508 }); 509 chkDocSize = insertCheckBox("chkDocSize", null, 510 PROPNAMES_CHKBOX, 511 new Object[] 512 { 513 INTEGERS[8], HelpIds.getHelpIdString(HID4_CHK_DISPLAY_SIZE), resources.reschkDocSize_value, "chkDocSize", 200, 80, new Short((short) 0), INTEGERS[4], new Short((short) 43), 110 514 }); 515 lblOptimizeFor = insertLabel("lblOptimizeFor", 516 PROPNAMES_LBL, 517 new Object[] 518 { 519 INTEGERS[8], resources.reslblOptimizeFor_value, "lblOptimizeFor", 97, 113, INTEGERS[4], new Short((short) 44), 226 520 }); 521 optOptimize640x480 = insertRadioButton("optOptimize640x480", null, 522 PROPNAMES_BUTTON, 523 new Object[] 524 { 525 INTEGERS[10], HelpIds.getHelpIdString(HID4_GRP_OPTIMAIZE_640), resources.resoptOptimize640x480_value, "optOptimize640x480", 103, 133, INTEGERS[4], new Short((short) 45), 44 526 }); 527 optOptimize800x600 = insertRadioButton("optOptimize800x600", null, 528 PROPNAMES_BUTTON, 529 new Object[] 530 { 531 INTEGERS[10], HelpIds.getHelpIdString(HID4_GRP_OPTIMAIZE_800), resources.resoptOptimize800x600_value, "optOptimize800x600", 103, 146, INTEGERS[4], new Short((short) 46), 44 532 }); 533 optOptimize1024x768 = insertRadioButton("optOptimize1024x768", null, 534 PROPNAMES_BUTTON, 535 new Object[] 536 { 537 INTEGERS[10], HelpIds.getHelpIdString(HID4_GRP_OPTIMAIZE_1024), resources.resoptOptimize1024x768_value, "optOptimize1024x768", 103, 158, INTEGERS[4], new Short((short) 47), 44 538 }); 539 540 } 541 542 public void buildStep5() 543 { 544 lblStyleTitle = insertLabel("lblStyleTitle", PROPNAMES_TITLE, 545 new Object[] 546 { 547 fontDescriptor4, INTEGER_16, resources.reslblStyleTitle_value, Boolean.TRUE, "lblStyleTitle", 91, INTEGERS[8], INTEGERS[5], new Short((short) 50), 232 548 }); 549 550 lblStyle = insertLabel("lblStyle", PROPNAMES_LBL, 551 new Object[] 552 { 553 INTEGERS[8], resources.reslblStyle_value, "lblStyle", 97, 28, INTEGERS[5], new Short((short) 51), 80 554 }); 555 lstStyles = insertListBox("lstStyles", null, LSTSTYLES_ITEM_CHANGED, 556 new String[] 557 { 558 "Dropdown", PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, "LineCount", PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 559 }, 560 new Object[] 561 { 562 Boolean.TRUE, INTEGER_12, HelpIds.getHelpIdString(HID5_LST_STYLES), new Short((short) 14), "lstStyles", 179, 26, INTEGERS[5], new Short((short) 52), 145 563 }); 564 565 insertLabel("lblBackground", PROPNAMES_LBL, 566 new Object[] 567 { 568 INTEGERS[8], resources.reslblBackground, "lblBackground", 97, 46, INTEGERS[5], new Short((short) 51), 70 569 }); 570 txtBackground = insertLabel("txtBackground", 571 new String[] 572 { 573 PropertyNames.PROPERTY_BORDER, PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 574 }, 575 new Object[] 576 { 577 new Short((short) 1), INTEGER_12, resources.resBackgroundNone, "txtBackground", 179, 44, INTEGERS[5], new Short((short) 52), 90 578 }); 579 btnBackgrounds = insertButton("btnBackgrounds", BTNBACKGROUNDS_ACTION_PERFORMED, PROPNAMES_BUTTON, 580 new Object[] 581 { 582 INTEGER_14, HelpIds.getHelpIdString(HID5_BTN_BACKGND), resources.resBtnChooseBackground, "btnBackgrounds", 274, 43, INTEGERS[5], new Short((short) 53), INTEGER_50 583 }); 584 585 insertLabel("lblIconset", PROPNAMES_LBL, 586 new Object[] 587 { 588 INTEGERS[8], resources.reslblIconset, "lblIconset", 97, 64, INTEGERS[5], new Short((short) 51), 70 589 }); 590 txtIconset = insertLabel("txtIconset", 591 new String[] 592 { 593 PropertyNames.PROPERTY_BORDER, PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 594 }, 595 new Object[] 596 { 597 new Short((short) 1), INTEGER_12, resources.resIconsetNone, "txtIconset", 179, 62, INTEGERS[5], new Short((short) 52), 90 598 }); 599 btnIconSets = insertButton("btnIconSets", BTNICONSETS_ACTION_PERFORMED, 600 PROPNAMES_BUTTON, 601 new Object[] 602 { 603 INTEGER_14, HelpIds.getHelpIdString(HID5_BTN_ICONS), resources.resBtnChooseIconset, "btnIconSets", 274, 61, INTEGERS[5], new Short((short) 54), INTEGER_50 604 }); 605 insertLabel("lblIconsetInfo", 606 new String[] 607 { 608 PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_MULTILINE, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 609 }, 610 new Object[] 611 { 612 INTEGER_16, resources.reslblIconSetInfo, Boolean.TRUE, "lblIconsetInfo", 179, 78, INTEGERS[5], new Short((short) 51), 145 613 }); 614 615 616 imgPreview = insertImage("imgPreview", 617 new String[] 618 { 619 "BackgroundColor", PropertyNames.PROPERTY_ENABLED, PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_IMAGEURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, "ScaleImage", PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 620 }, 621 new Object[] 622 { 623 0, Boolean.FALSE, 78, PropertyNames.EMPTY_STRING, "imgPreview", 91, 100, Boolean.FALSE, INTEGERS[5], new Short((short) 55), 232 624 }); 625 626 } 627 628 public void buildStep6() 629 { 630 short tabIndex = 60; 631 lblTitleGeneralPage = insertLabel("lblTitleGeneralPage", 632 PROPNAMES_TITLE, 633 new Object[] 634 { 635 fontDescriptor4, INTEGERS[8], resources.reslblTitleGeneralPage_value, Boolean.TRUE, "lblTitleGeneralPage", 90, INTEGERS[9], INTEGERS[6], new Short(tabIndex++), 232 636 }); 637 lblSiteTitle = insertLabel("lblSiteTitle", 638 PROPNAMES_LBL, 639 new Object[] 640 { 641 INTEGERS[8], resources.reslblSiteTitle_value, "lblSiteTitle", 97, 28, INTEGERS[6], new Short(tabIndex++), 80 642 }); 643 txtSiteTitle = insertTextField("txtSiteTitle", null, 644 PROPNAMES_TXT, 645 new Object[] 646 { 647 INTEGER_12, HelpIds.getHelpIdString(HID6_TXT_SITE_TITLE), "txtSiteTitle", 179, 26, INTEGERS[6], new Short(tabIndex++), 145 648 }); 649 650 651 insertFixedLine("FixedLineMetaData", 652 PROPNAMES_LBL, 653 new Object[] 654 { 655 INTEGERS[9], resources.reslblMetaData, "FixedLineMetaData", 97, 56, INTEGERS[6], new Short(tabIndex++), 228 656 }); 657 658 659 lblSiteDesc = insertLabel("lblSiteDesc", 660 PROPNAMES_LBL, 661 new Object[] 662 { 663 INTEGERS[8], resources.reslblSiteDesc_value, "lblSiteDesc", 103, 72, INTEGERS[6], new Short(tabIndex++), 80 664 }); 665 txtSiteDesc = insertTextField("txtSiteDesc", null, 666 PROPNAMES_TXT, 667 new Object[] 668 { 669 INTEGER_12, HelpIds.getHelpIdString(HID6_TXT_SITE_DESC), "txtSiteDesc", 179, 70, INTEGERS[6], new Short(tabIndex++), 145 670 }); 671 672 lblEmail = insertLabel("lblEmail", PROPNAMES_LBL, 673 new Object[] 674 { 675 INTEGERS[8], resources.reslblEmail_value, "lblEmail", 103, 90, INTEGERS[6], new Short(tabIndex++), 80 676 }); 677 txtEmail = insertTextField("txtEmail", null, PROPNAMES_TXT, 678 new Object[] 679 { 680 INTEGER_12, HelpIds.getHelpIdString(HID6_TXT_SITE_EMAIL), "txtEmail", 179, 87, INTEGERS[6], new Short(tabIndex++), 145 681 }); 682 683 lblCopyright = insertLabel("lblCopyright", PROPNAMES_LBL, 684 new Object[] 685 { 686 INTEGERS[8], resources.reslblCopyright_value, "lblCopyright", 103, 108, INTEGERS[6], new Short(tabIndex++), 80 687 }); 688 txtCopyright = insertTextField("txtCopyright", null, PROPNAMES_TXT, 689 new Object[] 690 { 691 INTEGER_12, HelpIds.getHelpIdString(HID6_TXT_SITE_COPYRIGHT), "txtCopyright", 179, 106, INTEGERS[6], new Short(tabIndex++), 145 692 }); 693 694 695 lblSiteCreated = insertLabel("lblSiteCreated", 696 PROPNAMES_LBL, 697 new Object[] 698 { 699 INTEGERS[8], resources.reslblSiteCreated_value, "lblSiteCreated", 103, 126, INTEGERS[6], new Short(tabIndex++), 80 700 }); 701 dateSiteCreated = insertDateField("dateSiteCreated", null, 702 new String[] 703 { 704 "Dropdown", PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 705 }, 706 new Object[] 707 { 708 Boolean.TRUE, INTEGER_12, HelpIds.getHelpIdString(HID6_DATE_SITE_CREATED), "dateSiteCreated", 179, 124, INTEGERS[6], new Short(tabIndex++), 49 709 }); 710 lblSiteUpdated = insertLabel("lblSiteUpdated", 711 PROPNAMES_LBL, 712 new Object[] 713 { 714 INTEGERS[8], resources.reslblSiteUpdated_value, "lblSiteUpdated", 103, 144, INTEGERS[6], new Short(tabIndex++), 80 715 }); 716 717 dateSiteUpdate = insertDateField("dateSiteUpdate", null, 718 new String[] 719 { 720 "Dropdown", PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 721 }, 722 new Object[] 723 { 724 Boolean.TRUE, INTEGER_12, HelpIds.getHelpIdString(HID6_DATE_SITE_UPDATED), "dateSiteUpdate", 179, 142, INTEGERS[6], new Short(tabIndex++), 49 725 }); 726 727 728 729 } 730 731 public void buildStep7(boolean disableFTP, String exclamationURL) 732 { 733 short tabIndex = 700; 734 735 lblTitlePublish = insertLabel("lblTitlePublish", 736 PROPNAMES_TITLE, 737 new Object[] 738 { 739 fontDescriptor4, INTEGER_16, resources.reslblTitlePublish_value, Boolean.TRUE, "lblTitlePublish", 91, INTEGERS[8], INTEGERS[7], new Short(tabIndex++), 232 740 }); 741 742 FixedLine1 = insertFixedLine("FixedLine1", 743 PROPNAMES_LBL, 744 new Object[] 745 { 746 INTEGERS[9], resources.resFixedLine1_value, "FixedLine1", 97, 28, INTEGERS[7], new Short(tabIndex++), 228 747 }); 748 749 btnPreview = insertButton("btnPreview", BTNPREVIEW_ACTION_PERFORMED, 750 PROPNAMES_BUTTON, 751 new Object[] 752 { 753 INTEGER_14, HelpIds.getHelpIdString(HID7_BTN_PREVIEW), resources.resbtnPreview_value, "btnPreview", 103, 40, INTEGERS[7], new Short(tabIndex++), INTEGER_50 754 }); 755 756 lblCreateSite = insertFixedLine("lblCreateSite", 757 PROPNAMES_LBL, 758 new Object[] 759 { 760 INTEGERS[9], resources.reslblCreateSite_value, "lblCreateSite", 97, 56, INTEGERS[7], new Short(tabIndex++), 228 761 }); 762 763 chkLocalDir = insertCheckBox("chkLocalDir", CHKLOCALDIR_ITEM_CHANGED, 764 PROPNAMES_CHKBOX, 765 new Object[] 766 { 767 INTEGERS[8], HelpIds.getHelpIdString(HID7_CHK_PUBLISH_LOCAL), resources.reschkLocalDir_value, "chkLocalDir", 103, 68, new Short((short) 0), INTEGERS[7], new Short(tabIndex++), 215 768 }); 769 txtLocalDir = insertTextField("txtLocalDir", null, 770 PROPNAMES_TXT, 771 new Object[] 772 { 773 INTEGER_12, HelpIds.getHelpIdString(HID7_TXT_LOCAL), "txtLocalDir", 113, 78, INTEGERS[7], new Short(tabIndex++), 190 774 }); 775 btnLocalDir = insertButton("btnLocalDir", BTNLOCALDIR_ACTION_PERFORMED, 776 PROPNAMES_BUTTON, 777 new Object[] 778 { 779 INTEGER_14, HelpIds.getHelpIdString(HID7_BTN_LOCAL), resources.resbtnLocalDir_value, "btnLocalDir", 308, 77, INTEGERS[7], new Short(tabIndex++), INTEGER_16 780 }); 781 782 chkZip = insertCheckBox("chkZip", null, 783 PROPNAMES_CHKBOX, 784 new Object[] 785 { 786 INTEGERS[9], HelpIds.getHelpIdString(HID7_CHK_PUBLISH_ZIP), resources.reschkZip_value, "chkZip", 103, 96, new Short((short) 0), INTEGERS[7], new Short(tabIndex++), 215 787 }); 788 txtZip = insertTextField("txtZip", null, 789 PROPNAMES_TXT, 790 new Object[] 791 { 792 INTEGER_12, HelpIds.getHelpIdString(HID7_TXT_ZIP), "txtZip", 113, 108, INTEGERS[7], new Short(tabIndex++), 190 793 }); 794 btnZip = insertButton("btnZip", BTNZIP_ACTION_PERFORMED, 795 PROPNAMES_BUTTON, 796 new Object[] 797 { 798 INTEGER_14, HelpIds.getHelpIdString(HID7_BTN_ZIP), resources.resbtnZip_value, "btnZip", 308, 107, INTEGERS[7], new Short(tabIndex++), INTEGER_16 799 }); 800 801 chkFTP = insertCheckBox("chkFTP", null, 802 PROPNAMES_CHKBOX, 803 new Object[] 804 { 805 INTEGERS[8], HelpIds.getHelpIdString(HID7_CHK_PUBLISH_FTP), resources.reschkFTP_value, "chkFTP", 103, 124, new Short((short) 0), INTEGERS[7], new Short(tabIndex++), 215 806 }); 807 808 Integer FTP_STEP = disableFTP ? 99 : INTEGERS[7]; 809 810 lblFTP = insertLabel("lblFTP", 811 new String[] 812 { 813 PropertyNames.PROPERTY_BORDER, PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 814 }, 815 new Object[] 816 { 817 new Short((short) 1), INTEGER_12, "txtFTP", 113, 134, FTP_STEP, new Short(tabIndex++), 156 818 }); 819 820 btnFTP = insertButton("btnFTP", BTNFTP_ACTION_PERFORMED, 821 PROPNAMES_BUTTON, 822 new Object[] 823 { 824 INTEGER_14, HelpIds.getHelpIdString(HID7_BTN_FTP), resources.resbtnFTP_value, "btnFTP", 274, 133, FTP_STEP, new Short(tabIndex++), INTEGER_50 825 }); 826 827 if (disableFTP) 828 { 829 830 insertImage("imgFTPDisabled", 831 new String[] 832 { 833 "BackgroundColor", PropertyNames.PROPERTY_BORDER, PropertyNames.PROPERTY_ENABLED, PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_IMAGEURL, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, "ScaleImage", PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 834 }, 835 new Object[] 836 { 837 new Integer(-1), new Short((short) 0), Boolean.FALSE, 10, exclamationURL, "imgFTPDisabled", 115, 135, Boolean.FALSE, INTEGERS[7], new Short(tabIndex++), 8 838 }); 839 insertLabel("lblFTPDisabled", 840 new String[] 841 { 842 "BackgroundColor", PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_MULTILINE, PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 843 }, 844 new Object[] 845 { 846 new Integer(-1), INTEGER_8, resources.reslblFTPDisabled, Boolean.TRUE, "lblFTPDisabled", 125, 136, INTEGERS[7], new Short(tabIndex++), 226 847 }); 848 //FTP_STEP = 99; 849 } 850 //else 851 852 lnSaveSetting = insertFixedLine("lnSaveSetting", 853 PROPNAMES_TXT, 854 new Object[] 855 { 856 INTEGERS[2], PropertyNames.EMPTY_STRING, "lnSaveSetting", 97, 151, INTEGERS[7], new Short(tabIndex++), 228 857 }); 858 chkSaveSettings = insertCheckBox("chkSaveSettings", CHKSAVESETTINGS_ITEM_CHANGED, 859 PROPNAMES_CHKBOX, 860 new Object[] 861 { 862 INTEGERS[9], HelpIds.getHelpIdString(HID7_CHK_SAVE), resources.reschkSaveSettings_value, "chkSaveSettings", 97, 157, new Short((short) 1), INTEGERS[7], new Short(tabIndex++), 215 863 }); 864 lblSaveSettings = insertLabel("lblSaveSettings", 865 PROPNAMES_LBL, 866 new Object[] 867 { 868 INTEGERS[8], resources.reslblSaveSettings_value, "lblSaveSettings", 107, 169, INTEGERS[7], new Short(tabIndex++), 45 869 }); 870 cbSaveSettings = insertComboBox("txtSaveSettings", TXTSAVESETTINGS_TEXT_CHANGED, TXTSAVESETTINGS_TEXT_CHANGED, TXTSAVESETTINGS_TEXT_CHANGED, 871 new String[] 872 { 873 "Autocomplete", "Dropdown", PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, "LineCount", PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH 874 }, 875 new Object[] 876 { 877 Boolean.TRUE, Boolean.TRUE, INTEGER_12, HelpIds.getHelpIdString(HID7_TXT_SAVE), new Short((short) 14), "txtSaveSettings", 179, 167, INTEGERS[7], new Short(tabIndex++), 145 878 }); 879 880 } 881 XControl[] imgIconsPrev = new XControl[8]; 882 ImageList ilLayouts; 883 884 /** 885 * builds the layouts image list. 886 */ 887 public void buildStepX() 888 { 889 ilLayouts = new ImageList(); 890 ilLayouts.setPos(new Size(97, 38)); 891 ilLayouts.setImageSize(new Size(34, 30)); 892 ilLayouts.setCols(5); 893 ilLayouts.setRows(3); 894 ilLayouts.setStep(new Short((short) 3)); 895 ilLayouts.setShowButtons(false); 896 ilLayouts.setRenderer(new LayoutRenderer()); 897 ilLayouts.scaleImages = Boolean.FALSE; 898 ilLayouts.tabIndex = 31; 899 ilLayouts.helpURL = HID3_IL_LAYOUTS_IMG1; 900 901 /*for (int i = 0; i<8; i++) 902 imgIconsPrev[i] = insertImage("imgIconPrev" + i, 903 new String[] { "BackgroundColor",PropertyNames.PROPERTY_BORDER,PropertyNames.PROPERTY_HEIGHT,PropertyNames.PROPERTY_IMAGEURL, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, "ScaleImage", PropertyNames.PROPERTY_STEP, "Tabstop", PropertyNames.PROPERTY_WIDTH}, 904 new Object[] { new Integer(-1), new Short((short)0),14,"file:///c:/bludisk.gif", new Integer(97 + i * 20 + 7 ),147,Boolean.FALSE,INTEGERS[5],Boolean.FALSE,14}); 905 */ 906 } 907 908 /** 909 * renders the images and titles of 910 * the layouts 911 * @author rpiterman 912 913 */ 914 private class LayoutRenderer implements ImageList.IImageRenderer 915 { 916 917 public Object[] getImageUrls(Object listItem) 918 { 919 Object[] oResIds = null; 920 if (listItem != null) 921 { 922 oResIds = ((CGLayout) listItem).getImageUrls(); 923 } 924 return oResIds; 925 } 926 927 public String render(Object listItem) 928 { 929 return listItem == null ? PropertyNames.EMPTY_STRING : ((CGLayout) listItem).cp_Name; 930 } 931 } 932 } 933