PageRenderTime 29ms CodeModel.GetById 19ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 41<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
 42<?xml-stylesheet href="chrome://mozapps/skin/downloads/unknownContentType.css" type="text/css"?>
 43
 44<!DOCTYPE dialog [
 45  <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
 46  %brandDTD;
 47  <!ENTITY % uctDTD SYSTEM "chrome://mozapps/locale/downloads/unknownContentType.dtd" >
 48  %uctDTD;
 49  <!ENTITY % scDTD SYSTEM "chrome://mozapps/locale/downloads/settingsChange.dtd" >
 50  %scDTD;
 51]>            
 52
 53<dialog id="unknownContentType"
 54        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
 55        onload="dialog.initDialog();" onunload="if (dialog) dialog.onCancel();"
 56        onblur="if (dialog) dialog.onBlur(event);" onfocus="dialog.onFocus(event);"
 57#ifdef XP_WIN
 58        style="width: 36em;"
 59#else
 60        style="width: 34em;"
 61#endif
 62        screenX="" screenY=""
 63        persist="screenX screenY"
 64        ondialogaccept="return dialog.onOK()"
 65        ondialogcancel="return dialog.onCancel()">
 66
 67  <script type="application/javascript" src="chrome://mozapps/content/downloads/helperApps.js"/>
 68
 69  <stringbundle id="strings" src="chrome://mozapps/locale/downloads/unknownContentType.properties"/>
 70
 71  <vbox flex="1" id="container">  
 72    <description>&intro.label;</description>
 73    <separator class="thin"/>
 74    <hbox align="start" class="small-indent">
 75      <image id="contentTypeImage"/>
 76      <vbox flex="1">
 77        <description id="location" class="plain" crop="start" flex="1"/>
 78        <separator class="thin"/>
 79        <hbox align="center">
 80          <label value="&whichIsA.label;" id="whichIsA"/>
 81          <textbox id="type" class="plain" readonly="true" flex="1" noinitialfocus="true"/>
 82        </hbox>
 83        <hbox align="center">
 84          <label value="&from.label;" id="from"/>
 85          <description id="source" class="plain" crop="start" flex="1"/>
 86        </hbox>
 87      </vbox>
 88    </hbox>
 89    
 90    <separator class="thin"/>
 91
 92    <hbox align="center" id="basicBox" collapsed="true">
 93      <label value="&unknownPromptText.label;" flex="1"/>
 94    </hbox>
 95
 96    <groupbox flex="1" id="normalBox">
 97      <caption label="&actionQuestion.label;"/>
 98      <separator class="thin"/>
 99      <radiogroup id="mode" class="small-indent">
100        <hbox>
101          <radio id="open" label="&openWith.label;" accesskey="&openWith.accesskey;"/>
102          <deck id="modeDeck" flex="1">
103            <hbox id="openHandlerBox" flex="1" align="center"/>
104            <hbox flex="1" align="center">
105              <button id="chooseButton" oncommand="dialog.chooseApp();"
106#ifdef XP_MACOSX
107                      label="&chooseHandlerMac.label;" accesskey="&chooseHandlerMac.accesskey;"/>
108#else
109                      label="&chooseHandler.label;" accesskey="&chooseHandler.accesskey;"/>
110#endif
111            </hbox>
112          </deck>
113        </hbox>
114        
115        <radio id="save" label="&saveFile.label;" accesskey="&saveFile.accesskey;"/>
116      </radiogroup> 
117      <separator class="thin"/>
118      <hbox class="small-indent">
119        <checkbox id="rememberChoice" label="&rememberChoice.label;"
120                  accesskey="&rememberChoice.accesskey;"
121                  oncommand="dialog.toggleRememberChoice(event.target);"/>
122      </hbox>
123      
124      <separator/>
125#ifdef XP_UNIX
126      <description id="settingsChange" hidden="true">&settingsChangePreferences.label;</description>
127#else
128      <description id="settingsChange" hidden="true">&settingsChangeOptions.label;</description>
129#endif
130      <separator class="thin"/>
131    </groupbox>
132  </vbox>
133  
134  <menulist id="openHandler" flex="1">
135    <menupopup id="openHandlerPopup" oncommand="dialog.openHandlerCommand();">
136      <menuitem id="defaultHandler" default="true" crop="right"/>
137      <menuitem id="otherHandler" hidden="true" crop="left"/>
138      <menuseparator/>
139      <menuitem id="choose" label="&other.label;"/>
140    </menupopup>
141  </menulist>
142</dialog>