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