home *** CD-ROM | disk | FTP | other *** search
/ ftp.swcp.com / ftp.swcp.com.zip / ftp.swcp.com / mac / mozilla-macos9-1.3.1.sea.bin / Mozilla1.3.1 / Chrome / comm.jar / content / editor / EdInsertTOC.xul < prev    next >
Extensible Markup Language  |  2003-06-08  |  13KB  |  264 lines

  1. <?xml version="1.0"?>
  2. <!-- ***** BEGIN LICENSE BLOCK *****
  3.    - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.    -
  5.    - The contents of this file are subject to the Mozilla Public License Version
  6.    - 1.1 (the "License"); you may not use this file except in compliance with
  7.    - the License. You may obtain a copy of the License at
  8.    - http://www.mozilla.org/MPL/
  9.    -
  10.    - Software distributed under the License is distributed on an "AS IS" basis,
  11.    - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.    - for the specific language governing rights and limitations under the
  13.    - License.
  14.    -
  15.    - The Original Code is TocMaker.
  16.    -
  17.    - The Initial Developer of the Original Code is
  18.    - Daniel Glazman.
  19.    - Portions created by the Initial Developer are Copyright (C) 2002
  20.    - the Initial Developer. All Rights Reserved.
  21.    -
  22.    - Contributor(s):
  23.    -   Original author: Daniel Glazman (daniel@glazman.org)
  24.    -
  25.    - Alternatively, the contents of this file may be used under the terms of
  26.    - either the GNU General Public License Version 2 or later (the "GPL"), or
  27.    - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.    - in which case the provisions of the GPL or the LGPL are applicable instead
  29.    - of those above. If you wish to allow use of your version of this file only
  30.    - under the terms of either the GPL or the LGPL, and not to allow others to
  31.    - use your version of this file under the terms of the MPL, indicate your
  32.    - decision by deleting the provisions above and replace them with the notice
  33.    - and other provisions required by the LGPL or the GPL. If you do not delete
  34.    - the provisions above, a recipient may use your version of this file under
  35.    - the terms of any one of the MPL, the GPL or the LGPL.
  36.    -
  37.    - ***** END LICENSE BLOCK ***** -->
  38.  
  39. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  40. <?xml-stylesheet href="chrome://editor/skin/" type="text/css"?>
  41. <?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?>
  42.  
  43. <?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
  44. <?xul-overlay href="chrome://editor/content/EdDialogOverlay.xul"?>
  45. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  46.  
  47.  
  48. <!DOCTYPE window SYSTEM "chrome://editor/locale/EditorInsertTOC.dtd">
  49.  
  50. <dialog title="&Window.title;"
  51.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  52.     xmlns:html="http://www.w3.org/1999/xhtml"
  53.     onload="Startup();"
  54.     ondialogaccept="return BuildTOC(true);"
  55.     oncancel="window.close(); return true;">
  56.  
  57.   <!-- Methods common to all editor dialogs -->
  58.   <script type="application/x-javascript" src="chrome://editor/content/editorUtilities.js"/>
  59.  
  60.   <script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js"/>
  61.   <script type="application/x-javascript" src="chrome://editor/content/EdInsertTOC.js"/>
  62.   <script type="application/x-javascript" src="chrome://global/content/dialogOverlay.js" />
  63.  
  64.   <spacer id="location" offsetY="50" persist="offsetX offsetY"/>
  65.   <spacer id="dummy" style="display:none"/>
  66.   <broadcaster id="args" value=""/>
  67.   <vbox flex="1">
  68.     <groupbox><caption label="&buildToc.label;"/>
  69.       <grid>
  70.         <columns><column/><column style="min-width: 6em"/><column/></columns>
  71.         <rows>
  72.           <row align="center">
  73.             <spacer/>
  74.             <label value="&tag.label;"/>
  75.             <label value="&class.label;"/>
  76.           </row>
  77.           <row align="center">
  78.             <label value="&header1.label;"/>
  79.             <menulist id="header1Menulist">
  80.               <menupopup>
  81.                 <menuitem id="header1none" label="--" value=""
  82.                           oncommand="selectHeader(this, 1)"/>
  83.                 <menuseparator/>
  84.                 <menuitem id="header1H1"  label="h1"  value="h1"
  85.                           oncommand="selectHeader(this, 1)"/>
  86.                 <menuitem id="header1H2"  label="h2"  value="h2"
  87.                           oncommand="selectHeader(this, 1)"/>
  88.                 <menuitem id="header1H3"  label="h3"  value="h3"
  89.                           oncommand="selectHeader(this, 1)"/>
  90.                 <menuitem id="header1H4"  label="h4"  value="h4"
  91.                           oncommand="selectHeader(this, 1)"/>
  92.                 <menuitem id="header1H5"  label="h5"  value="h5"
  93.                           oncommand="selectHeader(this, 1)"/>
  94.                 <menuitem id="header1H6"  label="h6"  value="h6"
  95.                           oncommand="selectHeader(this, 1)"/>
  96.                 <menuitem id="header1DIV" label="div" value="div"
  97.                           oncommand="selectHeader(this, 1)"/>
  98.                 <menuitem id="header1P"   label="p"   value="p"
  99.                           oncommand="selectHeader(this, 1)"/>
  100.               </menupopup>
  101.             </menulist>
  102.             <textbox id="header1Class" size="10"
  103.                      oninput="changeClass(this, 1)"/>
  104.           </row>
  105.  
  106.           <row align="center">
  107.             <label value="&header2.label;"/>
  108.             <menulist id="header2Menulist">
  109.               <menupopup>
  110.                 <menuitem id="header2none" label="--" value=""
  111.                           oncommand="selectHeader(this, 2)"/>
  112.                 <menuseparator/>
  113.                 <menuitem id="header2H1"  label="h1"  value="h1"
  114.                           oncommand="selectHeader(this, 2)"/>
  115.                 <menuitem id="header2H2"  label="h2"  value="h2"
  116.                           oncommand="selectHeader(this, 2)"/>
  117.                 <menuitem id="header2H3"  label="h3"  value="h3"
  118.                           oncommand="selectHeader(this, 2)"/>
  119.                 <menuitem id="header2H4"  label="h4"  value="h4"
  120.                           oncommand="selectHeader(this, 2)"/>
  121.                 <menuitem id="header2H5"  label="h5"  value="h5"
  122.                           oncommand="selectHeader(this, 2)"/>
  123.                 <menuitem id="header2H6"  label="h6"  value="h6"
  124.                           oncommand="selectHeader(this, 2)"/>
  125.                 <menuitem id="header2DIV" label="div" value="div"
  126.                           oncommand="selectHeader(this, 2)"/>
  127.                 <menuitem id="header2P"   label="p"   value="p"
  128.                           oncommand="selectHeader(this, 2)"/>
  129.               </menupopup>
  130.             </menulist>
  131.             <textbox id="header2Class" size="10"
  132.                      oninput="changeClass(this, 2)"/>
  133.           </row>
  134.  
  135.           <row align="center">
  136.             <label value="&header3.label;"/>
  137.             <menulist id="header3Menulist">
  138.               <menupopup>
  139.                 <menuitem id="header3none" label="--" value=""
  140.                           oncommand="selectHeader(this, 3)"/>
  141.                 <menuseparator/>
  142.                 <menuitem id="header3H1"  label="h1"  value="h1"
  143.                           oncommand="selectHeader(this, 3)"/>
  144.                 <menuitem id="header3H2"  label="h2"  value="h2"
  145.                           oncommand="selectHeader(this, 3)"/>
  146.                 <menuitem id="header3H3"  label="h3"  value="h3"
  147.                           oncommand="selectHeader(this, 3)"/>
  148.                 <menuitem id="header3H4"  label="h4"  value="h4"
  149.                           oncommand="selectHeader(this, 3)"/>
  150.                 <menuitem id="header3H5"  label="h5"  value="h5"
  151.                           oncommand="selectHeader(this, 3)"/>
  152.                 <menuitem id="header3H6"  label="h6"  value="h6"
  153.                           oncommand="selectHeader(this, 3)"/>
  154.                 <menuitem id="header3DIV" label="div" value="div"
  155.                           oncommand="selectHeader(this, 3)"/>
  156.                 <menuitem id="header3P"   label="p"   value="p"
  157.                           oncommand="selectHeader(this, 3)"/>
  158.               </menupopup>
  159.             </menulist>
  160.             <textbox id="header3Class" size="10"
  161.                      oninput="changeClass(this, 3)"/>
  162.           </row>
  163.  
  164.           <row align="center">
  165.             <label value="&header4.label;"/>
  166.             <menulist id="header4Menulist">
  167.               <menupopup>
  168.                 <menuitem id="header4none" label="--" value=""
  169.                           oncommand="selectHeader(this, 4)"/>
  170.                 <menuseparator/>
  171.                 <menuitem id="header4H1"  label="h1"  value="h1"
  172.                           oncommand="selectHeader(this, 4)"/>
  173.                 <menuitem id="header4H2"  label="h2"  value="h2"
  174.                           oncommand="selectHeader(this, 4)"/>
  175.                 <menuitem id="header4H3"  label="h3"  value="h3"
  176.                           oncommand="selectHeader(this, 4)"/>
  177.                 <menuitem id="header4H4"  label="h4"  value="h4"
  178.                           oncommand="selectHeader(this, 4)"/>
  179.                 <menuitem id="header4H5"  label="h5"  value="h5"
  180.                           oncommand="selectHeader(this, 4)"/>
  181.                 <menuitem id="header4H6"  label="h6"  value="h6"
  182.                           oncommand="selectHeader(this, 4)"/>
  183.                 <menuitem id="header4DIV" label="div" value="div"
  184.                           oncommand="selectHeader(this, 4)"/>
  185.                 <menuitem id="header4P"   label="p"   value="p"
  186.                           oncommand="selectHeader(this, 4)"/>
  187.               </menupopup>
  188.             </menulist>
  189.             <textbox id="header4Class" size="10"
  190.                      oninput="changeClass(this, 4)"/>
  191.           </row>
  192.  
  193.           <row align="center">
  194.             <label value="&header5.label;"/>
  195.             <menulist id="header5Menulist">
  196.               <menupopup>
  197.                 <menuitem id="header5none" label="--" value=""
  198.                           oncommand="selectHeader(this, 5)"/>
  199.                 <menuseparator/>
  200.                 <menuitem id="header5H1"  label="h1"  value="h1"
  201.                           oncommand="selectHeader(this, 5)"/>
  202.                 <menuitem id="header5H2"  label="h2"  value="h2"
  203.                           oncommand="selectHeader(this, 5)"/>
  204.                 <menuitem id="header5H3"  label="h3"  value="h3"
  205.                           oncommand="selectHeader(this, 5)"/>
  206.                 <menuitem id="header5H4"  label="h4"  value="h4"
  207.                           oncommand="selectHeader(this, 5)"/>
  208.                 <menuitem id="header5H5"  label="h5"  value="h5"
  209.                           oncommand="selectHeader(this, 5)"/>
  210.                 <menuitem id="header5H6"  label="h6"  value="h6"
  211.                           oncommand="selectHeader(this, 5)"/>
  212.                 <menuitem id="header5DIV" label="div" value="div"
  213.                           oncommand="selectHeader(this, 5)"/>
  214.                 <menuitem id="header5P"   label="p"   value="p"
  215.                           oncommand="selectHeader(this, 5)"/>
  216.               </menupopup>
  217.             </menulist>
  218.             <textbox id="header5Class" size="10"
  219.                      oninput="changeClass(this, 5)"/>
  220.           </row>
  221.  
  222.           <row align="center">
  223.             <label value="&header6.label;"/>
  224.             <menulist id="header6Menulist">
  225.               <menupopup>
  226.                 <menuitem id="header6none" label="--" value=""
  227.                           oncommand="selectHeader(this, 6)"/>
  228.                 <menuseparator/>
  229.                 <menuitem id="header6H1"  label="h1"  value="h1"
  230.                           oncommand="selectHeader(this, 6)"/>
  231.                 <menuitem id="header6H2"  label="h2"  value="h2"
  232.                           oncommand="selectHeader(this, 6)"/>
  233.                 <menuitem id="header6H3"  label="h3"  value="h3"
  234.                           oncommand="selectHeader(this, 6)"/>
  235.                 <menuitem id="header6H4"  label="h4"  value="h4"
  236.                           oncommand="selectHeader(this, 6)"/>
  237.                 <menuitem id="header6H5"  label="h5"  value="h5"
  238.                           oncommand="selectHeader(this, 6)"/>
  239.                 <menuitem id="header6H6"  label="h6"  value="h6"
  240.                           oncommand="selectHeader(this, 6)"/>
  241.                 <menuitem id="header6DIV" label="div" value="div"
  242.                           oncommand="selectHeader(this, 6)"/>
  243.                 <menuitem id="header6P"   label="p"   value="p"
  244.                           oncommand="selectHeader(this, 6)"/>
  245.               </menupopup>
  246.             </menulist>
  247.             <textbox id="header6Class" size="10"
  248.                      oninput="changeClass(this, 6)"/>
  249.           </row>
  250.         </rows>
  251.       </grid>
  252.     </groupbox>
  253.     <vbox>
  254.       <checkbox id="orderedListCheckbox"
  255.                 label="&orderedList.label;"
  256.                 oncommand="ToggleOrderedList(this)"/>
  257.       <checkbox id="readOnlyCheckbox"
  258.                 label="&makeReadOnly.label;"
  259.                 oncommand="ToggleReadOnlyToc(this)"/>
  260.     </vbox>
  261.     <separator class="groove"/>
  262.   </vbox>
  263. </dialog>
  264.