/toolkit/mozapps/downloads/content/unknownContentType.xul

http://github.com/zpao/v8monkey · Unknown · 142 lines · 130 code · 12 blank · 0 comment · 0 complexity · 35da2bcef4299299adff748331cf1109 MD5 · raw file

  1. <?xml version="1.0"?>
  2. # -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  3. # ***** BEGIN LICENSE BLOCK *****
  4. # Version: MPL 1.1/GPL 2.0/LGPL 2.1
  5. #
  6. # The contents of this file are subject to the Mozilla Public License Version
  7. # 1.1 (the "License"); you may not use this file except in compliance with
  8. # the License. You may obtain a copy of the License at
  9. # http://www.mozilla.org/MPL/
  10. #
  11. # Software distributed under the License is distributed on an "AS IS" basis,
  12. # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  13. # for the specific language governing rights and limitations under the
  14. # License.
  15. #
  16. # The Original Code is Mozilla.org Code.
  17. #
  18. # The Initial Developer of the Original Code is
  19. # Doron Rosenberg.
  20. # Portions created by the Initial Developer are Copyright (C) 2001
  21. # the Initial Developer. All Rights Reserved.
  22. #
  23. # Contributor(s):
  24. # Ben Goodger <ben@bengoodger.com> (v2.0)
  25. # Bill Law <law@netscape.com>
  26. #
  27. # Alternatively, the contents of this file may be used under the terms of
  28. # either the GNU General Public License Version 2 or later (the "GPL"), or
  29. # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  30. # in which case the provisions of the GPL or the LGPL are applicable instead
  31. # of those above. If you wish to allow use of your version of this file only
  32. # under the terms of either the GPL or the LGPL, and not to allow others to
  33. # use your version of this file under the terms of the MPL, indicate your
  34. # decision by deleting the provisions above and replace them with the notice
  35. # and other provisions required by the GPL or the LGPL. If you do not delete
  36. # the provisions above, a recipient may use your version of this file under
  37. # the terms of any one of the MPL, the GPL or the LGPL.
  38. #
  39. # ***** END LICENSE BLOCK *****
  40. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  41. <?xml-stylesheet href="chrome://mozapps/skin/downloads/unknownContentType.css" type="text/css"?>
  42. <!DOCTYPE dialog [
  43. <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
  44. %brandDTD;
  45. <!ENTITY % uctDTD SYSTEM "chrome://mozapps/locale/downloads/unknownContentType.dtd" >
  46. %uctDTD;
  47. <!ENTITY % scDTD SYSTEM "chrome://mozapps/locale/downloads/settingsChange.dtd" >
  48. %scDTD;
  49. ]>
  50. <dialog id="unknownContentType"
  51. xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  52. onload="dialog.initDialog();" onunload="if (dialog) dialog.onCancel();"
  53. onblur="if (dialog) dialog.onBlur(event);" onfocus="dialog.onFocus(event);"
  54. #ifdef XP_WIN
  55. style="width: 36em;"
  56. #else
  57. style="width: 34em;"
  58. #endif
  59. screenX="" screenY=""
  60. persist="screenX screenY"
  61. ondialogaccept="return dialog.onOK()"
  62. ondialogcancel="return dialog.onCancel()">
  63. <script type="application/javascript" src="chrome://mozapps/content/downloads/helperApps.js"/>
  64. <stringbundle id="strings" src="chrome://mozapps/locale/downloads/unknownContentType.properties"/>
  65. <vbox flex="1" id="container">
  66. <description>&intro.label;</description>
  67. <separator class="thin"/>
  68. <hbox align="start" class="small-indent">
  69. <image id="contentTypeImage"/>
  70. <vbox flex="1">
  71. <description id="location" class="plain" crop="start" flex="1"/>
  72. <separator class="thin"/>
  73. <hbox align="center">
  74. <label value="&whichIsA.label;" id="whichIsA"/>
  75. <textbox id="type" class="plain" readonly="true" flex="1" noinitialfocus="true"/>
  76. </hbox>
  77. <hbox align="center">
  78. <label value="&from.label;" id="from"/>
  79. <description id="source" class="plain" crop="start" flex="1"/>
  80. </hbox>
  81. </vbox>
  82. </hbox>
  83. <separator class="thin"/>
  84. <hbox align="center" id="basicBox" collapsed="true">
  85. <label value="&unknownPromptText.label;" flex="1"/>
  86. </hbox>
  87. <groupbox flex="1" id="normalBox">
  88. <caption label="&actionQuestion.label;"/>
  89. <separator class="thin"/>
  90. <radiogroup id="mode" class="small-indent">
  91. <hbox>
  92. <radio id="open" label="&openWith.label;" accesskey="&openWith.accesskey;"/>
  93. <deck id="modeDeck" flex="1">
  94. <hbox id="openHandlerBox" flex="1" align="center"/>
  95. <hbox flex="1" align="center">
  96. <button id="chooseButton" oncommand="dialog.chooseApp();"
  97. #ifdef XP_MACOSX
  98. label="&chooseHandlerMac.label;" accesskey="&chooseHandlerMac.accesskey;"/>
  99. #else
  100. label="&chooseHandler.label;" accesskey="&chooseHandler.accesskey;"/>
  101. #endif
  102. </hbox>
  103. </deck>
  104. </hbox>
  105. <radio id="save" label="&saveFile.label;" accesskey="&saveFile.accesskey;"/>
  106. </radiogroup>
  107. <separator class="thin"/>
  108. <hbox class="small-indent">
  109. <checkbox id="rememberChoice" label="&rememberChoice.label;"
  110. accesskey="&rememberChoice.accesskey;"
  111. oncommand="dialog.toggleRememberChoice(event.target);"/>
  112. </hbox>
  113. <separator/>
  114. #ifdef XP_UNIX
  115. <description id="settingsChange" hidden="true">&settingsChangePreferences.label;</description>
  116. #else
  117. <description id="settingsChange" hidden="true">&settingsChangeOptions.label;</description>
  118. #endif
  119. <separator class="thin"/>
  120. </groupbox>
  121. </vbox>
  122. <menulist id="openHandler" flex="1">
  123. <menupopup id="openHandlerPopup" oncommand="dialog.openHandlerCommand();">
  124. <menuitem id="defaultHandler" default="true" crop="right"/>
  125. <menuitem id="otherHandler" hidden="true" crop="left"/>
  126. <menuseparator/>
  127. <menuitem id="choose" label="&other.label;"/>
  128. </menupopup>
  129. </menulist>
  130. </dialog>