home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Complet / thunderbird / chrome / mail.jar / content / editor / EdDialogOverlay.xul < prev    next >
Encoding:
Extensible Markup Language  |  2003-09-11  |  3.6 KB  |  95 lines

  1. <?xml version="1.0"?> 
  2.  
  3. <!--
  4.    - The contents of this file are subject to the Netscape Public
  5.    - License Version 1.1 (the "License"); you may not use this file
  6.    - except in compliance with the License. You may obtain a copy of
  7.    - the License at http://www.mozilla.org/NPL/
  8.    -  
  9.    - Software distributed under the License is distributed on an "AS
  10.    - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  11.    - implied. See the License for the specific language governing
  12.    - rights and limitations under the License.
  13.    -  
  14.    - The Original Code is Mozilla Communicator client code, released
  15.    - March 31, 1998.
  16.    - 
  17.    - The Initial Developer of the Original Code is Netscape
  18.    - Communications Corporation. Portions created by Netscape are
  19.    - Copyright (C) 1998-1999 Netscape Communications Corporation. All
  20.    - Rights Reserved.
  21.    - 
  22.    - Contributor(s): 
  23.   -->
  24.  
  25. <!DOCTYPE overlay SYSTEM "chrome://editor/locale/EdDialogOverlay.dtd">
  26.  
  27. <overlay id="EdDialogOverlay"
  28.      xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  29.  
  30. <vbox id="AdvancedEdit">
  31.   <hbox flex="1" style="margin-top: 0.2em" align="center">
  32.     <!-- This will right-align the button -->
  33.     <spacer flex="1"/>
  34.     <button id="AdvancedEditButton1" oncommand="onAdvancedEdit()" label="&AdvancedEditButton.label;"
  35.             accesskey="&AdvancedEditButton.accessKey;" tooltiptext="&AdvancedEditButton.tooltip;"/>
  36.   </hbox>
  37.   <separator class="groove"/>
  38. </vbox>
  39.  
  40. <!-- Extra buttons to use when just button is needed
  41.      E.g. Image Properties Dialog switches position between 2 locations
  42.      Placed here to use same attributes as AdvancedEditButton button
  43. -->
  44. <button
  45.   id        = "AdvancedEditButton"
  46.   oncommand = "onAdvancedEdit();"
  47.   label     = "&AdvancedEditButton.label;"
  48.   accesskey = "&AdvancedEditButton.accessKey;"
  49.   tooltiptext="&AdvancedEditButton.tooltip;"/>
  50.  
  51. <button 
  52.   id        = "AdvancedEditButton2" 
  53.   oncommand = "onAdvancedEdit()" 
  54.   label     = "&AdvancedEditButton.label;"
  55.   accesskey = "&AdvancedEditButton.accessKey;"
  56.   tooltiptext="&AdvancedEditButton.tooltip;"/>
  57.  
  58. <button 
  59.   id        = "ChooseFile" 
  60.   oncommand = "chooseFile()"
  61.   label     = "&chooseButton.label;"
  62.   accesskey = "&chooseFile.accessKey;"/>
  63.  
  64. <checkbox
  65.   id        = "MakeRelativeCheckbox"
  66.   label     = "&makeUrlRelative.label;"
  67.   accesskey = "&makeUrlRelative.accessKey;"
  68.   oncommand = "MakeInputValueRelativeOrAbsolute(this);"
  69.   tooltiptext = "&makeUrlRelative.tooltip;"/>
  70.  
  71. <vbox id="LinkLocationBox">
  72.   <label control="hrefInput" accesskey="&LinkURLEditField.accessKey;" width="1">&LinkURLEditField.label;</label>
  73.   <textbox id="hrefInput" type="autocomplete"
  74.            searchSessions="history" timeout="50" maxrows="6"
  75.            disablehistory="false" class="uri-element"
  76.            oninput="ChangeLinkLocation();">
  77.     <menupopup class="autocomplete-history-popup"
  78.                popupalign="topleft" popupanchor="bottomleft"
  79.                oncommand="this.parentNode.value = event.target.getAttribute('label');"/>
  80.   </textbox>
  81.   <hbox align="center">
  82.     <!-- from EdDialogOverlay.xul 'for' identifies the textfield to get URL from -->
  83.     <checkbox id="MakeRelativeLink"
  84.               for="hrefInput"
  85.               label="&makeUrlRelative.label;"
  86.               accesskey="&makeUrlRelative.accessKey;"
  87.               oncommand="MakeInputValueRelativeOrAbsolute(this);"
  88.               tooltiptext="&makeUrlRelative.tooltip;"/>
  89.     <spacer flex="1"/>
  90.     <button label="&chooseButton.label;" accesskey="&chooseFileLink.accessKey;" oncommand="chooseLinkFile();"/>
  91.   </hbox>
  92. </vbox>  
  93.  
  94. </overlay>    
  95.