home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 4.10 / 1999-04_Disc_4.10.bin / ELINK / CLARISHP / _SETUP.1 / HOMEPAGE.exe / 1009 / 156 < prev    next >
Text File  |  1997-02-20  |  35KB  |  1,123 lines

  1. // -----
  2. // VDL156.txt
  3. // Copyright 1996 Claris
  4. // -----
  5.  
  6.  
  7. // Preferences
  8. /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
  9. /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
  10. /************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
  11.  
  12. //This section contains all localizable string constants for this VDL program. Be sure to 
  13. //include the backslash character at the end of each line of a multi-line string, except for the last line.
  14. //You may also flatten multiline constants into a single line, if you prefer
  15.  
  16.  
  17. #define kLit1 "Preview Browser:"
  18. #define kLit2 "The browser used by the Preview in Browser command."
  19. // #define kLit3 "Set Preview Browser:"
  20. #define kLit4 "&Set..."
  21. #define kLit5 "Change the browser used by the Preview in Browser command."
  22. #define kLit6 "Show Basic Tool Bar in Document Windows"
  23. #define kLit7 "If checked, a tool bar will be displayed at the top of each"\
  24.                   " HTML document and library window."
  25.                 
  26. #define kLit8 "Show Style Tool Bar in Document Windows"
  27. #define kLit9 "If checked, a style tool bar will be displayed at the top of"\
  28.                   " each HTML document and library window."
  29.                 
  30. #define kLit10 "Never"
  31. #define kLit11 "In Document Windows"
  32. #define kLit12 "In the Application Window"
  33. #define kLit13 "Show &Style Tool Bars:"
  34. #define kLit14 "Auto-save documents every"
  35. #define kLit15 "If checked, Claris Home Page will automatically save changed documents."
  36. #define kLit16 " minutes."
  37. #define kLit17 "Open &Documents in:"
  38. #define kLit18 "Specifies the default editing mode to use when opening HTML"\
  39.                     " documents."
  40. #define kLit19 "Edit Page"
  41. #define kLit20 "Preview Page"
  42. #define kLit21 "Edit HTML Source"
  43. #define kLit22 "At Startu&p:"
  44. #define kLit23 "Specifies an action to be performed automatically if Claris Home"\
  45.                     " Page is started without specifying any documents to open."
  46. #define kLit24 "Create New Document"
  47. #define kLit25 "Display Open Dialog"
  48. #define kLit26 "Do Nothing"
  49. #define kLit27 "Default HTML File Suffix:"
  50. #define kLit28 "Default HTML File &Ext:"
  51. #define kLit29 "Specifies the default file name suffix for new HTML"\
  52.                     " files; should typically be ╥htm╙ or ╥html╙ (yielding"\
  53.                     " file names such as ╥mypage.htm╙ or ╥mypage.html╙)."
  54.                             
  55. #define kLit30 "Specifies the default file extension for new HTML"\
  56.                     " files; should typically be \"htm\" or \"html\" (yielding"\
  57.                     " file names such as \"mypage.htm\" or \"mypage.html\")."
  58.                             
  59. #define kLit31 "&Auto-save every   "
  60. #define kLit32 "HTM&L Font:"
  61. #define kLit33 "Specifies the font in which HTML source is displayed."
  62. #define kLit34 "HTML &Size:"
  63. #define kLit35 "Specifies the text size in which HTML source is displayed."
  64.  
  65. //Lit 36 through 43 unused
  66.  
  67. #define kLit44 "Header Com&ment:"
  68. #define kLit45 "Specifies whether Claris Home Page should output a special"\
  69.                     " comment at the beginning of the HTML file."
  70. #define kLit46 "None"
  71. #define kLit47 "Identify as Home Page file"
  72. #define kLit48 "Identify and time-stamp"
  73. #define kLit49 "&Line Break Format:"
  74. #define kLit50 "Specifies which convention Claris Home Page should follow for"\
  75.                     " indicating line breaks in an HTML file.  Does not affect the"\
  76.                     " appearance of the document in a browser."
  77. #define kLit51 "Macintosh (CR)"
  78. #define kLit52 "Windows (CRLF)"
  79. #define kLit53 "Unix (LF)"
  80. #define kLit54 "&Paragraph Alignment Uses:"
  81. #define kLit55 "Specifies whether Claris Home Page should indicate centered"\
  82.                    " text using the <CENTER> tag or the ALIGN=CENTER parameter"\
  83.                    " to other tags (such as <P>).  Some browsers accept one"\
  84.                    " form but not the other."
  85.                           
  86. #define kLit56 "<CENTER> tag"
  87. #define kLit57 "ALIGN parameter"
  88. #define kLit58 "Generate </P> tags"
  89. #define kLit59 "&Generate </P> tags"
  90. #define kLit60 "Specifies whether Claris Home Page should output a </P> tag to"\
  91.                 " balance every <P> tag.  Should normally be enabled, but may"\
  92.                 " cause problems with some very old browsers."
  93.                 
  94. #define kLit61 "Use Absolute Pathnames"
  95. #define kLit62 "Use &Absolute Pathnames"
  96. #define kLit63 "Specifies whether Claris Home Page should output links to local"\
  97.                 " files using relative or absolute pathnames.  Relative pathnames"\
  98.                 " should always be used for files which will be transferred to a"\
  99.                 " separate HTTP server."
  100.                 
  101. #define kLit64 "Generate X-SAS tags"
  102. #define kLit65 "Generate &X-SAS tags"
  103. #define kLit66 "Claris Home Page defines several custom tags (beginning with \"X-SAS\")"\
  104.                 " for saving auxilliary information such as window position and size."\
  105.                 "  This option specifies whether these additional tags should be"\
  106.                 " saved in HTML files.  It has no effect on the appearance of the"\
  107.                 " document in a browser."
  108.                 
  109. #define kLit67 "Make &Interlaced GIFs"
  110. #define kLit68 "Specifies whether converted images are created in interlaced format."
  111. #define kLit69 "Prompt for File &Name/Location"
  112. #define kLit70 "If checked, Claris Home Page will ask for a file name"\
  113.                     " when converting non-GIF/JPEG files into GIF format."\
  114.                     "  Otherwise, Home Page will assign a file name automatically."
  115.                       
  116. #define kLit71 "Display Images in &Edit Mode"
  117. #define kLit72 "If checked, Claris Home Page will display images in both Edit Page"\
  118.                         " and Preview Page modes; otherwise, images will only be"\
  119.                         " displayed in Preview Page mode (allows for faster editing)."
  120.                         
  121. #define kLit73 "&Faster Image Display (may not work with all video cards)"
  122. #define kLit74 "If checked, causes Claris Home Page to use a faster method for"\
  123.                      " displaying images.  Some video drivers do not support this method,"\
  124.                      " and will cause the images to be displayed incorrectly in Home Page."
  125.                      
  126. #define kLit75 "Converted Images Folder:"
  127. #define kLit76 "Converted Images Directory:"
  128. #define kLit77 "The folder in which Claris Home Page will save converted image files."
  129. #define kLit78 "the directory in which Claris Home Page will save converted image files."
  130. #define kLit79 "Set Default Converted Images Folder:"
  131. #define kLit80 "Set Default Converted Images Directory:"
  132. #define kLit81 "Set..."
  133. #define kLit82 "Change the folder in which Claris Home Page will save converted image files."
  134. #define kLit83 "Change the directory in which Claris Home Page will save converted image files."
  135. #define kLit84 "Controls which category of Preferences data is displayed."
  136. #define kLit85 "General"
  137. #define kLit86 "HTML Output"
  138. #define kLit87 "HTML Editing"
  139. #define kLit88 "Images"
  140. #define kLit89 "Browser Preview"
  141.  
  142. #define kLit90 "Show &Basic Tool Bars:"
  143. #define kLit91 "Controls whether and where the Basic Tool Bar is displayed."
  144. #define kLit92 "Controls whether and where the Style Tool Bar is displayed."
  145.  
  146. #define kLit93  "Enable Inline Input"
  147. #define kLit94  "Enables inline input of Kanji text.  If disabled, " \
  148.                      "Kanji text is entered using a separate window."
  149. #define kLit95  "Default Document &Encoding:"
  150. #define kLit96  "The character encoding scheme to be used for new " \
  151.                        "documents.  Use Western for English and other Western " \
  152.                      "European languages."
  153. #define kLit97  "Western (Latin1)"
  154. #define kLit98  "Japanese (JIS)"
  155. #define kLit99  "Japanese (Shift-JIS)"
  156. #define kLit100 "Japanese (EUC)"
  157. #define kLit101 "Body Text"
  158. #define kLit102 "Comments"
  159. #define kLit103 "Begin Tags"
  160. #define kLit104 "End Tags"
  161. #define kLit105 "Parameter Names"
  162. #define kLit106 "Parameter Values"
  163. #define kLit107 "Special Characters"
  164. #define kLit108 "&Syntax Coloring"
  165. #define kLit109 "&For:"
  166. #define kLit110 "  use Color:"
  167. #define kLit111 "&Word Wrap"
  168. #define kLit112 "Display &Background Images in Edit Mode"
  169. #define kLit113 "If checked, Claris Home Page will display background images in"\
  170.                      " both Edit Page and Preview Page modes; otherwise, they will"\
  171.                      " only be displayed in Preview Page mode (allows for faster"\
  172.                      " editing)."
  173. #define kLit114 "Auto-save before &Previewing in Browser"
  174. #define kLit115 "If checked, the Preview in Browser command will"\
  175.                 " automatically save all changed documents."
  176.  
  177.  
  178. #define kLit116 "Fonts"
  179. #define kLit117 "&Proportional Font:"
  180. #define kLit118 "The font used for proportionally spaced text."
  181. #define kLit119 "WYSIWYG Base Size:"
  182. #define kLit120 "The font size used for proportionally spaced text."
  183. #define kLit121 "&Monospace Font:"
  184. #define kLit122 "The font used for monospaced (e.g. Preformatted or Teletype) text."
  185. #define kLit123 "Monospace Base Size:"
  186. #define kLit124 "The font size used for monospaced (e.g. Preformatted or Teletype) text."
  187.                      
  188. #define kLit125 "Kanji Proportional Font:"
  189. #define kLit126 "Kanji Proportional Size:"
  190. #define kLit127 "Kanji Monospace Font:"
  191. #define kLit128 "Kanji Monospace Size:"
  192.  
  193. #define kLit129 "Image &Map Format:"
  194. #define kLit130 "Specifies the format used when Claris Home Page outputs"\
  195.                      " server-side image map files."
  196.  
  197. #define kLit131 "Use &Defaults"
  198. #define kLit132 "Restore all HTML Editing settings to their default values."
  199.  
  200. #define kLit133 "The fonts selected here determine how Claris Home Page " \
  201.                      "displays HTML documents in Edit Page and Preview Page modes.  " \
  202.                      "This does not affect the appearance of your documents in a " \
  203.                      "browser."
  204.  
  205. #define kLit134 "and Style:"
  206.  
  207. #define kLit135 "Show &Line Breaks"
  208. #define kLit136 "If checked, a visible symbol will be shown for line breaks"\
  209.                      " when in Edit Page mode."
  210. #define kLit137 "Amount of time after the first change is made before the"\
  211.                      " document will be saved."
  212. #define kLit138 "Remember &FTP Passwords"
  213.  
  214. #define kLit200 "If checked, then long lines of HTML source code will be"\
  215.                    " wrapped onto several lines on the screen."
  216. #define kLit201 "If checked, then HTML source code will be color-coded"\
  217.                      " according to the settings in this dialog."
  218. #define kLit202 "Controls which type of HTML code to specify the color and"\
  219.                      " style for."
  220. #define kLit203 "Specifies the color or style used to display body text"\
  221.                      " in HTML source code.  Only takes effect if \"Syntax Coloring\""\
  222.                      " is checked."
  223. #define kLit204 "Specifies the color or style used to display beginning tags"\
  224.                      " (<TAG>) in HTML source code.  Only takes effect if \"Syntax Coloring\""\
  225.                      " is checked."
  226. #define kLit205 "Specifies the color or style used to display ending tags"\
  227.                      " (</TAG>) in HTML source code.  Only takes effect if \"Syntax Coloring\""\
  228.                      " is checked."
  229. #define kLit206 "Specifies the color or style used to display parameter names"\
  230.                      " in HTML source code.  Only takes effect if \"Syntax Coloring\""\
  231.                      " is checked."
  232. #define kLit207 "Specifies the color or style used to display parameter values"\
  233.                      " in HTML source code.  Only takes effect if \"Syntax Coloring\""\
  234.                      " is checked."
  235. #define kLit208 "Specifies the color or style used to display entities (special"\
  236.                      " characters such as &) in HTML source code.  Only takes "\
  237.                      " effect if \"Syntax Coloring\" is checked."
  238. #define kLit209 "Specifies the color or style used to display comments"\
  239.                      " (<!--comment-->) in HTML source code.  Only takes effect if \"Syntax Coloring\""\
  240.                      " is checked."
  241. #define kLit210 "If checked, then Claris Home Page will record your FTP"\
  242.                      " password, so that you do not need to enter it each time you"\
  243.                      " upload or download files."
  244.  
  245.  
  246. //Note: the file name will probably not change, but the name of the "Help" folder
  247. //probably will. Note that the translated name MUST be 8 chars or less.
  248. #define kHelpURL "Help/Prefs.htm"
  249. #define kHelpTitle "&Help"
  250.  
  251.  
  252. //If this is set to 1, then the 'secondary' browser is active.
  253. #define BROWSER_2_ACTIVE 0
  254.  
  255. #if BROWSER_2_ACTIVE
  256. #define kSecondBrowserLit         "Second Preview Browser:"
  257. #define kSecondBrowserHelp     "This is the browser used by the Preview in Browser 2 command."
  258. #define kSetSecondBrowserLit     "Set Second Browser:"
  259. #endif
  260.  
  261. //Localized Fonts
  262.  
  263. #if Platform_Mac
  264.     #define kHelpFont         Font = {Geneva, 10, {Plain}}
  265.     #define kExtentionFont     Font = EditFont
  266. #else
  267.     #define kHelpFont         Font = {"MS Sans Serif", 8, {Plain}}
  268.     #define kExtentionFont     Font = {"MS Sans Serif", 8, {Plain}}
  269. #endif
  270.  
  271. //Font used for some of the controls in this dialog, to override base font.
  272. #define kControlFont         Font = SystemFont
  273.  
  274.  
  275. /************************** LOCALIZED STRING CONSTANTS END **************************************/
  276. /************************** LOCALIZED STRING CONSTANTS END **************************************/
  277. /************************** LOCALIZED STRING CONSTANTS END **************************************/
  278.  
  279.  
  280.  
  281. /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
  282. /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
  283. /************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
  284.  
  285. //This section contains integer constants that are used to format this VDL program.
  286. //These are localizable - they only need to be changed if the localized strings 
  287. //are sufficiently longer than the US strings. Localize the strings first, then the constants.
  288.  
  289.  
  290. #if Platform_Mac
  291.  
  292.     //Main constant defining the width of the dialog
  293.     #define kMainDialogWidth     415
  294.     
  295.     //Left margin of the dialog, inside the frame.
  296.     #define kPrefLeftMargin     0
  297.     
  298.     //Top margin of the dialog, inside the frame.
  299.     #define kPrefTopMargin         0
  300.     
  301.     //Height of the main pane of the prefs dialog
  302.     #define kPrefsListHeight     165
  303.  
  304.     //Height of the help view at the bottom of the window
  305.     #define kHelpViewHeight     50
  306.     
  307.     //Width of the popup that controls the mode of the dialog (General, Images, HTML Output, etc)
  308.     #define kModePopupWidth        150
  309.     
  310.     /********* GENERAL PANE ***************/
  311.     //Width of the labels in the 'general pane', two popups and an edit text at the bottom.
  312.     #define kGeneralLabelWidth 187
  313.         
  314.     //Width of all the popup menu views
  315.     #define kPopupMenuWidth     370
  316.     
  317.     //Width of the text "Auto-save documents every"
  318.     #define kAutoSaveTextWidth    209 
  319.     
  320.     //Width of the edit text in the Auto-save line
  321.     #define kAutoSaveEntryTextWidth    50
  322.     
  323.     
  324.     /********** HTML OUTPUT PANE **********/
  325.  
  326.     //Width of the labels for the three popup menus
  327.     #define kHTMLOutputLabelWidth 187
  328.     
  329.     //Width of the popup menu that controls the header comment
  330.     #define kHeaderCommentPopupWidth     400
  331.     
  332.     //Width of the popup menu that controls the line break format
  333.     #define kLineBreakFormatPopupWidth     330
  334.     
  335.     //Width of the popup menu that controls the paragraph alignment tag
  336.     #define kParagraphAlignmentWidth     330
  337.  
  338.     //Widths of the checkboxes
  339.     #define kCheckBoxWidths                    200
  340.  
  341.  
  342.     /********** HTML EDITING PANE ************/
  343.     //Width of the labels on the popup menus
  344.     #define kEditLabelWidth                    127
  345.     
  346.     //Width of the menus themselves
  347.     #define kHTMLFontMenuWidth          200
  348.     #define kEditMenuWidth                    220
  349.     
  350.     // Height of the sample HTML code.
  351.     #define kHTMLSampleHeight                75
  352.     
  353.     /*********** FONTS PANE ********************/
  354.     
  355.     //Sizes of the labels and popups in the 'font' pane
  356.     #define     kWYSIWYGLabelWidth            170
  357.     #define     kWYSIWYGMenuWidth                310
  358.     
  359. #else
  360.  
  361.     //Main constant defining the width of the dialog
  362.     #define kMainDialogWidth 435
  363.     
  364.         
  365.     //Left margin of the dialog, inside the frame.
  366.     #define kPrefLeftMargin 10
  367.     
  368.     //Top margin of the dialog, inside the frame.
  369.     #define kPrefTopMargin 10
  370.     
  371.     //Height of the main pane of the prefs dialog
  372.     #define kPrefsListHeight 200
  373.  
  374.     //Height of the help view at the bottom of the window
  375.     #define kHelpViewHeight     65
  376.  
  377.     /********* GENERAL PANE ***************/
  378.     //Width of the labels in the 'general pane', two popups and an edit text at the bottom.
  379.     #define kGeneralLabelWidth 180
  380.  
  381.     //Width of all the popup menu views
  382.     #define kPopupMenuWidth     370
  383.  
  384.     //Width of the text "Auto-save documents every"
  385.     #define kAutoSaveTextWidth    209 
  386.     
  387.     //Width of the edit text in the Auto-save line
  388.     #define kAutoSaveEntryTextWidth    50
  389.     
  390.  
  391.     /********** HTML OUTPUT PANE **********/
  392.     //Width of the labels for the three popup menus
  393.     #define kHTMLOutputLabelWidth 220
  394.     
  395.     //Width of the popup menu that controls the header comment
  396.     #define kHeaderCommentPopupWidth     420
  397.     
  398.     //Width of the popup menu that controls the line break format
  399.     #define kLineBreakFormatPopupWidth     420
  400.  
  401.     //Width of the popup menu that controls the paragraph alignment tag
  402.     #define kParagraphAlignmentWidth     420
  403.  
  404.     //Widths of the checkboxes
  405.     #define kCheckBoxWidths                    200
  406.     
  407.     
  408.     /********** HTML EDITING PANE ************/
  409.     //Width of the labels on the popup menus
  410.     #define kEditLabelWidth                    127
  411.     
  412.     //Width of the menus themselves
  413.     #define kEditMenuWidth                    260
  414.     #define kHTMLFontMenuWidth          200
  415.     
  416.     // Height of the sample HTML code.
  417.     #define kHTMLSampleHeight                75
  418.     
  419.     /*********** FONTS PANE ********************/
  420.     
  421.     //Sizes of the labels and popups in the 'font' pane
  422.     #define     kWYSIWYGLabelWidth            170
  423.     #define     kWYSIWYGMenuWidth                310
  424. #endif
  425.  
  426.  
  427.  
  428. /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
  429. /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
  430. /************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
  431.  
  432. //No further localizable data past this point
  433.  
  434. /************************** END LOCALIZABLE DATA ***************************************************/
  435. /************************** END LOCALIZABLE DATA ***************************************************/
  436. /************************** END LOCALIZABLE DATA ***************************************************/
  437.  
  438.  
  439. #ifdef TryMe
  440. #define LITE_VERSION 1
  441. #endif
  442.  
  443. #if Platform_Mac
  444.     #define dlogBack BackColor = {65535, 65535, 65535}
  445. #else
  446.     #define dlogBack BackColor = Dialog
  447. #endif
  448.  
  449. #define EH EnabledHelpString =
  450.  
  451.  
  452. Define(BrowserPreview)
  453.     VList(dlogBack, Width = kMainDialogWidth)
  454.         {
  455.         HList()
  456.             {
  457.             Margin(0, 2, 7, 0)
  458.                 StaticText(kLit1);
  459.             PushButton(kLit4, 4000, "SetBrowserAppProc", EH kLit5);
  460.             }
  461.         
  462.         Margin(12,4,0,8, Width = UseParent)
  463.             #if Platform_Mac
  464.                 Margin(4,4,4,4, Single, Width = UseParent)
  465.                     StaticText(browserFilePath, Width = UseParent, EH kLit2);
  466.             #else
  467.                 Margin(2,2,2,2, Single, BackColor = White, Width = UseParent)
  468.                     StaticText(browserFilePath, Width = UseParent, EH kLit2);
  469.             #endif
  470.         
  471.         #if BROWSER_2_ACTIVE    
  472.             Spacer(Height = 10, Width = 0);
  473.             
  474.             StaticText(kSecondBrowserLit);
  475.             Margin(12,4,0,8, Width = UseParent)
  476.             #if Platform_Mac
  477.                 Margin(4,4,4,4, Single, Width = UseParent)
  478.                     StaticText( browser2FilePath, Width = UseParent,
  479.             #else
  480.                 Margin(2,2,2,2, Single, BackColor = White, Width = UseParent)
  481.                     StaticText( browser2FilePath, Width = UseParent,
  482.             #endif
  483.                                     EH kSecondBrowserHelp );
  484.             HList()
  485.                 {
  486.                 Margin(0,2,10,0)
  487.                     StaticText( kSetSecondBrowserLit);
  488.                 PushButton( kLit4, 4000, "SetBrowser2AppProc",
  489.                                 EH kLit5);
  490.                 }
  491.         #endif // BROWSER_2_ACTIVE
  492.         
  493.         Spacer(Height = 9, Width = 0);
  494.         CheckBox(kLit114, saveBeforePreview, EH kLit115);
  495.         }
  496.  
  497.  
  498.  
  499. Define(General)
  500.     VList(dlogBack, Width = UseParent)
  501.         {
  502.         #ifdef Kanji_Support
  503.             CheckBox(kLit93, inlineInput, EH kLit94);
  504.             Spacer(Height = 4, Width = 0);
  505.         #endif // Kanji_Support
  506.         
  507.         #if Platform_Mac
  508.             CheckBox( kLit6, showToolbars,
  509.             EH kLit7
  510.             );
  511.         
  512.         Spacer(Height = 4, Width = 0);
  513.         CheckBox(kLit8, styleToolbars, EH kLit9);
  514.         #else
  515.         IntegerPopup( kLit90, kGeneralLabelWidth, showToolbars, Width=kPopupMenuWidth,
  516.                       Alignment = Right, EH kLit91)
  517.             {
  518.             IntItem(kLit10, 0);
  519.             IntItem(kLit11, 1);
  520.             IntItem(kLit12, 2);
  521.             };
  522.         Spacer(Height = 7, Width = 0);
  523.         IntegerPopup( kLit13, kGeneralLabelWidth, styleToolbars, Width=kPopupMenuWidth,
  524.                       Alignment = Right, EH kLit92)
  525.             {
  526.             IntItem(kLit10, 0);
  527.             IntItem(kLit11, 1);
  528.             IntItem(kLit12, 2);
  529.             };
  530.         #endif
  531.         
  532.         #if Platform_Mac
  533.         Spacer(Height = 4, Width = 0);
  534.         HList()
  535.             {
  536.             Spacer(Width = 0, Height = 24, VScale);
  537.             HList()
  538.                 {
  539.                 CheckBox(kLit14, DoAutoSave, Width = kAutoSaveTextWidth,
  540.                     EH kLit15 );
  541.                 
  542.                 EditText( AutoSaveInterval_Mins, Unsigned(16),
  543.                              Width = kAutoSaveEntryTextWidth,
  544.                              BackColor = {65535,65535,65535},
  545.                              EH kLit137 );
  546.                 Margin(1,2,0,0)
  547.                     StaticText( kLit16, Font = SystemFont);
  548.                 }
  549.             }
  550.             
  551.         CheckBox(kLit135, show_linebreaks, EH kLit136);
  552.         #endif //Platform_Mac
  553.         
  554.         Spacer(Height=3, Width=0);
  555.         IntegerPopup( kLit17, kGeneralLabelWidth, defaultDocMode, Width=kPopupMenuWidth,
  556.                           Alignment = Right,
  557.                           EH kLit18 )
  558.             {
  559.             IntItem(kLit19, 0);
  560.             IntItem(kLit20, 1);
  561.             #if !LITE_VERSION            
  562.             IntItem(kLit21, 2);
  563.             #endif
  564.             };
  565.         
  566.         Spacer(Height=6, Width=0);
  567.         IntegerPopup( kLit22, kGeneralLabelWidth, startupAction, Width=kPopupMenuWidth, Alignment = Right,
  568.                           EH kLit23 )
  569.             {
  570.             IntItem(kLit24, 0);
  571.             IntItem(kLit25, 1);
  572.             IntItem(kLit26, 2);
  573.             };
  574.         
  575.         #ifdef Kanji_Support
  576.             Spacer(Height=6, Width=0);
  577.             IntegerPopup( kLit95, kGeneralLabelWidth, defaultEncoding,
  578.                               Width=kPopupMenuWidth, Alignment = Right,
  579.                               EH kLit96 )
  580.                 {
  581.                 IntItem(kLit97,  0);
  582.                 IntItem(kLit98,  1);
  583.                 IntItem(kLit99,  2);
  584.                 IntItem(kLit100, 3);
  585.                 };
  586.         #endif // Kanji_Support
  587.         
  588.         #if Platform_Win
  589.             Spacer(Height = 7, Width = 0);
  590.             HList()
  591.                 {
  592.                 Spacer(Width = kGeneralLabelWidth, Height = 24, VScale);
  593.                 HList()
  594.                     {
  595.                     CheckBox(kLit31, DoAutoSave, kControlFont, Height = 21,
  596.                         EH kLit15 );
  597.                     
  598.                     EditText(AutoSaveInterval_Mins, Unsigned(16), Width = kAutoSaveEntryTextWidth, BackColor = {65535,65535,65535});
  599.                     Margin(1,2,0,0)
  600.                         StaticText( kLit16, kControlFont);
  601.                     }
  602.                 
  603.                 }
  604.             Margin(kGeneralLabelWidth, 0,0,0)
  605.                 CheckBox(kLit135, show_linebreaks, EH kLit136);
  606.         #endif //Platform_Win
  607.         
  608.         Spacer(Height=3, Width=0);
  609.         #if Platform_Win
  610.         Margin(kGeneralLabelWidth, 0,0,0)
  611.         #endif
  612.             CheckBox(kLit138, rememberPasswords, EH kLit210);
  613.         } // General
  614.  
  615.  
  616. #define SYNTAX_LINE(labelText, nameR, nameG, nameB, nameStyle, labelWidth, helpText) \
  617.     HList()\
  618.         {\
  619.         Spacer(Width = 4, Height = 0);\
  620.         \
  621.         Margin(2,2,2,2, Single, Outer)\
  622.             ColorControl(nameR, nameG, nameB, Height = 16, Width = 20, EH helpText);\
  623.         \
  624.         Spacer(Width = 4, Height = 0);\
  625.         StylePopup(kLit134, Default, nameStyle, EH helpText); \
  626.         }
  627.  
  628.  
  629. Define(WYSIWYGEditing)
  630.     VList(dlogBack, Width = UseParent)
  631.         {
  632.         HList()
  633.             {
  634.             FontPopup( kLit117, kWYSIWYGLabelWidth, wysiwygFont, Width = kWYSIWYGMenuWidth,
  635.                           EH kLit118 );
  636.             Spacer(Width = 10, Height = 0);
  637.             SizePopup("", 0, wysiwygSize, EH kLit120);
  638.             }
  639.         
  640.         Spacer(Width=0, Height=7);
  641.         HList()
  642.             {
  643.             FontPopup( kLit121, kWYSIWYGLabelWidth, monospaceFont, Width = kWYSIWYGMenuWidth,
  644.                           EH kLit122 );
  645.             Spacer(Width = 10, Height = 0);
  646.             SizePopup("", 0, monospaceSize, EH kLit124);
  647.             }
  648.         
  649.         #ifdef Kanji_Support
  650.             Spacer(Width=0, Height=7);
  651.             HList()
  652.                 {
  653.                 FontPopup( kLit125, kWYSIWYGLabelWidth, wysiwygJFont, Width = kWYSIWYGMenuWidth,
  654.                               EH kLit118 );
  655.                 Spacer(Width = 10, Height = 0);
  656.                 SizePopup("", 0, wysiwygJSize, EH kLit120);
  657.                 }
  658.             
  659.             Spacer(Width=0, Height=7);
  660.             HList()
  661.                 {
  662.                 FontPopup( kLit127, kWYSIWYGLabelWidth, monospaceJFont, Width = kWYSIWYGMenuWidth,
  663.                               EH kLit122 );
  664.                 Spacer(Width = 10, Height = 0);
  665.                 SizePopup("", 0, monospaceJSize, EH kLit124);
  666.                 }
  667.         #endif
  668.         
  669.         Spacer(Width=0, Height=7);
  670.         StaticText( kLit133,
  671.                         Width = UseParent, Alignment = Center, kHelpFont );
  672.         } //WYSIWYGEditing
  673.         
  674.  
  675. Define(HTMLEditing)
  676.     VList(dlogBack, Width = UseParent)
  677.         {
  678.         HList(Width = UseParent)
  679.             {
  680.             FontPopup( kLit32, -1, htmlFont, Width = kHTMLFontMenuWidth,
  681.                           EH kLit33 );
  682.             Spacer(Width = 10, Height = 0);
  683.             SizePopup("", 0, htmlSize, EH kLit35);
  684.             
  685.             Spacer(Width = 30, Height = 0);
  686.             #if Platform_Mac
  687.                 CheckBox(kLit111, htmlWordWrap, EH kLit200);
  688.             #else
  689.                 CheckBox(kLit111, htmlWordWrap, kControlFont, Height = 16, EH kLit200);
  690.             #endif
  691.             }
  692.         
  693.         Spacer(Height = 5);
  694.         
  695.         VList(Width = UseParent)
  696.             {
  697.             #if Platform_Mac
  698.                 CheckBox(kLit108, enableSyntaxColoring, EH kLit201);
  699.             #else
  700.                 CheckBox( kLit108, enableSyntaxColoring, kControlFont, Height = 16,
  701.                              EH kLit201 );
  702.             #endif
  703.             
  704.             Spacer(Height = 5, Width = UseParent);
  705.             HList()
  706.                 {
  707.                 Spacer(Width = 12, Height = UseParent);
  708.                 
  709.                 //StaticText(kLit109);
  710.                 IntegerPopup(kLit109, Default, curSyntaxElement, EH kLit202)
  711.                     {
  712.                     IntItem(kLit101, 0);
  713.                     IntItem(kLit103, 1);
  714.                     IntItem(kLit104, 2);
  715.                     IntItem(kLit105, 3);
  716.                     IntItem(kLit106, 4);
  717.                     IntItem(kLit107, 5);
  718.                     IntItem(kLit102, 6);
  719.                     };
  720.                     
  721.                 Margin(0,1,0,0)
  722.                     StaticText(kLit110);
  723.                     
  724.                 Switch(curSyntaxElement)
  725.                     {
  726.                     case 0: 
  727.                         //Body Text
  728.                         SYNTAX_LINE(kLit101, 
  729.                                         bodyColorR, bodyColorG, bodyColorB, 
  730.                                         bodyStyle, 
  731.                                         kEditLabelWidth - 9, kLit203)
  732.                     
  733.                     case 1:                
  734.                     //Begin Tags
  735.                     SYNTAX_LINE(kLit103, 
  736.                                     beginTagColorR, beginTagColorG, beginTagColorB, 
  737.                                     beginTagStyle, 
  738.                                     kEditLabelWidth - 9, kLit204)
  739.                     
  740.                     case 2:                
  741.                     //End Tags
  742.                     SYNTAX_LINE(kLit104, 
  743.                                     endTagColorR, endTagColorG, endTagColorB, 
  744.                                     endTagStyle, 
  745.                                     kEditLabelWidth, kLit205)
  746.                     
  747.                     case 3: 
  748.                     //Parameter Names
  749.                     SYNTAX_LINE(kLit105, 
  750.                                     pNameColorR, pNameColorG, pNameColorB, 
  751.                                     pNameStyle, 
  752.                                     kEditLabelWidth - 9, kLit206)
  753.                     
  754.                     case 4: 
  755.                     //Param Values
  756.                     SYNTAX_LINE(kLit106, 
  757.                                     pValueColorR, pValueColorG, pValueColorB, 
  758.                                     pValueStyle, 
  759.                                     kEditLabelWidth, kLit207)
  760.                     
  761.                     case 5: 
  762.                     //Entities
  763.                     SYNTAX_LINE(kLit107, 
  764.                                 entityColorR, entityColorG, entityColorB, 
  765.                                 entityStyle, 
  766.                                 kEditLabelWidth - 9, kLit208)
  767.                     case 6:
  768.                     //Comment
  769.                     SYNTAX_LINE(kLit102, 
  770.                                     commentColorR, commentColorG, commentColorB, 
  771.                                     commentStyle, 
  772.                                     kEditLabelWidth, kLit209)
  773.                     
  774.                     default: 
  775.                         Spacer(Height = 0, Width = 0);
  776.                     }
  777.                 } //HList
  778.                 
  779.             Spacer(Height = 5);
  780.             
  781.             #ifndef TryMe
  782.                 #if Platform_Win
  783.                 Margin(0,0,10,0)
  784.                 #endif
  785.                     VList( HScroll, VScroll, BackColor = White, Width = UseParent,
  786.                              Height = kHTMLSampleHeight )
  787.                             GenericView("HTMLSample");
  788.             #endif
  789.             } // VList()
  790.         
  791.         }    //HTMLEditing
  792.  
  793.  
  794. Define(HTMLOutput)
  795.     VList(dlogBack)
  796.         {
  797.         EditText(defaultExtension,
  798.                         LabelAlignment = Right,
  799.                         
  800.                         #if Platform_Mac
  801.                             LabelWidth = kGeneralLabelWidth - 4,
  802.                             Label = kLit27,
  803.                             Width = kPopupMenuWidth,
  804.                         #else
  805.                             LabelWidth = kHTMLOutputLabelWidth - 4,
  806.                             Label = kLit28,
  807.                             Width = kHeaderCommentPopupWidth,
  808.                         #endif
  809.                         
  810.                         kExtentionFont, 
  811.                         
  812.                         BackColor = {65535, 65535, 65535}, 
  813.                         NoSmartQuotes, NoSmartEdits,
  814.                         
  815.                         #if Platform_Mac
  816.                             EH kLit29 );
  817.                         #else
  818.                             EH kLit30 );
  819.                         #endif
  820.         Spacer(Height=7, Width=0);
  821.         
  822.         IntegerPopup( kLit44, kHTMLOutputLabelWidth, headerComment, Width = kHeaderCommentPopupWidth,
  823.                           EH kLit45 )
  824.             {
  825.             IntItem(kLit46, 0);
  826.             IntItem(kLit47, 1);
  827.             IntItem(kLit48, 2);
  828.             };
  829.         
  830.         Spacer(Height = 7, Width = 0);
  831.         IntegerPopup( kLit49, kHTMLOutputLabelWidth, lineBreakFormat, Width = kLineBreakFormatPopupWidth,
  832.                           EH kLit50 )
  833.             {
  834.             IntItem(kLit51, 0);
  835.             IntItem(kLit52, 1);
  836.             IntItem(kLit53, 2);
  837.             };
  838.         
  839.         Spacer(Height = 7, Width = 0);
  840.         IntegerPopup( kLit54, kHTMLOutputLabelWidth, UseCenterTagForAlign,
  841.                               Width = kParagraphAlignmentWidth,
  842.                           EH kLit55 )
  843.             {
  844.             IntItem(kLit56, 1);
  845.             IntItem(kLit57, 0);
  846.             };
  847.         
  848.         Spacer(Height = 5, Width = 0);
  849.         HList()
  850.             {
  851.             Spacer(Width = kHTMLOutputLabelWidth-1, Height=0);
  852.             #if Platform_Mac
  853.                 CheckBox(kLit58, generatePEnd, Width = kCheckBoxWidths,
  854.             #else
  855.                 CheckBox( kLit59, generatePEnd, kControlFont, Height = 16, Width = kCheckBoxWidths,
  856.             #endif
  857.                 EH kLit60 );
  858.             }
  859.         
  860.         Spacer(Height = 3, Width = 0);
  861.         HList()
  862.             {
  863.             Spacer(Width = kHTMLOutputLabelWidth-1, Height=0);
  864.             #if Platform_Mac
  865.                 CheckBox(kLit64, outputFilePrefs, Width = kCheckBoxWidths,
  866.             #else
  867.                 CheckBox( kLit65, outputFilePrefs, kControlFont, Height = 16, Width = kCheckBoxWidths,
  868.             #endif
  869.                 EH kLit66 );
  870.             }
  871.         
  872.         Spacer(Height = 3, Width = 0);
  873.         HList()
  874.             {
  875.             Spacer(Width = kHTMLOutputLabelWidth-1, Height=0);
  876.             #if Platform_Mac
  877.                 CheckBox(kLit61, absolutePaths, Width = kCheckBoxWidths,
  878.             #else
  879.                 CheckBox( kLit62, absolutePaths, kControlFont, Height = 16, Width = kCheckBoxWidths,
  880.             #endif
  881.                 EH kLit63 );
  882.             }
  883.         
  884.         } // HTMLOutput
  885.  
  886.  
  887. Define(Images)
  888.     VList(dlogBack, Width = kMainDialogWidth)
  889.         {
  890.         HList(Width = kMainDialogWidth)
  891.             {
  892.             VList()
  893.                 {
  894.                 CheckBox( kLit67, interlaceImages,
  895.                              EH kLit68 );
  896.                 
  897.                 #if Platform_Mac
  898.                     Spacer(Width=0, Height=2);
  899.                 #endif
  900.                 }
  901.             
  902.             Spacer(Width = UseParent, Height = 0);
  903.             IntegerPopup( kLit129, Default, imageMapFormat,
  904.                               EH kLit130 )
  905.                 {
  906.                 IntItem("NCSA",  1); // mfNCSA
  907.                 IntItem("CERN",  2); // mfCERN
  908.                 };
  909.             
  910.             } // HList(Width = kMainDialogWidth)
  911.         
  912.         CheckBox( kLit69, promptForConvName,
  913.                       EH kLit70 );
  914.         
  915.         #if Platform_Mac
  916.             Spacer(Width=0, Height=2);
  917.         #endif
  918.         
  919.         CheckBox(kLit71, displayImagesInEdit,
  920.                     EH kLit72 );
  921.         
  922.         #if Platform_Mac
  923.             Spacer(Width=0, Height=2);
  924.         #endif
  925.         
  926.         CheckBox(kLit112, displayBackgroundInEdit,
  927.                     EH kLit113 );
  928.         
  929.         #if Platform_Win
  930.             //Note - we don't need a space between the buttons on windows.
  931.             CheckBox(kLit73, 
  932.                          fasterGraphics,
  933.                          EH kLit74 );
  934.         #endif //Platform_Win          
  935.         
  936.         Spacer(Height = 4, Width = 0);
  937.         
  938.         #if Platform_Mac
  939.             Spacer(Height = 3, Width=0);
  940.         #else
  941.             Spacer(Height = 8, Width=0, ScaleV);
  942.             Spacer(Height = 1, Width = UseParent, BackColor = {0,0,0});
  943.             Spacer(Height = 1, Width = UseParent, BackColor = {65535, 65535, 65535});
  944.             Spacer(Height = 8, Width = 0, ScaleV);
  945.         #endif // else !Platform_Mac
  946.         
  947.         
  948.         Spacer(Width=0, Height=2);
  949.         HList()
  950.             {
  951.             Margin(0, 2, 7, 0)
  952.                 #if Platform_Mac
  953.                     StaticText( kLit75);
  954.                 #else
  955.                     StaticText( kLit76);
  956.                 #endif
  957.             
  958.             #if Platform_Mac
  959.                 PushButton( kLit81, 4000, "SetImageFolderPathProc", 
  960.                                 EH kLit82 );
  961.             #else
  962.                 PushButton( kLit4, 4000, "SetImageFolderPathProc",
  963.                                 EH kLit83 );
  964.             #endif
  965.             } // HList()
  966.         
  967.         Margin(12,4,0,8, Width=UseParent)
  968.             #if Platform_Mac
  969.                 Margin(4,4,4,4, Single, Width=UseParent, Height = 45)
  970.                     StaticText( imageFilePath, Width = 425, Height = UseParent,
  971.                                       EH kLit77 );
  972.             #else
  973.                 Margin(2,2,2,2, Single, Width=UseParent, Height = 45, BackColor = White)
  974.                     StaticText( imageFilePath, Width = 425, Height = UseParent,
  975.                                     EH kLit78 );
  976.             #endif
  977.         } // Images
  978.  
  979.  
  980. #if Platform_Mac
  981.     #define kPrefsListWidth kMainDialogWidth
  982. #else
  983.     #define kPrefsListWidth kMainDialogWidth + 25
  984. #endif
  985.  
  986. Define(MainList)
  987.     HList(dlogBack)
  988.         {
  989.         Spacer(Height = kPrefsListHeight, Width = 0, ScaleV);
  990.         VList( )
  991.             {
  992.             Spacer(Height = 0, Width = kPrefsListWidth, ScaleH);
  993.             Switch(mode)
  994.                 {
  995.                 case 0:
  996.                     Margin(kPrefLeftMargin,kPrefTopMargin,0,0)
  997.                         Call(General);
  998.                 case 1:
  999.                     Margin(kPrefLeftMargin,kPrefTopMargin,0,0)
  1000.                         Call(HTMLOutput);
  1001.                 case 2:
  1002.                     Margin(kPrefLeftMargin,kPrefTopMargin,12,0)
  1003.                         Call(HTMLEditing);
  1004.                 case 3:
  1005.                     Margin(kPrefLeftMargin,kPrefTopMargin,0,0)
  1006.                         Call(Images);
  1007.                 
  1008.                 case 4:
  1009.                     Margin(kPrefLeftMargin,kPrefTopMargin,0,0)
  1010.                         Call(BrowserPreview);
  1011.                 
  1012.                 case 5: 
  1013.                     Margin(kPrefLeftMargin,kPrefTopMargin,0,0)
  1014.                         Call(WYSIWYGEditing);
  1015.                 
  1016.                 default:
  1017.                     Margin(kPrefLeftMargin,kPrefTopMargin,0,0)
  1018.                         Call(General);
  1019.                 } // Switch(mode)
  1020.             
  1021.             #if Platform_Win
  1022.                 Spacer(Width = UseParent, Height = UseParent);
  1023.             #endif
  1024.             } //VList
  1025.     } //HList
  1026.  
  1027.  
  1028. Margin(10, 10, 10, 10, dlogBack)
  1029.     VList()
  1030.         {
  1031.         #if Platform_Mac
  1032.             Layout(AllowOverlap)
  1033.                 {
  1034.                 HList(Left = 10, Top = 0)
  1035.                     {
  1036.                     Spacer(Width = 5, Height = 0);
  1037.  
  1038.                     IntegerPopup( "", 0, mode, Width = kModePopupWidth,
  1039.                                       EH kLit84, NoUndo )
  1040.                         {
  1041.                         IntItem(kLit85,  0);
  1042.                         IntItem(kLit88,  3);
  1043.                         IntItem(kLit89,  4);
  1044.                         IntItem(kLit116, 5);
  1045.                         #if !LITE_VERSION
  1046.                         IntItem(kLit87,  2);
  1047.                         #endif
  1048.                         IntItem(kLit86,  1);
  1049.                         };
  1050.                     Spacer(Width = 5, Height = 0);
  1051.                     }
  1052.                 
  1053.                 Margin(1,1,1,1, BackColor = {0,0,0}, Left =  0, Top = 10)
  1054.                     Margin(10,12,5,6, dlogBack)
  1055.                         Margin(14,5,4,0)
  1056.                             Call(MainList);
  1057.                 } //Layout
  1058.         #else
  1059.             TabControl(mode, NoUndo)
  1060.                 {
  1061.                 Tab(kLit85,  0);
  1062.                 Tab(kLit88,  3);
  1063.                 Tab(kLit89,  4);
  1064.                 Tab(kLit116, 5);
  1065.                 #if !LITE_VERSION
  1066.                 Tab(kLit87,  2);
  1067.                 #endif
  1068.                 Tab(kLit86,  1);
  1069.                 
  1070.                 Subview:
  1071.                     Call(MainList);
  1072.                     
  1073.                 }; //Tab Control
  1074.             
  1075.         #endif //if Platform_Mac
  1076.         
  1077.         
  1078.         Spacer(Height = 3, Width = 0);
  1079.         #if Platform_Mac
  1080.             HelpView(Width = UseParent, Height = kHelpViewHeight, kHelpFont);
  1081.         #else
  1082.             Margin(2,2,2,2, Single)
  1083.                 HelpView(Width = UseParent, Height = kHelpViewHeight, kHelpFont);
  1084.             Spacer(Height = 10, Width = 0, VScale);
  1085.         #endif
  1086.         
  1087.         HList(Width = UseParent)
  1088.             {
  1089.             #if Platform_Mac
  1090.             PictPushButton(4000, "ContextHelpProc", HelpFile = kHelpURL)
  1091.                 {
  1092.                 Enabled(Draw, 'cicn',14055 );
  1093.                 Disabled(Draw, 'cicn',14057 ); 
  1094.                 Tracking(Draw, 'cicn',14056 );
  1095.                 };
  1096.             #else
  1097.             PushButton(kHelpTitle, 4000, "ContextHelpProc", HelpFile = kHelpURL);
  1098.             #endif
  1099.  
  1100.  
  1101.             Spacer(Width = 20, Height = 0);
  1102.             
  1103.             #ifdef TryMe
  1104.                 StandardDialogButtonsH;
  1105.             #else
  1106.                 Switch(mode)
  1107.                     {
  1108.                     case 2:
  1109.                         HList(Width = UseParent)
  1110.                             {
  1111.                             PushButton( kLit131, 3114, "SetHTMLEditDefaults", EH kLit132);
  1112.                             StandardDialogButtonsH;
  1113.                             }
  1114.                     
  1115.                     default:
  1116.                         StandardDialogButtonsH;
  1117.                     
  1118.                     } //Switch
  1119.             #endif
  1120.             } //HList
  1121.         } // VList (main dialog)
  1122.  
  1123.