home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / 01_02.iso / software / netscape62win / browser.xpi / bin / chrome / comm.jar / content / editor / EdAdvancedEdit.xul < prev    next >
Encoding:
Extensible Markup Language  |  2001-08-17  |  9.8 KB  |  224 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. <?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
  32. <!-- May not need this here -->
  33. <!-- <?xul-overlay href="chrome://editor/content/EdDialogOverlay.xul"?> -->
  34.  
  35. <!DOCTYPE window SYSTEM "chrome://editor/locale/EdAdvancedEdit.dtd">
  36. <window class="dialog" title="&WindowTitle.label;"
  37.     style="width: 40em;"
  38.     xmlns ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  39.     xmlns:html="http://www.w3.org/1999/xhtml"
  40.     onload="Startup()"
  41.     orient="vertical">
  42.  
  43.   <keyset id="dialogKeys"/>
  44.   <popupset id="aTooltipSet" />
  45.     
  46.   <!-- Methods common to all editor dialogs -->
  47.   <script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js"/>
  48.   <!-- element page functions -->
  49.   <script type="application/x-javascript" src="chrome://editor/content/EdAEHTMLAttributes.js"/>
  50.   <script type="application/x-javascript" src="chrome://editor/content/EdAECSSAttributes.js"/>
  51.   <script type="application/x-javascript" src="chrome://editor/content/EdAEJSEAttributes.js"/>
  52.   <script type="application/x-javascript" src="chrome://editor/content/EdAEAttributes.js"/>
  53.  
  54.   <!-- global dialog functions -->
  55.   <script type="application/x-javascript" src="chrome://editor/content/EdAdvancedEdit.js"/>
  56.   <script type="application/x-javascript" src="chrome://global/content/dialogOverlay.js" />
  57.   <script type="application/x-javascript" src="chrome://global/content/strres.js" />
  58.   <script type="application/x-javascript" src="chrome://help/content/help.js"/>
  59.  
  60.   <broadcaster id="args" value=""/>
  61.  
  62.   <hbox autostretch="never">
  63.     <text class="label" value="¤tattributesfor.label;"/>
  64.     <text class="label header" id="tagLabel"/>
  65.   </hbox>
  66.   
  67.   <separator class="thin"/>
  68.   
  69.   <tabbox orient="vertical" flex="1">
  70.     <tabs>
  71.       <tab label="&tabHTML.label;"/>
  72.       <tab label="&tabCSS.label;"/>
  73.       <tab label="&tabJSE.label;" id="tabJSE"/>
  74.     </tabs>
  75.     <tabpanels flex="1">
  76.       <!-- ============================================================== -->
  77.       <!--                        HTML Attributes                         -->
  78.       <!-- ============================================================== -->
  79.       <vbox flex="1">
  80.         <tree id="HTMLATree" 
  81.           class="AttributesTree inset" 
  82.           flex="1"
  83.           onselect="onSelectHTMLTreeItem();"
  84.           onclick="onSelectHTMLTreeItem();"
  85.           ondblclick="editHTMLAttributeValue(event.target);">
  86.           <treecolgroup>
  87.             <treecol flex="35" width="0"/>
  88.             <splitter class="tree-splitter"/>
  89.             <treecol flex="65" width="0"/>
  90.           </treecolgroup>
  91.           <treehead>
  92.             <treerow>
  93.               <treecell class="treecell-header treecell-inset-header" label="&tree.attributeHeader.label;"/>
  94.               <treecell class="treecell-header treecell-inset-header" label="&tree.valueHeader.label;"/>
  95.             </treerow>
  96.           </treehead>
  97.           <treechildren id="HTMLAList" flex="1"/>
  98.         </tree>
  99.         <hbox valign="middle" autostretch="never" flex="1">
  100.           <text class="label" value="&editAttribute.label;"/>
  101.           <spring flex="1"/>
  102.           <button class="dialog" label="&removeAttribute.label;" oncommand="RemoveHTMLAttribute();"/>
  103.         </hbox>
  104.         <grid>
  105.           <columns>
  106.             <column flex="1"/><column flex="1"/>
  107.           </columns>
  108.           <rows>
  109.             <row valign="bottom" equalsize="always">
  110.               <text class="label" for="AddHTMLAttributeNameInput" value="&AttName.label;"/>
  111.               <text class="label" for="AddHTMLAttributeValueInput" value="&AttValue.label;"/>
  112.             </row>
  113.             <row valign="middle" equalsize="always">
  114.               <!-- Lists are built at runtime -->
  115.               <menulist id="AddHTMLAttributeNameInput" editable="true" flex="1"
  116.                         oninput="onInputHTMLAttributeName();"
  117.                         onchange="onChangeHTMLAttribute();"/>
  118.               <deck id="AddHTMLAttributeValueDeck" flex="1" index="0">
  119.                 <textbox id="AddHTMLAttributeValueTextbox" flex="1"
  120.                          oninput="onInputHTMLAttributeValue();"/>
  121.                 <menulist id="AddHTMLAttributeValueMenulist" editable="true" flex="1"
  122.                           oninput="onInputHTMLAttributeValue();"/>
  123.               </deck>
  124.             </row>
  125.           </rows>
  126.         </grid>
  127.       </vbox>
  128.       <!-- ============================================================== -->
  129.       <!--                         CSS Attributes                         -->
  130.       <!-- ============================================================== -->
  131.       <vbox flex="1">
  132.         <tree id="CSSATree" class="AttributesTree inset" flex="1"
  133.           onselect="onSelectCSSTreeItem();"
  134.           onclick="onSelectCSSTreeItem();"
  135.           ondblclick="editCSSAttributeValue(event.target);">
  136.           <treecolgroup>
  137.             <treecol flex="35" width="0"/>
  138.             <splitter class="tree-splitter"/>
  139.             <treecol flex="65" width="0"/>
  140.           </treecolgroup>
  141.           <treehead>
  142.             <treerow>
  143.               <treecell class="treecell-header treecell-inset-header" label="&tree.propertyHeader.label;"/>
  144.               <treecell class="treecell-header treecell-inset-header" label="&tree.valueHeader.label;"/>
  145.             </treerow>
  146.           </treehead>
  147.           <treechildren id="CSSAList" flex="1"/>
  148.         </tree>
  149.         <hbox valign="middle" autostretch="never" flex="1">
  150.           <text class="label" value="&editAttribute.label;"/>
  151.           <spring flex="1"/>
  152.           <button class="dialog" label="&removeAttribute.label;" oncommand="RemoveCSSAttribute();"/>
  153.         </hbox>
  154.         <grid>
  155.           <columns>
  156.             <column flex="1"/><column flex="1"/>
  157.           </columns>
  158.           <rows>
  159.             <row valign="bottom" equalsize="always">
  160.               <text class="label" for="AddCSSAttributeNameInput"  value="&PropertyName.label;"/>
  161.               <text class="label" for="AddCSSAttributeValueInput" value="&AttValue.label;"/>
  162.             </row>
  163.             <row valign="middle" equalsize="always">
  164.               <textbox id="AddCSSAttributeNameInput" flex="1"
  165.                 oninput="onInputCSSAttributeName();"
  166.                 onchange="onChangeCSSAttribute();"/>
  167.                 <textbox id="AddCSSAttributeValueInput" flex="1"
  168.                 oninput="onInputCSSAttributeValue();"/>
  169.             </row>
  170.           </rows>
  171.         </grid>
  172.       </vbox>
  173.       <!-- ============================================================== -->
  174.       <!--                    JavaScript Event Handlers                   -->
  175.       <!-- ============================================================== -->
  176.       <vbox flex="1">
  177.         <tree id="JSEATree" class="AttributesTree inset" flex="1"
  178.           onselect="onSelectJSETreeItem();"
  179.           onclick="onSelectJSETreeItem();"
  180.           ondblclick="editJSEAttributeValue(event.target);">
  181.           <treecolgroup>
  182.             <treecol flex="35" width="0"/>
  183.             <splitter class="tree-splitter"/>
  184.             <treecol flex="65" wdith="0"/>
  185.           </treecolgroup>
  186.           <treehead>
  187.             <treerow>
  188.               <treecell class="treecell-header treecell-inset-header" label="&tree.attributeHeader.label;"/>
  189.               <treecell class="treecell-header treecell-inset-header" label="&tree.valueHeader.label;"/>
  190.             </treerow>
  191.           </treehead>
  192.           <treechildren id="JSEAList" flex="1"/>
  193.         </tree>
  194.         <hbox valign="middle" autostretch="never" flex="1">
  195.           <text class="label" value="&editAttribute.label;"/>
  196.           <spring flex="1"/>
  197.           <button class="dialog" label="&removeAttribute.label;" oncommand="RemoveJSEAttribute()"/>
  198.         </hbox>
  199.         <grid>
  200.           <columns>
  201.             <column flex="1"/><column flex="1"/>
  202.           </columns>
  203.           <rows>
  204.             <row valign="bottom" equalsize="always">
  205.               <text class="label" for="AddJSEAttributeNameList" value="&AttName.label;"/>
  206.               <text class="label" for="AddJSEAttributeValueInput" value="&AttValue.label;"/>
  207.             </row>
  208.             <row valign="middle" equalsize="always">
  209.               <!-- List is built at runtime -->
  210.               <menulist id="AddJSEAttributeNameList" flex="1"
  211.                 oncommand="onSelectJSEAttribute();"/>
  212.                 <textbox id="AddJSEAttributeValueInput" flex="1"
  213.                 oninput="onInputJSEAttributeValue();"/>
  214.             </row>
  215.           </rows>
  216.         </grid>
  217.       </vbox>
  218.     </tabpanels>
  219.   </tabbox>
  220.   <spring class="spacer"/>
  221.   <hbox id="okCancelHelpButtonsRight"/> 
  222.  
  223. </window>
  224.