home *** CD-ROM | disk | FTP | other *** search
/ CD Ware Multimedia 1999 March / CDW0399.iso / Demos / HomePage / data1.cab / Program_Executable_Files / Homepage.exe / 1009 / 156 < prev    next >
Encoding:
Text File  |  1997-12-10  |  48.7 KB  |  1,338 lines

  1. // -----
  2. // VDL156.txt  (VDL/HPrefDlg.txt)
  3. // Copyright 1996 Claris
  4. // -----
  5. // Preferences
  6. #include "StdVPref.txt"
  7. /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
  8. /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
  9. /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
  10. //This section contains all localizable string constants for this VDL program. Be sure to 
  11. //include the backslash character at the end of each line of a multi-line string, except for the last line.
  12. //You may also flatten multiline constants into a single line, if you prefer
  13. #define kLit1 "Preview Browser One:"
  14. #define kLit2 "The browser used by the Preview in Browser command."
  15. // #define kLit3 "Set Preview Browser:"
  16. #define kLit4 "&Browse..."     //Button label to set 1st browser
  17. #define kLit4_0 "B&rowse..."  // Button label to set 2nd browser
  18. #define kLit4_1 "&Clear"   
  19. #define kLit4_2 "C&lear"
  20. #define kLit5   "Change the browser used by the Preview in Browser command."
  21. #define kLit5_0 "Change the second browser used by the Preview in Browser command."
  22. #define kLit5_1 "Clear the first browser selection."
  23. #define kLit5_2 "Clear the second browser selection."
  24. #define kUseInternetConfigLabel "Use Internet Config."
  25. #define kUseInternetConfigHelp  "If checked, a browser specified in InternetConfig will be used, Set... command will open InternetConfig."
  26. #define kLit6 "Show Basic Tool Bar in Document Windows."
  27. #define kLit7 "If checked, a tool bar will be displayed at the top of each"\
  28.                   " HTML document and library window."
  29.                 
  30. #define kLit8 "Show Style Tool Bar in Document Windows."
  31. #define kLit9 "If checked, a style tool bar will be displayed at the top of"\
  32.                   " each HTML document and library window."
  33.                 
  34. #define kLit10 "Never"
  35. #define kLit11 "In Document Windows"
  36. #define kLit12 "In the Application Window"
  37. #define kLit13 "Show &Style Tool Bars:"
  38. #define kLit14 "Auto-save documents every"
  39. #define kLit15 "If checked, Claris Home Page will automatically save changed documents."
  40. #define kLit16 " minutes."
  41. #define kLit17 "Open &Documents in:"
  42. #define kLit18 "Specifies the default editing mode to use when opening HTML"\
  43.                     " documents exept library and frame pages."
  44. #define kLit19 "Edit Page Mode"
  45. #define kLit20 "Preview Page Mode"
  46. #define kLit21 "Edit HTML Source Mode"
  47. #define kLit22 "At Startu&p:"
  48. #define kLit23 "Specifies an action to be performed automatically if Claris Home"\
  49.                     " Page is started without specifying any documents to open."
  50. #define kLit24 "Create New Document"
  51. #define kLit24a "Display New Dialog"
  52. #define kLit25 "Display Open Dialog"
  53. #define kLit26 "Do Nothing"
  54. #define kLit27 "Default HTML File Suffix:"
  55. #define kLit28 "Default HTML file &extension:"
  56. #if Platform_Mac
  57.     #define kLit29 "Specifies the default file name suffix for new HTML"\
  58.                         " files; should typically be ╥htm╙ or ╥html╙ (yielding"\
  59.                         " file names such as ╥mypage.htm╙ or ╥mypage.html╙)."
  60. #else
  61.     #define kLit29 "Specifies the default file name suffix for new HTML"\
  62.                         " files; should typically be \"htm\" or \"html\" (yielding"\
  63.                         " file names such as \"mypage.htm\" or \"mypage.html\")."
  64. #endif
  65.                             
  66. #define kLit30 "Specifies the default file extension for new HTML"\
  67.                     " files; should typically be \"htm\" or \"html\" (yielding"\
  68.                     " file names such as \"mypage.htm\" or \"mypage.html\")."
  69.                             
  70. #define kLit31 "&Auto-save documents every"
  71. #define kLit32 "&HTML Font:"
  72. #define kLit33 "Specifies the font in which HTML source is displayed."
  73. #define kLit34 "HTML &Size:"
  74. #define kLit35 "Specifies the text size in which HTML source is displayed."
  75. #define kLit36 "Ask for document &title when saving"
  76. #define kLit37 "If checked, Claris Home Page will ask for a document title "\
  77.                "when saving HTML documents that do not have a title specified."
  78. //Lit 38 through 43 unused
  79. #define kLit44 "&Header comment:"
  80. #define kLit45 "Specifies whether Claris Home Page should output a special"\
  81.                     " comment at the beginning of the HTML file."
  82. #define kLit46 "None"
  83. #define kLit47 "Identify as Claris Home Page file"
  84. #define kLit48 "Identify and time-stamp"
  85. #define kLit49 "&Line break format:"
  86. #define kLit50 "Specifies which convention Claris Home Page should follow for"\
  87.                     " indicating line breaks in an HTML file.  Does not affect the"\
  88.                     " appearance of the document in a browser."
  89. #define kLit51 "Macintosh (CR)"
  90. #define kLit52 "Windows (CRLF)"
  91. #define kLit53 "Unix (LF)"
  92. #define kLit54 "&Paragraph alignment uses:"
  93. #define kLit55 "Specifies whether Claris Home Page should indicate centered"\
  94.                    " text using the <CENTER> tag or the ALIGN=CENTER parameter"\
  95.                    " to other tags (such as <P>).  Some browsers accept one"\
  96.                    " form but not the other."
  97.                           
  98. #define kLit56 "<CENTER> tag"
  99. #define kLit57 "ALIGN parameter"
  100. //UNUSED kLit58 
  101. #define kLit59 "&Generate </P> tags"
  102. #define kLit60 "Specifies whether Claris Home Page should output a </P> tag to"\
  103.                 " balance every <P> tag.  Should normally be enabled, but may"\
  104.                 " cause problems with some very old browsers."
  105.                 
  106. //UNUSED kLit61 
  107. #define kLit62 "&Use absolute pathnames"
  108. #define kLit63 "Specifies whether Claris Home Page should output links to local"\
  109.                 " files using relative or absolute pathnames.  Relative pathnames"\
  110.                 " should always be used for files which will be transferred to a"\
  111.                 " separate HTTP server."
  112.                 
  113. //UNUSED kLit64 
  114. #define kLit65 "Generate &X-CLARIS tags"
  115. #define kLit66 "Claris Home Page defines several custom tags (beginning with \"X-CLARIS\")"\
  116.                 " for saving auxiliary information such as window position and size."\
  117.                 "  This option specifies whether these additional tags should be"\
  118.                 " saved in HTML files.  It has no effect on the appearance of the"\
  119.                 " document in a browser."
  120.                 
  121. #define kLit67 "Make &interlaced GIFs"
  122. #define kLit68 "Specifies whether converted images are created in interlaced format."
  123. #define kLit69 "Prompt for File &Name/Location"
  124. #define kLit70 "If checked, Claris Home Page will ask for a file name"\
  125.                     " when converting non-GIF/JPEG files into GIF format."\
  126.                     "  Otherwise, Claris Home Page will assign a file name automatically."
  127.                       
  128. #define kLit71 "Display images in &Edit Page mode"
  129. #define kLit72 "If checked, Claris Home Page will display images in both Edit Page"\
  130.                         " and Preview Page modes; otherwise, images will only be"\
  131.                         " displayed in Preview Page mode (allows for faster editing)."
  132.                         
  133. #define kLit73 "&Faster image display"
  134. #define kLit74 "If checked, causes Claris Home Page to use a faster method for"\
  135.                      " displaying images.  Some video drivers do not support this method,"\
  136.                      " and will cause the images to be displayed incorrectly in Claris Home Page."
  137.                      
  138. #define kLit75 "Convert and save automatically to folder:"
  139. #define kLit76 "&Convert and save automatically to directory:"
  140. #define kLit77 "The folder where converted image files are saved."
  141. #define kLit78 "The directory where converted image files are saved."
  142. #define kLit79 "Set Default Converted Images Folder:"
  143. #define kLit80 "Set Default Converted Images Directory:"
  144. #define kLit81 "Browse..."
  145. #define kLit82win "Change the directory where converted image files are saved."
  146. #define kLit82mac "Change the folder where converted image files are saved."
  147. #define kLit83win "If checked, converted images are automatically saved to the directory selected below"
  148. #define kLit83mac "If checked, converted images are automatically saved to the folder selected below"
  149. #define kLit84 "Controls which category of Preferences data is displayed."
  150. #define kLit85 "General"
  151. #define kLit86 "HTML Source"   // (goes on the Tab)
  152. #define kLit87 "HTML View"
  153. #define kLit88 "Images"
  154. #define kLit89 "Browser Preview"
  155. #define kLit90 "Show &Basic Tool Bars:"
  156. #define kLit91 "Controls whether and where the Basic Tool Bar is displayed."
  157. #define kLit92 "Controls whether and where the Style Tool Bar is displayed."
  158. #define kLit93  "Enable &Inline Input"
  159. #define kLit94  "Enables inline input of Kanji text.  If disabled, " \
  160.                      "Kanji text is entered using a separate window."
  161. #define kLit95  "Default Document &Encoding:"
  162. #define kLit96  "The character encoding scheme to be used for new " \
  163.                        "documents.  Use Western for English and other Western " \
  164.                      "European languages."
  165. #define kLit97  "Western (Latin1)"
  166. #define kLit98  "Japanese (JIS)"
  167. #define kLit99  "Japanese (Shift-JIS)"
  168. #define kLit100 "Japanese (EUC)"
  169. #define kLit101 "Body Text"
  170. #define kLit102 "Comments"
  171. #define kLit103 "Begin Tags"
  172. #define kLit104 "End Tags"
  173. #define kLit105 "Parameter Names"
  174. #define kLit106 "Parameter Values"
  175. #define kLit107 "Special Characters"
  176. #define kLit108 "&Use Syntax Coloring"
  177. #define kLit109 "HTML &Element:"
  178. #define kLit110 "  &Color:"  //HotKey must match underlined character in this string
  179. #define hotKey110 HotKey = "C"
  180. #define kLit111 "&Word Wrap"
  181. #define kLit112 "&Display background images in Edit Page mode"
  182. #define kLit113 "If checked, Claris Home Page will display background images in"\
  183.                      " both Edit Page and Preview Page modes; otherwise, they will"\
  184.                      " only be displayed in Preview Page mode (allows for faster"\
  185.                      " editing)."
  186. #define kLit114 "Auto-&save before running commands"
  187. #define kLit115 "If checked, changed documents will be saved automatically before previewing, consolidating,"\
  188.                 " verifying links or uploading files.  If not checked, Claris Home Page will prompt to save before running these commands."
  189. #define kLit116 "Fonts"
  190. #define kLit117 "&Proportional Font:"
  191. #define kLit118 "The font used for proportionally spaced text."
  192. #define kLit119 "WYSIWYG Base Size:"
  193. #define kLit120 "The font size used for proportionally spaced text."
  194. #define kLit121 "&Monospace Font:"
  195. #define kLit122 "The font used for monospaced (e.g. Preformatted or Teletype) text."
  196. #define kLit123 "Monospace Base Size:"
  197. #define kLit124 "The font size used for monospaced (e.g. Preformatted or Teletype) text."
  198.                      
  199. #define kLit125 "Kanji Proportional Font:"
  200. #define kLit126 "Kanji Proportional Size:"
  201. #define kLit127 "Kanji Monospace Font:"
  202. #define kLit128 "Kanji Monospace Size:"
  203. #define kLit129 "Image &Map Format:"
  204. #define kLit130 "Specifies the format used when Claris Home Page outputs"\
  205.                      " server-side image map files."
  206. #define kLit131 "Use &Defaults"
  207. #define kLit132 "Restore all HTML View settings to their default values."
  208. #define kLit133 "The fonts selected here determine how Claris Home Page " \
  209.                      "displays HTML documents in Edit Page and Preview Page modes.  " \
  210.                      "This does not affect the appearance of your documents in a " \
  211.                      "browser."
  212. #define kLit134 " &Style:"
  213. #define kLit135 "Show &line breaks"
  214. #define kLit136 "If checked, a visible symbol will be shown for line breaks"\
  215.                      " when in Edit Page mode."
  216. #define kLit137 "Amount of time after the first change is made before the"\
  217.                      " document will be saved."
  218. #define kLit138 "&Warn about unsafe file names when naming files"
  219. #define kLit139 "Run &Java applets in Preview Page mode"
  220. #define kLit200 "If checked, then long lines of HTML source code will be"\
  221.                    " wrapped onto several lines on the screen."
  222. #define kLit201 "If checked, then HTML source code will be color-coded"\
  223.                      " according to the settings in this dialog."
  224. #define kLit202 "Controls which type of HTML code to specify the color and"\
  225.                      " style for."
  226. #define kLit203 "Specifies the color or style used to display body text"\
  227.                      " in HTML source code.  Only takes effect if \"Syntax Coloring\""\
  228.                      " is checked."
  229. #define kLit204 "Specifies the color or style used to display beginning tags"\
  230.                      " (<TAG>) in HTML source code.  Only takes effect if \"Syntax Coloring\""\
  231.                      " is checked."
  232. #define kLit205 "Specifies the color or style used to display ending tags"\
  233.                      " (</TAG>) in HTML source code.  Only takes effect if \"Syntax Coloring\""\
  234.                      " is checked."
  235. #define kLit206 "Specifies the color or style used to display parameter names"\
  236.                      " in HTML source code.  Only takes effect if \"Syntax Coloring\""\
  237.                      " is checked."
  238. #define kLit207 "Specifies the color or style used to display parameter values"\
  239.                      " in HTML source code.  Only takes effect if \"Syntax Coloring\""\
  240.                      " is checked."
  241. #define kLit208 "Specifies the color or style used to display entities (special"\
  242.                      " characters such as &) in HTML source code.  Only takes "\
  243.                      " effect if \"Syntax Coloring\" is checked."
  244. #define kLit209 "Specifies the color or style used to display comments"\
  245.                      " (<!--comment-->) in HTML source code.  Only takes effect if \"Syntax Coloring\""\
  246.                      " is checked."
  247. #define kLit210 "If checked, Claris Home Page will warn you if a file name does not conform to web standards, and give you "\
  248.                 "an opportunity to save the file under a different name."
  249. #define kLit230 "If checked, Java applets will run when the document is viewed in Preview Page mode.  If "\
  250.                      "not checked, Java applets will appear as placeholders."
  251. // For the Style Popup menu, in HTML View tab:
  252. #define kLitPlain        "Plain"
  253. #define kLitBold        "Bold"        
  254. #define kLitItalic        "Italic"
  255. #define kLitUnderline    "Underline"
  256.     // the following Style Popup menu options are used only on the Mac, (if at all)
  257. #define kLitOutline     "Outline"
  258. #define kLitShadow      "Shadow"
  259. #define kLitCondense    "Condense"
  260. #define kLitExtend      "Extend"
  261. // Color palette choices appear in General Tab.
  262. #define kLit211 "&Color Palette:"
  263. #define kLit212 "Specifies which size of color palette to use wherever"\
  264.                     " color choices are made.  The system color picker will"\
  265.                     " always be available too."
  266. #define kLit213 "Web Palette - 216 colors"
  267. #define kLit214 "Rainbow Palette - 81 Colors"
  268. #define kLit215 "Default Palette - 9 Colors"
  269. #define kLit216 "Default Text - 9 Colors"
  270. // The following appear in the Color Palette. "Other..." causes system color picker to appear
  271. // "Default" is used to mean "Default color"
  272. #define kLit217 "Other..."
  273. #define kLit218 "Default"
  274. // eri 7/30/97 : added kLit219 to kLit222 for font setting in preference for Japanese version.
  275. #define kLit219 "Language:"
  276. #define kLit220 "Choose Language"
  277. #define kLit221 "Japanese"
  278. #define kLit222 "Roman"
  279. //Note: the file name will probably not change, but the name of the "Help" folder
  280. //probably will. Note that the translated name MUST be 8 chars or less.
  281. #define kHelpURL "Help/Prefs.htm"
  282. #define kHelpTitle "&Help"
  283. //The 'secondary' browser is active.
  284. #define kSecondBrowserLit         "Preview Browser Two:"
  285. #define kSecondBrowserHelp         "The second browser used by the Preview in Browser command"
  286. // The following are the labels that appear on frames:
  287. #define kLitAppearance  "Appearance"  
  288. #define kLitSaving      "Saving"
  289. #define kLitDisplay     "Display"
  290. #define kLitImporting   "Importing"
  291. #define kLitPreview     "Preview"
  292. //Localized Fonts
  293. #if Platform_Mac
  294.     #define kHelpFont         Font = {Geneva, 10, {Plain}}
  295.     // kEditFieldFont is used where user types into edit fields
  296.     #define kEditFieldFont    Font = {Geneva, 10, {Plain}}
  297.     #define kControlFont     Font = {Geneva, 10, {Plain}}
  298.     #define kBoldFont       Font = {Geneva, 10, {Bold}}
  299.     // Use LabelFonts on controls that have both: text for the label, and text inside the control. 
  300.     #define kLabelBoldFont  LabelFont = {Geneva, 10, {Bold}}
  301.     #define kLabelPlainFont  LabelFont = {Geneva, 10, {Plain}}
  302.     #define kTabLabelFont         {Geneva, 10, {Plain}}    
  303. #else
  304. //the dialog pixel thing is for problems with Large font setting
  305. #if Dialog_Pixels == 100
  306.     #define kHelpFont         Font = {"MS Sans Serif", 8, {Plain}}
  307. #else
  308.     #define kHelpFont         Font = {"MS Sans Serif", 6, {Plain}}
  309. #endif
  310.     // kEditFieldFont is used where user types into edit fields
  311.     #define kEditFieldFont    Font = {"MS Sans Serif", 8, {Plain}}
  312.     #define kControlFont     Font = SystemFont
  313.     #define kBoldFont       Font = SystemFont
  314.     // Use LabelFonts on controls that have both: text for the label, and text inside the control. 
  315.     #define kLabelBoldFont  LabelFont = SystemFont
  316.     #define kLabelPlainFont  LabelFont = SystemFont
  317.    #define kTabLabelFont         SystemFont
  318. #endif
  319. #if Platform_Mac
  320.     #define kSizePopupWidth 50
  321. #else
  322.     #define kSizePopupWidth 40
  323. #endif
  324. /************************** LOCALIZED STRING CONSTANTS END **************************************/
  325. /************************** LOCALIZED STRING CONSTANTS END **************************************/
  326. /************************** LOCALIZED STRING CONSTANTS END **************************************/
  327. /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
  328. /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
  329. /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
  330. //This section contains integer constants that are used to format this VDL program.
  331. //These are localizable - they only need to be changed if the localized strings 
  332. //are sufficiently longer than the US strings. Localize the strings first, then the constants.
  333. #if Platform_Mac
  334.     //Main constant defining the width of the dialog
  335.     #define kMainDialogWidth     480
  336.     
  337.     //Left margin of the dialog, inside the frame.
  338.     #define kPrefLeftMargin     5
  339.     #define kPrefTopMargin         5
  340.     #define kPrefRightMargin   5
  341.     #define kPrefBottomMargin  5
  342.     
  343.     #define  kCheckBoxHeight      Height = 18
  344.     //Height of the main pane of the prefs dialog. THIS CONTROLS THE HEIGHT OF THE DIALOG (Mac). Doesn't prevent it from going bigger (which is good.)
  345.     #define kPrefsListHeight     250
  346.     //Height of the help view at the bottom of the window
  347.     #define kHelpViewHeight     50
  348.     
  349.     //Width of the popup that controls the mode of the dialog (General, Images, HTML Output, etc)
  350.     #define kModePopupWidth        150
  351.     
  352.     /********* GENERAL PANE (mac) ***************/
  353.     //Width of the text in front of popup menus
  354.     #define kGeneralLabelWidth 187
  355.         
  356.     //Width of all the popup menu views (just the popup part)
  357.     #define kPopupMenuWidth     390
  358.     
  359.     //Width of the text "Auto-save documents every"
  360.     #define kAutoSaveTextWidth    209 
  361.     
  362.     //Width of the edit text (number of minutes)in the Auto-save line
  363.     #define kAutoSaveEntryTextWidth    30
  364.     #define SpacerToLineUpCheckboxes  Spacer(Height=0, Width=30);
  365.     
  366.     /********** HTML OUTPUT PANE(mac)  **********/
  367.     //Width of the labels for the three popup menus
  368.     #define kHTMLOutputLabelWidth 187
  369.     
  370.     //Width of the popup menu that controls the header comment
  371.     #define kHeaderCommentPopupWidth     400
  372.     
  373.     //Width of the popup menu that controls the line break format
  374.     #define kLineBreakFormatPopupWidth     330
  375.     
  376.     //Width of the popup menu that controls the paragraph alignment tag
  377.     #define kParagraphAlignmentWidth     330
  378.     //Widths of the checkboxes
  379.     #define kCheckBoxWidths                    200
  380.     /********** HTML VIEW PANE (mac) ************/
  381.     //Width of the labels on the popup menus
  382.     #define kEditLabelWidth                    127
  383.     
  384.     //Width of the menus (popups) themselves
  385.     #define kHTMLFontMenuWidth          200
  386.     #define kEditMenuWidth                300
  387.     #define kHTMLCodeMenuWidth          360
  388.     #define kStylePopupWidth            300
  389.     // kViewLabelWidth determines space alloted for the label in front of popups.
  390.     #define kViewLabelWidth             200
  391.     #define    kHTMLFontLabelWidth            65
  392.     
  393.     // Height of the sample HTML code.
  394.     #define kHTMLSampleHeight                75
  395.     //PrefColorControl uses these values. Determines size of the color picker icon.  Width=22 Height=17 works great on Windows.
  396.     #define kColorPickerWidth    22
  397.     #define kColorPickerHeight    17
  398.     
  399.     /*********** FONTS PANE (mac) ********************/
  400.     
  401.     //Sizes of the labels and popups in the 'font' pane
  402.     #define     kWYSIWYGLabelWidth            170
  403.     #define     kWYSIWYGMenuWidth            310
  404.    /*********** IMAGES PANE (Mac)******************/
  405.     #define SpaceBeforeChkbox    Spacer(Height=0,Width=15);
  406.     #define kImageMapFormatLabelWidth        112
  407.     #define kImageMapMenuWidth                173
  408.         
  409. #else
  410.     //else Platform_Win
  411.     //Main constant defining the width of the dialog
  412.     #define kMainDialogWidth 435
  413.         
  414.     #define kPrefLeftMargin 10
  415.     #define kPrefTopMargin 10
  416.     #define kPrefRightMargin   10
  417.     #define kPrefBottomMargin  10
  418.     //Height of the main pane of the prefs dialog. 
  419.     //THIS CONTROLS THE HEIGHT OF THE DIALOG (in Windows). Doesn't prevent it from going bigger (which is good - won't truncate localized versions.)
  420.     // note that 250-ish is near the maximum that a 640x480 display can take.
  421.     #define kPrefsListHeight 250
  422.     //Height of the help view at the bottom of the window
  423.     #define kHelpViewHeight     65
  424.     //Not used on windows, -1 means "Default"
  425.     #define  kCheckBoxHeight      Height = -1
  426.     
  427.     /********* GENERAL PANE (win) ***************/
  428.     
  429.     //Width of the text in front of popup menus
  430.     #define kGeneralLabelWidth        160
  431.     //Width of all the popup menu views (just the popup part)
  432.     #if Dialog_Pixels == 100
  433.         #define kPopupMenuWidth         350
  434.     #else
  435.         #define kPopupMenuWidth            370
  436.     #endif
  437.     //Width of the text "Auto-save documents every"
  438.     #define kAutoSaveTextWidth        220 
  439.     //Width of the edit text in the Auto-save line, for entering number of minutes.
  440.     #define kAutoSaveEntryTextWidth    30
  441.     #define SpacerToLineUpCheckboxes  Spacer(Height=0, Width=15);
  442.     
  443.     
  444.     /********** HTML OUTPUT PANE (Win)**********/
  445.     //Width of the labels for the three popup menus
  446.     #define kHTMLOutputLabelWidth 220
  447.     
  448.     
  449.     #if Dialog_Pixels==100
  450.         //Width of the popup menu that controls the header comment
  451.         #define kHeaderCommentPopupWidth     420
  452.         
  453.         //Width of the popup menu that controls the line break format
  454.         #define kLineBreakFormatPopupWidth     420
  455.         
  456.         //Width of the popup menu that controls the paragraph alignment tag
  457.         #define kParagraphAlignmentWidth     420    
  458.     #else
  459.         //Width of the popup menu that controls the header comment
  460.         #define kHeaderCommentPopupWidth     460
  461.     
  462.         //Width of the popup menu that controls the line break format
  463.         #define kLineBreakFormatPopupWidth     460
  464.         
  465.         //Width of the popup menu that controls the paragraph alignment tag
  466.         #define kParagraphAlignmentWidth     460    
  467.     #endif
  468.  
  469.     //Widths of the checkboxes
  470.     #define kCheckBoxWidths                    200
  471.     
  472.     
  473.     /********** HTML VIEW PANE  (Win) ************/
  474.     //Width of the labels on the popup menus
  475.     #define kEditLabelWidth                    127
  476.     
  477.     //Width of the menus themselves
  478.     #define kEditMenuWidth                260
  479.     #if Dialog_Pixels == 100
  480.         #define kHTMLFontMenuWidth          200
  481.     #else
  482.         #define kHTMLFontMenuWidth                210
  483.     #endif
  484.     #define kHTMLCodeMenuWidth          265    
  485.     #define kStylePopupWidth            200
  486.     // kViewLabelWidth determines space alloted for the label in front of popups.
  487.     #define kViewLabelWidth             100
  488.     #define    kHTMLFontLabelWidth            60
  489.     // Height of the sample HTML code.
  490.     #define kHTMLSampleHeight                90 //the max that works in all resolutions
  491.                                                //and both small and large font.  Large font can take up to 125.
  492.     //jeh PrefColorControl uses these values. Determines size of the color picker icon.  Width=22 Height=17 works great on Windows.
  493.     #define kColorPickerWidth    22
  494.     #define kColorPickerHeight    17
  495.     
  496.     /*********** FONTS PANE (Win)********************/
  497.     
  498.     //Sizes of the labels and popups in the 'font' pane
  499.     #define     kWYSIWYGLabelWidth            170
  500.     #if Dialog_Pixels == 100
  501.         #define     kWYSIWYGMenuWidth            310
  502.     #else
  503.         #define kWYSIWYGMenuWidth            340
  504.     #endif
  505.     /*********** IMAGES PANE (Win)******************/
  506.     #define SpaceBeforeChkbox    Spacer(Height=0,Width=15);
  507.     #define kImageMapFormatLabelWidth    100
  508.     #define kImageMapMenuWidth            200
  509.  
  510. #endif
  511. // For both platforms:
  512. #define SpaceAfterFrameLabel Spacer(Height=4, Width=0);
  513. /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
  514. /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
  515. /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
  516. //No further localizable data past this point
  517. /************************** END LOCALIZABLE DATA ***************************************************/
  518. /************************** END LOCALIZABLE DATA ***************************************************/
  519. /************************** END LOCALIZABLE DATA ***************************************************/
  520. //#define CUSTOMIZABLE_TOOLBARS 0
  521. //#ifndef CUSTOMIZABLE_TOOLBARS
  522. //    #if Platform_Mac
  523. //    #define CUSTOMIZABLE_TOOLBARS 1
  524. //    #else
  525. //    #define CUSTOMIZABLE_TOOLBARS 1
  526. //    #endif
  527. //#endif
  528. // "Browser Preview" Tab
  529. Define(BrowserPreview)
  530.     //Label(kLitPreview, Single, Width=UseParent, stdBackColor)
  531.     VList(TabDialogBack, Width = UseParent)
  532.         {
  533. // First browser
  534.         Spacer(Height = 20);
  535.         HList()
  536.             {
  537.             Margin(0, 2, 7, 0)
  538.             Spacer(Height=0,Width=10);
  539.                StaticText(kLit1, kBoldFont);    // "Preview Browser one:"
  540.                Spacer(Height=0,Width=5);
  541.             PushButton(kLit4, 4000, "SetBrowserAppProc", kControlFont, EH kLit5);       // Set button 1
  542.             Spacer(Height = 0, Width = 2);
  543.             PushButton(kLit4_1, 4000, "ClearBrowserAppProc", kControlFont, EH kLit5_1); // Clear button 1
  544.             Spacer(Width = 20);
  545.             #if Platform_Mac
  546.             Switch(internetConfigAvailable)
  547.                 {
  548.                 case 0:
  549.                     Spacer(Width = 0);
  550.                 case 1:
  551.                     TabDialog_CheckBox(kUseInternetConfigLabel, useInternetConfig, kBoldFont, EH kUseInternetConfigHelp, kCheckBoxHeight);
  552.                 }    
  553.             #endif //Platform_Mac
  554.             }
  555.         
  556.         Spacer(Height = 20);
  557.         Margin(12,4,0,8, Width = UseParent)
  558.             #if Platform_Mac
  559.                 Margin(4,4,4,4, Single, stdBackColor, Width = UseParent)  // using stdBackColor prevents static text
  560.                     StaticText(browserFilePath, Width = UseParent, kControlFont, EH kLit2);  // from looking like edit field.
  561.             #else
  562.                 Margin(2,2,2,2, Single, stdBackColor, Width = UseParent)
  563.                     StaticText(browserFilePath, Width = UseParent, EH kLit2);
  564.             #endif
  565.                 
  566. // Second browser
  567.         Spacer(Height = 20);
  568.         HList()
  569.             {
  570.             Margin(0, 2, 7, 0)
  571.             Spacer(Height=0,Width=10);
  572.                 StaticText(kSecondBrowserLit, kBoldFont); //"Preview Browser two:"
  573.                Spacer(Height=0,Width=5);
  574.             PushButton(kLit4_0, 4000, "SetBrowser2AppProc", kControlFont, EH kLit5_0);              // Set button 2
  575.             Spacer(Height = 0, Width = 2);
  576.             PushButton(kLit4_2, 4000, "ClearBrowser2AppProc", kControlFont, EH kLit5_2);            // Clear button 2
  577.             }
  578.         
  579.         Spacer(Height = 20);
  580.         Margin(12,4,0,8, Width = UseParent)
  581.             #if Platform_Mac
  582.                 Margin(4,4,4,4, Single, stdBackColor, Width = UseParent)
  583.                     StaticText(browser2FilePath, Width = UseParent, kControlFont, EH kSecondBrowserHelp);
  584.             #else
  585.                 Margin(2,2,2,2, Single, stdBackColor, Width = UseParent)
  586.                     StaticText(browser2FilePath, Width = UseParent, EH kSecondBrowserHelp);
  587.             #endif
  588.                 
  589.         Spacer(Height = 9, Width = 0);
  590.         }
  591. Define(General)
  592.     VList(TabDialogBack, Width = UseParent)
  593.     {
  594.         //J-version options go above Appearance Frame. 
  595.        //Note: if you move these items, be sure to check the font of the label and the control.
  596.        // If the item is outside of a frame, use bold for the label, and plain for the control.
  597.       //  If the item is inside a frame, use plain font for both the label and the control.
  598.         #ifdef Kanji_Support
  599.             // KANJI:Default Document Encoding choices
  600.             IntegerPopup( kLit95, kGeneralLabelWidth, defaultEncoding,
  601.                               Width=kPopupMenuWidth, Alignment = Right, kLabelBoldFont, kControlFont,
  602.                               EH kLit96 )
  603.             {
  604.                 IntItem(kLit97,  0);
  605.                 IntItem(kLit98,  1);
  606.                 IntItem(kLit99,  2);
  607.                 IntItem(kLit100, 3);
  608.             };
  609.             //KANJI: "Enable Inline Input" checkbox
  610.             HList()
  611.             {
  612.                 SpacerToLineUpCheckboxes
  613.                 TabDialog_CheckBox(kLit93, inlineInput, EH kLit94, kCheckBoxHeight);
  614.                 
  615.             }
  616.             Spacer(Height = 4, Width = 0);
  617.         #endif // Kanji_Support
  618.         // APPEARANCE FRAME
  619.         Label(kLitAppearance, Single, Width=UseParent, kBoldFont)
  620.         VList()
  621.         {
  622.             // Color palette choices:
  623.             SpaceAfterFrameLabel
  624.             IntegerPopup( kLit211, kGeneralLabelWidth, colorPalette, Width=kPopupMenuWidth, Alignment = Right,
  625.                               kLabelPlainFont, kControlFont, EH kLit212 )
  626.             {
  627.                 IntItem(kLit213, 0);
  628.                 IntItem(kLit214, 1);
  629.                 IntItem(kLit215, 2);
  630.                 IntItem(kLit216, 3);
  631.             };
  632.             
  633.             // "Open Documents in: (choices)
  634.             Spacer(Height=3, Width=0);
  635.             IntegerPopup( kLit17, kGeneralLabelWidth, defaultDocMode, Width=kPopupMenuWidth,
  636.                               Alignment = Right, kLabelPlainFont, kControlFont,
  637.                               EH kLit18 )
  638.             {
  639.                 IntItem(kLit19, 0);
  640.                 IntItem(kLit20, 1);
  641.                 #if !LITE_VERSION            
  642.                 IntItem(kLit21, 2);
  643.                 #endif
  644.             };
  645.             // "At Startup: (choices)
  646.             Spacer(Height=3, Width=0);
  647.             IntegerPopup( kLit22, kGeneralLabelWidth, startupAction, Width=kPopupMenuWidth, 
  648.                                 Alignment = Right, kLabelPlainFont, kControlFont,
  649.                                 EH kLit23 )
  650.             {
  651.                 IntItem(kLit24, 0);
  652.                 IntItem(kLit24a,3); //"Open New Dialog"
  653.                 IntItem(kLit25, 1);
  654.                 IntItem(kLit26, 2);
  655.             };
  656.             HList()
  657.             {
  658.                 //Indent checkboxes to line up with the popup menu using this spacer.
  659.                 SpacerToLineUpCheckboxes
  660.                 VList()
  661.                 {
  662.                     //Show linebreaks checkbox
  663.                     TabDialog_CheckBox(kLit135, show_linebreaks, kControlFont, EH kLit136, kCheckBoxHeight);
  664.                     //@ykh 042897 Preview Applet pref checkbox
  665.                     #if Platform_Mac
  666.                     Spacer(Height=3, Width=0);
  667.                         Switch(vjaPreviewMode)
  668.                         {
  669.                             case 1:
  670.                                 TabDialog_CheckBox(kLit139, viewJavaApplets,  kControlFont, EH kLit230, kCheckBoxHeight);
  671.                             case 0:
  672.                                 TabDialog_CheckBox(kLit139, 9999, EH kLit230, kControlFont, kCheckBoxHeight); //ccDisabledCommandCode
  673.                             case 2:
  674.                                 Spacer(Height=0, Width=0);
  675.                         }    
  676.                     #endif
  677.                 } //Vlist of checkboxes
  678.             } //HList with spacer and vlist
  679.         
  680.         } //vlist in Appearance frame
  681.         
  682.         Spacer(Height=3, Width=0); 
  683.         // FILE SAVING FRAME
  684.         Label(kLitSaving, Single, Width=UseParent, kBoldFont)
  685.         VList()
  686.         {
  687.             Spacer(Height=3, Width =0);
  688.             // MAC:  Autosave documents every x minutes
  689.             #if Platform_Mac
  690.                 HList()
  691.                 {
  692.                     SpacerToLineUpCheckboxes
  693.                     TabDialog_CheckBox(kLit14, DoAutoSave,  kControlFont,
  694.                                     EH kLit15, kCheckBoxHeight );
  695.                     
  696.                     EditText( AutoSaveInterval_Mins, Unsigned(16), Width = kAutoSaveEntryTextWidth,
  697.                                  BackColor = White, kEditFieldFont, EH kLit137 );
  698.                     StaticText( kLit16,  kControlFont);
  699.                 }
  700.             #endif //Platform_Mac
  701.             // WINDOWS:  Autosave documents every x minutes
  702.             #if Platform_Win
  703.                 HList()
  704.                 {
  705.                     SpacerToLineUpCheckboxes
  706.                     TabDialog_CheckBox(kLit31, DoAutoSave, kControlFont, kCheckBoxHeight,
  707.                                         EH kLit15 );
  708.                     
  709.                     EditText(AutoSaveInterval_Mins, Unsigned(16), Width = kAutoSaveEntryTextWidth, 
  710.                                 BackColor=White, kEditFieldFont,  EH kLit137);
  711.                     StaticText( kLit16, kControlFont);
  712.                 }
  713.             #endif //Platform_Win
  714.             HList()
  715.             {  //"Auto-save before running commands"
  716.                 SpacerToLineUpCheckboxes
  717.                 TabDialog_CheckBox(kLit114, autoSaveBeforeCommands, kControlFont, EH kLit115, kCheckBoxHeight);
  718.             }
  719.             //"Ask for document title when saving"
  720.             HList()
  721.             {
  722.                 SpacerToLineUpCheckboxes
  723.                 TabDialog_CheckBox(kLit36, askForDocumentTitle,  kControlFont, EH kLit37, kCheckBoxHeight);
  724.             }
  725.             //"Warn about unsafe file names when naming files"
  726.             HList()
  727.             {
  728.                 SpacerToLineUpCheckboxes
  729.                 TabDialog_CheckBox(kLit138, forceWebSafeNaming,  kControlFont, EH kLit210, kCheckBoxHeight);
  730.             }
  731.             
  732.         }//ends Behavior frame VList
  733.     } // General
  734. // "SYNTAX_LINE": the StylePopup is different on both platforms.
  735. //jeh BEFORE/Mac: StylePopup(kLit134, kStylePopupWidth, nameStyle, kControlFont, EH helpText); Replaced with IntegerPopup to look like spec. investigate changing StylePopup function
  736. //Important note:  Values returned by the IntegerPopup must match the values of TextStyles enumerator in Core/Isol/CommonResourceTypes.h
  737. #if Platform_Mac
  738. #define SYNTAX_LINE(labelText, nameR, nameG, nameB, nameStyle, labelWidth, helpText) \
  739.     HList()\
  740.     {\
  741.         IntegerPopup( kLit134, kViewLabelWidth, nameStyle, Width=kStylePopupWidth, Alignment=Right, kLabelPlainFont, kControlFont, EH helpText )\
  742.         {\
  743.                 IntItem(kLitPlain,        0);\
  744.                 IntItem(kLitBold,        1);\
  745.                 IntItem(kLitItalic,        2);\
  746.                 IntItem(kLitUnderline,    4);\
  747.                 IntItem(kLitOutline,    8);\
  748.                 IntItem(kLitShadow,     16);\
  749.                 IntItem(kLitCondense,    32);\
  750.                 IntItem(kLitExtend,     64);\
  751.         };\
  752.         Spacer(Width = 4, Height = 0);\
  753.         VList()\
  754.         {\
  755.         Spacer(Width=0, Height = 2);\
  756.         StaticText(kLit110, kControlFont);\
  757.         }\
  758.         Spacer(Width=1, Height=0);\
  759.         GenericView("PrefColorControl", Red = nameR, Green = nameG, Blue = nameB, ExtraString = kLit217,  Width = kColorPickerWidth, Height = kColorPickerHeight, EH helpText);\
  760.     }
  761. #else
  762. #define SYNTAX_LINE(labelText, nameR, nameG, nameB, nameStyle, labelWidth, helpText) \
  763.         HList()\
  764.         {\
  765.             IntegerPopup( kLit134, kViewLabelWidth, nameStyle, Width=kStylePopupWidth, Alignment=Right, kLabelPlainFont, kControlFont, EH helpText )\
  766.             {\
  767.                     IntItem(kLitPlain,        0);\
  768.                     IntItem(kLitBold,        1);\
  769.                     IntItem(kLitItalic,        2);\
  770.                     IntItem(kLitUnderline,    4);\
  771.             };\
  772.             Spacer(Width=4);\
  773.             VList()\
  774.             {\
  775.                 Spacer(Height = 4, Width = 0);\
  776.                 StaticText(kLit110);\
  777.             }\
  778.                 Spacer(Width = 4, Height = 0);\
  779.                 VList()\
  780.                 {\
  781.                 Spacer(Height = 2, Width = 0);\
  782.                    GenericView("PrefColorControl", Red = nameR, Green = nameG, Blue = nameB, ExtraString = kLit217,  Width = kColorPickerWidth, Height = kColorPickerHeight, hotKey110, EH helpText);\
  783.                 }\
  784.         }
  785. #endif
  786. #ifdef    Kanji_Support
  787. // eri 7/30/97 : added EnglishFonts, JapaneseFonts and FontList.
  788. Define(EnglishFonts)
  789.     VList(TabDialogBack)
  790.         {
  791.         HList()
  792.             {
  793.             FontPopup( kLit117, kWYSIWYGLabelWidth, wysiwygFont, Width = kWYSIWYGMenuWidth,
  794.                           EH kLit118, Script = 0 );
  795.             Spacer(Width = 10, Height = 0);
  796.             SizePopup("", 0, wysiwygSize, EH kLit120);
  797.             }
  798.         
  799.         Spacer(Width=0, Height=7);
  800.         HList()
  801.             {
  802.             FontPopup( kLit121, kWYSIWYGLabelWidth, monospaceFont, Width = kWYSIWYGMenuWidth,
  803.                           EH kLit122, Script = 0 );
  804.             Spacer(Width = 10, Height = 0);
  805.             SizePopup("", 0, monospaceSize, EH kLit124);
  806.             }
  807.             
  808.         Spacer(Width = 0, Height = 7);
  809.         HList()
  810.             {    
  811.             FontPopup( kLit32, kWYSIWYGLabelWidth, htmlFont, Width = kWYSIWYGMenuWidth,
  812.                           EH kLit33, Script = 0 );
  813.             Spacer(Width = 10, Height = 0);
  814.             SizePopup("", 0, htmlSize, EH kLit35);
  815.             }
  816.         }
  817.                 
  818. Define(JapaneseFonts)
  819.     VList(TabDialogBack)
  820.         {
  821.         HList(TabDialogBack)
  822.             {
  823.             FontPopup( kLit125, kWYSIWYGLabelWidth, wysiwygJFont, Width = kWYSIWYGMenuWidth,
  824.                           EH kLit118, Script = 1 );
  825.             Spacer(Width = 10, Height = 0);
  826.             SizePopup("", 0, wysiwygJSize, EH kLit120);
  827.             }
  828.         
  829.         Spacer(Width=0, Height=7);
  830.         HList(TabDialogBack)
  831.             {
  832.             FontPopup( kLit127, kWYSIWYGLabelWidth, monospaceJFont, Width = kWYSIWYGMenuWidth,
  833.                           EH kLit122, Script = 1 );
  834.             Spacer(Width = 10, Height = 0);
  835.             SizePopup("", 0, monospaceJSize, EH kLit124);
  836.             }
  837.         Spacer(Width = 0, Height = 7);
  838.         HList(TabDialogBack)
  839.             {    
  840.             FontPopup( kLit32, kWYSIWYGLabelWidth, htmlJFont, Width = kWYSIWYGMenuWidth,
  841.                           EH kLit33, Script = 1 );
  842.             Spacer(Width = 10, Height = 0);
  843.             SizePopup("", 0, htmlJSize, EH kLit35);
  844.             }
  845.         }        
  846. Define(FontList)
  847.     HList(TabDialogBack)
  848.         {
  849.         VList(TabDialogBack)
  850.             {
  851.             Switch(fontLanguage)
  852.                 {
  853.                 case 0:
  854.                     Call(JapaneseFonts);
  855.                 case 1:
  856.                     Call(EnglishFonts);
  857.                 }
  858.             }
  859.         }
  860. //  
  861. #endif
  862.     
  863. // "Fonts" Tab
  864. Define(WYSIWYGEditing)
  865.     VList(TabDialogBack, Width = UseParent)
  866.     {
  867.         SpaceAfterFrameLabel
  868.         #ifdef Kanji_Support
  869.             // eri 7/30/97 : Language setting popup for Japanese version.
  870.             IntegerPopup( kLit219, kWYSIWYGLabelWidth, fontLanguage, Width = kWYSIWYGMenuWidth,
  871.                               kLabelBoldFont, kControlFont, EH kLit220 )
  872.             {
  873.                 IntItem(kLit221, 0);
  874.                 IntItem(kLit222, 1);
  875.             };
  876.                 
  877.             Spacer(Width=0, Height=7);
  878.             Call(FontList);
  879.         #else
  880.         HList()
  881.         {
  882.             FontPopup( kLit117, kWYSIWYGLabelWidth, wysiwygFont, Width = kWYSIWYGMenuWidth, 
  883.                         kLabelBoldFont, kControlFont, EH kLit118 );
  884.             Spacer(Width = 10, Height = 0);
  885.             SizePopup("", 0, wysiwygSize, kControlFont, EH kLit120, Width=kSizePopupWidth);
  886.         }
  887.         
  888.         Spacer(Width=0, Height=7);
  889.         HList()
  890.         {
  891.             FontPopup( kLit121, kWYSIWYGLabelWidth, monospaceFont, Width = kWYSIWYGMenuWidth,
  892.                           kLabelBoldFont, kControlFont, EH kLit122 );
  893.             Spacer(Width = 10, Height = 0);
  894.             SizePopup("", 0, monospaceSize, kControlFont, EH kLit124, Width=kSizePopupWidth);
  895.         }
  896.         #endif
  897.         
  898.         Spacer(Width=0, Height=7);
  899.         StaticText( kLit133, Width = UseParent, Alignment = Left, kHelpFont );
  900.     } //WYSIWYGEditing ("Fonts" Tab)
  901. //***********  'HTML View' Pane        
  902. Define(HTMLEditing)
  903.     VList(TabDialogBack, Width = UseParent)
  904.     {
  905.         SpaceAfterFrameLabel
  906.     #ifndef    Kanji_Support
  907.         // HTML Font, font size and word wrap chkbox
  908.         HList(Width = UseParent)
  909.         {
  910.             FontPopup( kLit32, kHTMLFontLabelWidth, htmlFont, Width = kHTMLFontMenuWidth, kLabelBoldFont, kControlFont, EH kLit33 );
  911.             Spacer(Width = 10, Height = 0);
  912.             SizePopup("", 0, htmlSize, kControlFont,EH kLit35, Width = kSizePopupWidth);
  913.             //"Word Wrap" checkbox
  914.             Spacer(Width = 30, Height = 0);
  915.             TabDialog_CheckBox(kLit111, htmlWordWrap, kBoldFont,  kCheckBoxHeight, EH kLit200);
  916.         }
  917.     #endif        
  918.         Spacer(Height = 5);
  919.         // Syntax Coloring Section
  920.         VList(Width=UseParent)
  921.         {
  922.             // "Use Syntax Coloring" checkbox
  923.             TabDialog_CheckBox( kLit108, enableSyntaxColoring, kBoldFont, kCheckBoxHeight,EH kLit201 );
  924.         #ifdef    Kanji_Support
  925.             Spacer(Width = 15, Height = 0);
  926.             TabDialog_CheckBox(kLit111, htmlWordWrap, kControlFont, Height = 16, EH kLit200);
  927.         #endif    
  928.     
  929.             // VList of Popup with "Body Text", Color and Style choices, and example window.
  930.             Margin(2,2,2,2, Single, Width=UseParent)
  931.             VList(Width=UseParent)
  932.             {
  933.                 SpaceAfterFrameLabel
  934.                 //Popup with "Body Text" and other choices (Current Syntax Element) "HTML Element"
  935.                 IntegerPopup(kLit109, kViewLabelWidth, curSyntaxElement,Width=kHTMLCodeMenuWidth, Alignment=Right, kLabelPlainFont, kControlFont, EH kLit202)
  936.                 {
  937.                     IntItem(kLit101, 0);
  938.                     IntItem(kLit103, 1);
  939.                     IntItem(kLit104, 2);
  940.                     IntItem(kLit105, 3);
  941.                     IntItem(kLit106, 4);
  942.                     IntItem(kLit107, 5);
  943.                     IntItem(kLit102, 6);
  944.                 };
  945.                 #if Platform_Mac
  946.                 Spacer(Width=0, Height=2);    
  947.                 #endif
  948.                 Switch(curSyntaxElement)
  949.                 {
  950.                     case 0: 
  951.                         //Body Text
  952.                         SYNTAX_LINE(kLit101, 
  953.                                         bodyColorR, bodyColorG, bodyColorB, 
  954.                                         bodyStyle, 
  955.                                         kEditLabelWidth - 9, kLit203)
  956.                     
  957.                     case 1:                
  958.                     //Begin Tags
  959.                     SYNTAX_LINE(kLit103, 
  960.                                     beginTagColorR, beginTagColorG, beginTagColorB, 
  961.                                     beginTagStyle, 
  962.                                     kEditLabelWidth - 9, kLit204)
  963.                     
  964.                     case 2:                
  965.                     //End Tags
  966.                     SYNTAX_LINE(kLit104, 
  967.                                     endTagColorR, endTagColorG, endTagColorB, 
  968.                                     endTagStyle, 
  969.                                     kEditLabelWidth, kLit205)
  970.                     
  971.                     case 3: 
  972.                     //Parameter Names
  973.                     SYNTAX_LINE(kLit105, 
  974.                                     pNameColorR, pNameColorG, pNameColorB, 
  975.                                     pNameStyle, 
  976.                                     kEditLabelWidth - 9, kLit206)
  977.                     
  978.                     case 4: 
  979.                     //Param Values
  980.                     SYNTAX_LINE(kLit106, 
  981.                                     pValueColorR, pValueColorG, pValueColorB, 
  982.                                     pValueStyle, 
  983.                                     kEditLabelWidth, kLit207)
  984.                     
  985.                     case 5: 
  986.                     //Entities
  987.                     SYNTAX_LINE(kLit107, 
  988.                                 entityColorR, entityColorG, entityColorB, 
  989.                                 entityStyle, 
  990.                                 kEditLabelWidth - 9, kLit208)
  991.                     case 6:
  992.                     //Comment
  993.                     SYNTAX_LINE(kLit102, 
  994.                                     commentColorR, commentColorG, commentColorB, 
  995.                                     commentStyle, 
  996.                                     kEditLabelWidth, kLit209)
  997.                     
  998.                     default: 
  999.                         Spacer(Height = 0, Width = 0);
  1000.                 }//end Switch
  1001.                 #if Platform_Win
  1002.                     Spacer(Height = 10);
  1003.                 #else
  1004.                     Spacer(Height = 4);
  1005.                 #endif
  1006.                 #ifndef TryMe
  1007.                     Margin(3,3,3,3)
  1008.                     VList( HScroll, VScroll, BackColor = White, Width = UseParent, Height = kHTMLSampleHeight)
  1009.                                 GenericView("HTMLSample");
  1010.                 #else
  1011.                     Spacer(Width = UseParent,  Height = kHTMLSampleHeight, BackColor = {0, 65535, 0});
  1012.                 #endif
  1013.             }//End VList of Body Text, Color, Style and example window (has a box around it)    
  1014. #ifdef Kanji_Support
  1015.             Spacer(Height = 3);
  1016.             HList(Width = UseParent, Height = 16)
  1017.             GenericView("HTMLFontInfo");
  1018. #endif
  1019.         } // VList of Syntax Coloring Section
  1020.         
  1021.     }    //HTMLEditing  ("HTML View" Pane)
  1022.  
  1023. //*************** "HTML Source" Pane
  1024. Define(HTMLOutput)
  1025.     VList(TabDialogBack)
  1026.     {
  1027.         SpaceAfterFrameLabel
  1028.         EditText(defaultExtension,
  1029.                         LabelAlignment = Right,
  1030.                         
  1031.                         #if Platform_Mac
  1032.                             LabelWidth = kGeneralLabelWidth - 4,
  1033.                             Label = kLit27,
  1034.                             Width = kPopupMenuWidth,
  1035.                             kLabelBoldFont,
  1036.                         #else
  1037.                             LabelWidth = kHTMLOutputLabelWidth - 4,
  1038.                             Label = kLit28,
  1039.                             Width = kHeaderCommentPopupWidth,
  1040.                         #endif
  1041.                         
  1042.                         kEditFieldFont, 
  1043.                         
  1044.                         BackColor = {65535, 65535, 65535}, 
  1045.                         NoSmartQuotes, NoSmartEdits,
  1046.                         
  1047.                         #if Platform_Mac
  1048.                             EH kLit29 );
  1049.                         #else
  1050.                             EH kLit30 );
  1051.                         #endif
  1052.         Spacer(Height=7, Width=0);
  1053.         
  1054.         IntegerPopup( kLit44, kHTMLOutputLabelWidth, headerComment, Width = kHeaderCommentPopupWidth,
  1055.                           kLabelBoldFont, kControlFont, EH kLit45 )
  1056.             {
  1057.             IntItem(kLit46, 0);
  1058.             IntItem(kLit47, 1);
  1059.             IntItem(kLit48, 2);
  1060.             };
  1061.         
  1062.         Spacer(Height = 7, Width = 0);
  1063.         IntegerPopup( kLit49, kHTMLOutputLabelWidth, lineBreakFormat, Width = kLineBreakFormatPopupWidth,
  1064.                            kLabelBoldFont, kControlFont, EH kLit50 )
  1065.             {
  1066.             IntItem(kLit51, 0);
  1067.             IntItem(kLit52, 1);
  1068.             IntItem(kLit53, 2);
  1069.             };
  1070.         
  1071.         Spacer(Height = 7, Width = 0);
  1072.         IntegerPopup( kLit54, kHTMLOutputLabelWidth, UseCenterTagForAlign,
  1073.                               Width = kParagraphAlignmentWidth,
  1074.                            kLabelBoldFont, kControlFont, EH kLit55 )
  1075.             {
  1076.             IntItem(kLit56, 1);
  1077.             IntItem(kLit57, 0);
  1078.             };
  1079.         
  1080.         Spacer(Height = 5, Width = 0);
  1081.         HList()
  1082.             {
  1083.             Spacer(Width = kHTMLOutputLabelWidth-1, Height=0);
  1084.             TabDialog_CheckBox( kLit59, generatePEnd, kBoldFont, kCheckBoxHeight, Width = kCheckBoxWidths,
  1085.                 EH kLit60 );
  1086.             }
  1087.         
  1088.         Spacer(Height = 3, Width = 0);
  1089.         HList()
  1090.             {
  1091.             Spacer(Width = kHTMLOutputLabelWidth-1, Height=0);
  1092.             TabDialog_CheckBox( kLit65, outputFilePrefs, kBoldFont, kCheckBoxHeight, Width = kCheckBoxWidths,
  1093.                 EH kLit66 );
  1094.             }
  1095.         
  1096.         Spacer(Height = 3, Width = 0);
  1097.         HList()
  1098.             {
  1099.             Spacer(Width = kHTMLOutputLabelWidth-1, Height=0);
  1100.             TabDialog_CheckBox( kLit62, absolutePaths, kBoldFont, kCheckBoxHeight, Width = kCheckBoxWidths,
  1101.                 EH kLit63 );
  1102.             }
  1103.         
  1104.     } // HTMLOutput  ("HTML Source" Pane)
  1105. //************ "Images" pane
  1106. Define(Images)
  1107.     VList(TabDialogBack, Width = UseParent)
  1108.     {
  1109.         // DISPLAY frame  (Top half of dialog)
  1110.         Label(kLitDisplay, Single, Width=UseParent, kBoldFont)
  1111.         VList()
  1112.         {
  1113.             SpaceAfterFrameLabel
  1114.             HList()
  1115.             {
  1116.                 SpaceBeforeChkbox
  1117.                 // "Display images in edit page mode" chkbox
  1118.                 TabDialog_CheckBox(kLit71, displayImagesInEdit, kControlFont, EH kLit72 , kCheckBoxHeight);
  1119.             }
  1120.             #if Platform_Mac
  1121.                 Spacer(Width=0, Height=2);
  1122.             #endif
  1123.             HList()
  1124.             {
  1125.                 SpaceBeforeChkbox
  1126.                 // "Disply background.." ckbox    
  1127.                 TabDialog_CheckBox(kLit112, displayBackgroundInEdit, kControlFont, EH kLit113 , kCheckBoxHeight);
  1128.             }
  1129.             #if Platform_Win
  1130.                 HList()
  1131.                 {
  1132.                     SpaceBeforeChkbox
  1133.                     // "Faster images display" checkbox (windows-only feature)
  1134.                     TabDialog_CheckBox(kLit73, fasterGraphics, EH kLit74, kCheckBoxHeight );
  1135.                 }
  1136.             #endif          
  1137.         } // end Display frame
  1138.         Spacer(Height=10, Width=0); // Space between two frames 
  1139.         
  1140.         // IMPORTING frame
  1141.         Label(kLitImporting, Single, Width=UseParent, kBoldFont)
  1142.         VList(Width = kMainDialogWidth)
  1143.         {
  1144.             SpaceAfterFrameLabel
  1145.             HList()
  1146.             {
  1147.                 SpaceBeforeChkbox
  1148.                 VList(TabDialogBack)
  1149.                 {   // Radio buttons: 
  1150.                     //    "Prompt for Filename" and 
  1151.                     //    "Convert and save automatically"
  1152.                     WidowRadioButton(kLit69, promptForConvName, 1, Height = 18,Width = 250, kControlFont, EH kLit70);
  1153.                     #if Platform_Mac                        
  1154.                         WidowRadioButton(kLit75, promptForConvName, 0, Height = 18,Width = 280, kControlFont, EH kLit83mac );
  1155.                     #else    
  1156.                         WidowRadioButton(kLit76, promptForConvName, 0, Height = 18,Width = 280, kControlFont, EH kLit83win );
  1157.                     #endif        
  1158.                 }
  1159.                 // "Make interlaced GIFS" checkbox
  1160.                 TabDialog_CheckBox( kLit67, interlaceImages,  kControlFont, EH kLit68, kCheckBoxHeight);
  1161.     
  1162.             }
  1163.             
  1164.             Spacer(Width=0, Height=2);
  1165.             HList(Width=UseParent)
  1166.             {
  1167.                 Margin(0, 2, 7, 0)
  1168.                 #if Platform_Mac
  1169.                     SpaceBeforeChkbox     // "Converted Images Folder"
  1170.                     PushButton( kLit81, 4000, "SetImageFolderPathProc",  kControlFont, EH kLit82mac ); //"Browse" button to set directory        
  1171.                 #else
  1172.                     SpaceBeforeChkbox    // "Converted Images Directory"
  1173.                     SpaceBeforeChkbox
  1174.                     PushButton( kLit4, 4000, "SetImageFolderPathProc",    EH kLit82win ); //Set button                
  1175.                 #endif
  1176.             
  1177.                 Spacer(Width=4);
  1178.             // Box displaying the path 
  1179.         
  1180.                 #if Platform_Mac
  1181.                     VList(Width = UseParent)
  1182.                     {
  1183.                         Margin(4,4,4,4, Single, Width=kMainDialogWidth-90, Height = 43)
  1184.                             StaticText( imageFilePath, Width = UseParent, Height = UseParent,  kControlFont, EH kLit77 );
  1185.                         Spacer(Width = 0, Height = 4);
  1186.                     }
  1187.                 #else
  1188.                     Margin(2,2,2,2, Single, Width=UseParent, Height = 45,stdBackColor)
  1189.                         StaticText( imageFilePath, Width = 425, Height = UseParent, kControlFont, EH kLit78 );
  1190.                 #endif
  1191.             } // HList()
  1192.         }// end VList of Importing label.
  1193.         // "Image Map Format"
  1194.         Spacer(Width=0, Height=4);
  1195.         IntegerPopup( kLit129, kImageMapFormatLabelWidth, imageMapFormat, Width = kImageMapMenuWidth, kLabelBoldFont, kControlFont, EH kLit130)
  1196.         {
  1197.             IntItem("NCSA",  1); // mfNCSA
  1198.             IntItem("CERN",  2); // mfCERN
  1199.         };
  1200.     } // Images Tab
  1201. #if Platform_Mac
  1202.     #define kPrefsListWidth kMainDialogWidth
  1203. #else
  1204.     #define kPrefsListWidth kMainDialogWidth + 25
  1205. #endif
  1206. Define(MainList)
  1207.     HList(TabDialogBack)
  1208.         {
  1209.         Spacer(Height = kPrefsListHeight, Width = 0, ScaleV);
  1210.         VList( )
  1211.             {
  1212.             Spacer(Height = 0, Width = kPrefsListWidth, ScaleH);
  1213.             Switch(mode)
  1214.                 {
  1215.                 case 0:
  1216.                     Margin(kPrefLeftMargin,kPrefTopMargin,kPrefRightMargin,kPrefBottomMargin)
  1217.                         Call(General);
  1218.                 case 1:
  1219.                     Margin(kPrefLeftMargin,kPrefTopMargin,kPrefRightMargin,kPrefBottomMargin)
  1220.                         Call(HTMLOutput);
  1221.                 case 2:
  1222.                     Margin(kPrefLeftMargin,kPrefTopMargin,kPrefRightMargin,kPrefBottomMargin)
  1223.                         Call(HTMLEditing);
  1224.                 case 3:
  1225.                     Margin(kPrefLeftMargin,kPrefTopMargin,kPrefRightMargin,kPrefBottomMargin)
  1226.                         Call(Images);
  1227.                 
  1228.                 case 4:
  1229.                     Margin(kPrefLeftMargin,kPrefTopMargin,kPrefRightMargin,kPrefBottomMargin)
  1230.                         Call(BrowserPreview);
  1231.                 
  1232.                 case 5: 
  1233.                     Margin(kPrefLeftMargin,kPrefTopMargin,kPrefRightMargin,kPrefBottomMargin)
  1234.                         Call(WYSIWYGEditing);
  1235.                 
  1236.                 default:
  1237.                     Margin(kPrefLeftMargin,kPrefTopMargin,kPrefRightMargin,kPrefBottomMargin)
  1238.                         Call(General);
  1239.                 } // Switch(mode)
  1240.             
  1241.             #if Platform_Win
  1242.                 Spacer(Width = UseParent, Height = UseParent);
  1243.             #endif
  1244.             } //VList
  1245.     } //HList
  1246. Margin(10, 10, 10, 10, TabDialogBack)
  1247.     VList()
  1248.         {
  1249.         #if !WANT_TABS
  1250.             Layout(AllowOverlap)
  1251.                 {
  1252.                 HList(Left = 10, Top = 0)
  1253.                     {
  1254.                     Spacer(Width = 5, Height = 0);
  1255.                     IntegerPopup( "", 0, mode, Width = kModePopupWidth,
  1256.                                       EH kLit84, NoUndo )
  1257.                         {
  1258.                         IntItem(kLit85,  0);
  1259.                         IntItem(kLit88,  3);
  1260.                         IntItem(kLit89,  4);
  1261.                         IntItem(kLit116, 5);
  1262.                         #if !LITE_VERSION
  1263.                         IntItem(kLit87,  2);
  1264.                         #endif
  1265.                         IntItem(kLit86,  1);
  1266.                         };
  1267.                     Spacer(Width = 5, Height = 0);
  1268.                     }
  1269.                 
  1270.                 Margin(1,1,1,1, BackColor = {0,0,0}, Left =  0, Top = 10)
  1271.                     Margin(10,12,5,6, TabDialogBack)
  1272.                         Margin(14,5,4,0)
  1273.                             Call(MainList);
  1274.                 } //Layout
  1275.         #else
  1276.             TabControl(mode, NoUndo,Font = kTabLabelFont)
  1277.                 {
  1278.                 Tab(kLit85,  0);
  1279.                 Tab(kLit88,  3);
  1280.                 Tab(kLit89,  4);
  1281.                 Tab(kLit116, 5);
  1282.                 #if !LITE_VERSION
  1283.                 Tab(kLit87,  2);
  1284.                 #endif
  1285.                 Tab(kLit86,  1);
  1286.                 
  1287.                 Subview:
  1288.                     Call(MainList);
  1289.                     
  1290.                 }; //Tab Control
  1291.             
  1292.         #endif //if WANT_TABS
  1293.         
  1294.         
  1295.         Spacer(Height = 3, Width = 0);
  1296.         #if Platform_Mac
  1297.             HelpView(Width = UseParent, Height = kHelpViewHeight, kHelpFont);
  1298.         #else
  1299.             Margin(2,2,2,2, Single)
  1300.                 HelpView(Width = UseParent, Height = kHelpViewHeight, kHelpFont);
  1301.             Spacer(Height = 10, Width = 0, VScale);
  1302.         #endif
  1303.         
  1304.         HList(Width = UseParent)
  1305.             {
  1306.         // NO HELP BUTTONS 
  1307.         //    #if Platform_Mac
  1308.         //    PictPushButton(4000, "ContextHelpProc", HelpFile = kHelpURL)
  1309.         //        {
  1310.         //        Enabled(Draw, 'cicn',14055 );
  1311.         //        Disabled(Draw, 'cicn',14057 ); 
  1312.         //        Tracking(Draw, 'cicn',14056 );
  1313.         //        };
  1314.         //    #else
  1315.         //    PushButton(kHelpTitle, 4000, "ContextHelpProc", HelpFile = kHelpURL);
  1316.         //    #endif
  1317.             Spacer(Width = 20, Height = 0);
  1318.             
  1319.             #ifdef TryMe
  1320.                 StandardDialogButtonsH;
  1321.             #else
  1322.                 Switch(mode)
  1323.                     {
  1324.                     case 2:
  1325.                         HList(Width = UseParent)
  1326.                             {
  1327.                             PushButton( kLit131, 3114, "SetHTMLEditDefaults", EH kLit132);
  1328.                             StandardDialogButtonsH;
  1329.                             }
  1330.                     
  1331.                     default:
  1332.                         StandardDialogButtonsH;
  1333.                     
  1334.                     } //Switch
  1335.             #endif
  1336.             } //HList
  1337.         } // VList (main dialog)
  1338.