home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Complet / thunderbird / chrome / mail.jar / content / editor / EdAdvancedEdit.xul < prev    next >
Encoding:
Extensible Markup Language  |  2003-03-17  |  8.7 KB  |  207 lines

  1. <?xml version="1.0"?>
  2. <!--
  3.    - The contents of this file are subject to the Netscape Public
  4.    - License Version 1.1 (the "License"); you may not use this file
  5.    - except in compliance with the License. You may obtain a copy of
  6.    - the License at http://www.mozilla.org/NPL/
  7.    -  
  8.    - Software distributed under the License is distributed on an "AS
  9.    - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  10.    - implied. See the License for the specific language governing
  11.    - rights and limitations under the License.
  12.    -  
  13.    - The Original Code is Mozilla Communicator client code, released
  14.    - March 31, 1998.
  15.    - 
  16.    - The Initial Developer of the Original Code is Netscape
  17.    - Communications Corporation. Portions created by Netscape are
  18.    - Copyright (C) 1998-1999 Netscape Communications Corporation. All
  19.    - Rights Reserved.
  20.    - 
  21.    - Contributor(s): 
  22.    -   Ben "Count XULula" Goodger
  23.   -->
  24.  
  25. <!-- first checkin of the year 2000!      -->
  26. <!-- Ben Goodger, 12:50AM, 01/00/00 NZST  -->
  27.  
  28. <?xml-stylesheet href="chrome://editor/skin/editor.css" type="text/css"?>
  29. <?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?>
  30.  
  31. <!-- May not need this here -->
  32. <!-- <?xul-overlay href="chrome://editor/content/EdDialogOverlay.xul"?> -->
  33.  
  34. <!DOCTYPE dialog SYSTEM "chrome://editor/locale/EdAdvancedEdit.dtd">
  35. <dialog title="&WindowTitle.label;"
  36.     style="width: 40em;"
  37.     xmlns ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  38.     onload="Startup()"
  39.     buttons="accept,cancel,help"
  40.     ondialogaccept="return onAccept();"
  41.     ondialogcancel="return onCancel();"
  42.     ondialoghelp="return doHelpButton();">
  43.  
  44.   <!-- Methods common to all editor dialogs -->
  45.   <script type="application/x-javascript" src="chrome://editor/content/editorUtilities.js"/>
  46.   <script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js"/>
  47.   <!-- element page functions -->
  48.   <script type="application/x-javascript" src="chrome://editor/content/EdAEHTMLAttributes.js"/>
  49.   <script type="application/x-javascript" src="chrome://editor/content/EdAECSSAttributes.js"/>
  50.   <script type="application/x-javascript" src="chrome://editor/content/EdAEJSEAttributes.js"/>
  51.   <script type="application/x-javascript" src="chrome://editor/content/EdAEAttributes.js"/>
  52.  
  53.   <!-- global dialog functions -->
  54.   <script type="application/x-javascript" src="chrome://editor/content/EdAdvancedEdit.js"/>
  55.   <script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>
  56.  
  57.   <broadcaster id="args" value=""/>
  58.  
  59.   <hbox>
  60.     <label value="¤tattributesfor.label;"/>
  61.     <label class="header" id="tagLabel"/>
  62.   </hbox>
  63.   
  64.   <separator class="thin"/>
  65.   
  66.   <tabbox flex="1">
  67.     <tabs>
  68.       <tab label="&tabHTML.label;"/>
  69.       <tab label="&tabCSS.label;"/>
  70.       <tab label="&tabJSE.label;" id="tabJSE"/>
  71.     </tabs>
  72.     <tabpanels flex="1">
  73.       <!-- ============================================================== -->
  74.       <!--                        HTML Attributes                         -->
  75.       <!-- ============================================================== -->
  76.       <vbox>
  77.         <tree id="HTMLATree" class="AttributesTree" flex="1"
  78.           hidecolumnpicker="true" seltype="single"
  79.           onselect="onSelectHTMLTreeItem();"
  80.           onclick="onSelectHTMLTreeItem();"
  81.           ondblclick="editHTMLAttributeValue(event.target);">
  82.           <treecols>
  83.             <treecol id="HTMLAttrCol" flex="35" label="&tree.attributeHeader.label;"/>
  84.             <splitter class="tree-splitter"/>
  85.             <treecol id="HTMLValCol" flex="65" label="&tree.valueHeader.label;"/>
  86.           </treecols>
  87.           <treechildren id="HTMLAList" class="gridlines" flex="1"/>
  88.         </tree>
  89.         <hbox align="center">
  90.           <label value="&editAttribute.label;"/>
  91.           <spacer flex="1"/>
  92.           <button label="&removeAttribute.label;" oncommand="RemoveHTMLAttribute();"/>
  93.         </hbox>
  94.         <grid>
  95.           <columns>
  96.             <column flex="1"/><column flex="1"/>
  97.           </columns>
  98.           <rows>
  99.             <row equalsize="always">
  100.               <label control="AddHTMLAttributeNameInput" value="&AttName.label;"/>
  101.               <label control="AddHTMLAttributeValueInput" value="&AttValue.label;"/>
  102.             </row>
  103.             <row align="top" equalsize="always">
  104.               <!-- Lists are built at runtime -->
  105.               <menulist id="AddHTMLAttributeNameInput" editable="true" flex="1"
  106.                         oninput="onInputHTMLAttributeName();"
  107.                         onchange="onChangeHTMLAttribute();"/>
  108.               <deck id="AddHTMLAttributeValueDeck" selectedIndex="0">
  109.                 <hbox align="top">
  110.                   <textbox id="AddHTMLAttributeValueTextbox" flex="1"
  111.                            oninput="onInputHTMLAttributeValue();"/>
  112.                 </hbox>
  113.                 <hbox align="top">
  114.                   <menulist id="AddHTMLAttributeValueMenulist" editable="true" flex="1"
  115.                             oninput="onInputHTMLAttributeValue();"/>
  116.                 </hbox>
  117.               </deck>
  118.             </row>
  119.           </rows>
  120.         </grid>
  121.       </vbox>
  122.       <!-- ============================================================== -->
  123.       <!--                         CSS Attributes                         -->
  124.       <!-- ============================================================== -->
  125.       <vbox>
  126.         <tree id="CSSATree" class="AttributesTree" flex="1"
  127.           hidecolumnpicker="true" seltype="single"
  128.           onselect="onSelectCSSTreeItem();"
  129.           onclick="onSelectCSSTreeItem();"
  130.           ondblclick="editCSSAttributeValue(event.target);">
  131.           <treecols>
  132.             <treecol id="CSSPropCol" flex="35" label="&tree.propertyHeader.label;"/>
  133.             <splitter class="tree-splitter"/>
  134.             <treecol id="CSSValCol" flex="65" label="&tree.valueHeader.label;"/>
  135.           </treecols>
  136.           <treechildren id="CSSAList" class="gridlines" flex="1"/>
  137.         </tree>
  138.         <hbox align="center">
  139.           <label value="&editAttribute.label;"/>
  140.           <spacer flex="1"/>
  141.           <button label="&removeAttribute.label;" oncommand="RemoveCSSAttribute();"/>
  142.         </hbox>
  143.         <grid>
  144.           <columns>
  145.             <column flex="1"/><column flex="1"/>
  146.           </columns>
  147.           <rows>
  148.             <row equalsize="always">
  149.               <label value="&PropertyName.label;"/>
  150.               <label value="&AttValue.label;"/>
  151.             </row>
  152.             <row align="top" equalsize="always">
  153.               <textbox id="AddCSSAttributeNameInput" flex="1"
  154.                 oninput="onInputCSSAttributeName();"
  155.                 onchange="onChangeCSSAttribute();"/>
  156.                 <textbox id="AddCSSAttributeValueInput" flex="1"
  157.                 oninput="onChangeCSSAttribute();"/>
  158.             </row>
  159.           </rows>
  160.         </grid>
  161.       </vbox>
  162.       <!-- ============================================================== -->
  163.       <!--                    JavaScript Event Handlers                   -->
  164.       <!-- ============================================================== -->
  165.       <vbox>
  166.         <tree id="JSEATree" class="AttributesTree" flex="1"
  167.           hidecolumnpicker="true" seltype="single"
  168.           onselect="onSelectJSETreeItem();"
  169.           onclick="onSelectJSETreeItem();"
  170.           ondblclick="editJSEAttributeValue(event.target);">
  171.           <treecols>
  172.             <treecol id="AttrCol" flex="35" label="&tree.attributeHeader.label;"/>
  173.             <splitter class="tree-splitter"/>
  174.             <treecol id="HeaderCol" flex="65" label="&tree.valueHeader.label;"/>
  175.           </treecols>
  176.           <treechildren id="JSEAList" class="gridlines" flex="1"/>
  177.         </tree>
  178.         <hbox align="center">
  179.           <label value="&editAttribute.label;"/>
  180.           <spacer flex="1"/>
  181.           <button label="&removeAttribute.label;" oncommand="RemoveJSEAttribute()"/>
  182.         </hbox>
  183.         <grid>
  184.           <columns>
  185.             <column flex="1"/><column flex="1"/>
  186.           </columns>
  187.           <rows>
  188.             <row equalsize="always">
  189.               <label value="&AttName.label;"/>
  190.               <label value="&AttValue.label;"/>
  191.             </row>
  192.             <row align="top" equalsize="always">
  193.               <!-- List is built at runtime -->
  194.               <menulist id="AddJSEAttributeNameList" flex="1"
  195.                 oncommand="onSelectJSEAttribute();">
  196.                 <menupopup/>
  197.               </menulist>
  198.                 <textbox id="AddJSEAttributeValueInput" flex="1"
  199.                 oninput="onInputJSEAttributeValue();"/>
  200.             </row>
  201.           </rows>
  202.         </grid>
  203.       </vbox>
  204.     </tabpanels>
  205.   </tabbox>
  206. </dialog>
  207.