/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
- <?xml version="1.0"?>
- # -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
- # ***** BEGIN LICENSE BLOCK *****
- # Version: MPL 1.1/GPL 2.0/LGPL 2.1
- #
- # The contents of this file are subject to the Mozilla Public License Version
- # 1.1 (the "License"); you may not use this file except in compliance with
- # the License. You may obtain a copy of the License at
- # http://www.mozilla.org/MPL/
- #
- # Software distributed under the License is distributed on an "AS IS" basis,
- # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- # for the specific language governing rights and limitations under the
- # License.
- #
- # The Original Code is Mozilla.org Code.
- #
- # The Initial Developer of the Original Code is
- # Doron Rosenberg.
- # Portions created by the Initial Developer are Copyright (C) 2001
- # the Initial Developer. All Rights Reserved.
- #
- # Contributor(s):
- # Ben Goodger <ben@bengoodger.com> (v2.0)
- # Bill Law <law@netscape.com>
- #
- # Alternatively, the contents of this file may be used under the terms of
- # either the GNU General Public License Version 2 or later (the "GPL"), or
- # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- # in which case the provisions of the GPL or the LGPL are applicable instead
- # of those above. If you wish to allow use of your version of this file only
- # under the terms of either the GPL or the LGPL, and not to allow others to
- # use your version of this file under the terms of the MPL, indicate your
- # decision by deleting the provisions above and replace them with the notice
- # and other provisions required by the GPL or the LGPL. If you do not delete
- # the provisions above, a recipient may use your version of this file under
- # the terms of any one of the MPL, the GPL or the LGPL.
- #
- # ***** END LICENSE BLOCK *****
- <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
- <?xml-stylesheet href="chrome://mozapps/skin/downloads/unknownContentType.css" type="text/css"?>
- <!DOCTYPE dialog [
- <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
- %brandDTD;
- <!ENTITY % uctDTD SYSTEM "chrome://mozapps/locale/downloads/unknownContentType.dtd" >
- %uctDTD;
- <!ENTITY % scDTD SYSTEM "chrome://mozapps/locale/downloads/settingsChange.dtd" >
- %scDTD;
- ]>
- <dialog id="unknownContentType"
- xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- onload="dialog.initDialog();" onunload="if (dialog) dialog.onCancel();"
- onblur="if (dialog) dialog.onBlur(event);" onfocus="dialog.onFocus(event);"
- #ifdef XP_WIN
- style="width: 36em;"
- #else
- style="width: 34em;"
- #endif
- screenX="" screenY=""
- persist="screenX screenY"
- ondialogaccept="return dialog.onOK()"
- ondialogcancel="return dialog.onCancel()">
- <script type="application/javascript" src="chrome://mozapps/content/downloads/helperApps.js"/>
- <stringbundle id="strings" src="chrome://mozapps/locale/downloads/unknownContentType.properties"/>
- <vbox flex="1" id="container">
- <description>&intro.label;</description>
- <separator class="thin"/>
- <hbox align="start" class="small-indent">
- <image id="contentTypeImage"/>
- <vbox flex="1">
- <description id="location" class="plain" crop="start" flex="1"/>
- <separator class="thin"/>
- <hbox align="center">
- <label value="&whichIsA.label;" id="whichIsA"/>
- <textbox id="type" class="plain" readonly="true" flex="1" noinitialfocus="true"/>
- </hbox>
- <hbox align="center">
- <label value="&from.label;" id="from"/>
- <description id="source" class="plain" crop="start" flex="1"/>
- </hbox>
- </vbox>
- </hbox>
-
- <separator class="thin"/>
- <hbox align="center" id="basicBox" collapsed="true">
- <label value="&unknownPromptText.label;" flex="1"/>
- </hbox>
- <groupbox flex="1" id="normalBox">
- <caption label="&actionQuestion.label;"/>
- <separator class="thin"/>
- <radiogroup id="mode" class="small-indent">
- <hbox>
- <radio id="open" label="&openWith.label;" accesskey="&openWith.accesskey;"/>
- <deck id="modeDeck" flex="1">
- <hbox id="openHandlerBox" flex="1" align="center"/>
- <hbox flex="1" align="center">
- <button id="chooseButton" oncommand="dialog.chooseApp();"
- #ifdef XP_MACOSX
- label="&chooseHandlerMac.label;" accesskey="&chooseHandlerMac.accesskey;"/>
- #else
- label="&chooseHandler.label;" accesskey="&chooseHandler.accesskey;"/>
- #endif
- </hbox>
- </deck>
- </hbox>
-
- <radio id="save" label="&saveFile.label;" accesskey="&saveFile.accesskey;"/>
- </radiogroup>
- <separator class="thin"/>
- <hbox class="small-indent">
- <checkbox id="rememberChoice" label="&rememberChoice.label;"
- accesskey="&rememberChoice.accesskey;"
- oncommand="dialog.toggleRememberChoice(event.target);"/>
- </hbox>
-
- <separator/>
- #ifdef XP_UNIX
- <description id="settingsChange" hidden="true">&settingsChangePreferences.label;</description>
- #else
- <description id="settingsChange" hidden="true">&settingsChangeOptions.label;</description>
- #endif
- <separator class="thin"/>
- </groupbox>
- </vbox>
-
- <menulist id="openHandler" flex="1">
- <menupopup id="openHandlerPopup" oncommand="dialog.openHandlerCommand();">
- <menuitem id="defaultHandler" default="true" crop="right"/>
- <menuitem id="otherHandler" hidden="true" crop="left"/>
- <menuseparator/>
- <menuitem id="choose" label="&other.label;"/>
- </menupopup>
- </menulist>
- </dialog>