2 # ***** BEGIN LICENSE BLOCK *****
3 # Version: MPL
1.1/GPL
2.0/LGPL
2.1
5 # The contents of this file are subject to the Mozilla Public License Version
6 #
1.1 (the
"License"); you may not use this file except in compliance with
7 # the License. You may obtain a copy of the License at
8 # http://www.mozilla.org/MPL/
10 # Software distributed under the License is distributed on an
"AS IS" basis,
11 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 # for the specific language governing rights and limitations under the
15 # The Original Code is mozilla.org code.
17 # The Initial Developer of the Original Code is
19 # Portions created by the Initial Developer are Copyright (C)
2003
20 # the Initial Developer. All Rights Reserved.
23 # Blake Ross
<firefox@blakeross.com
>
24 # Ben Goodger
<ben@mozilla.org
>
25 # Doron Rosenberg
<doronr@us.ibm.com
>
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.
39 # ***** END LICENSE BLOCK *****
41 <?xml-stylesheet href=
"chrome://global/skin/" type=
"text/css"?>
42 <?xml-stylesheet href=
"chrome://browser/skin/preferences/preferences.css" type=
"text/css"?>
45 <!ENTITY % permissionDTD SYSTEM
"chrome://browser/locale/preferences/permissions.dtd">
47 <!ENTITY % xformsDTD SYSTEM
"chrome://xforms/locale/xforms.dtd">
51 <window id=
"XFormsPermissionsDialog" class=
"windowDialog"
52 windowtype=
"XForms:Permissions"
53 title=
"&window.title;"
54 xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
55 style=
"width: &window.width;"
56 onload=
"gPermissionManager.onLoad();"
57 onunload=
"gPermissionManager.uninit();"
58 persist=
"screenX screenY width height">
60 <script src=
"chrome://browser/content/preferences/permissionsutils.js"/>
61 <script src=
"chrome://xforms/content/xforms-permissions.js"/>
63 <stringbundle id=
"bundlePreferences"
64 src=
"chrome://browser/locale/preferences/preferences.properties"/>
65 <stringbundle id=
"xformsBundle"
66 src=
"chrome://xforms/locale/xforms.properties"/>
68 <key key=
"&windowClose.key;" modifiers=
"accel" oncommand=
"window.close();"/>
71 <vbox class=
"contentPane" flex=
"1">
72 <description id=
"permissionsText" control=
"url"/>
73 <separator class=
"thin"/>
74 <label control=
"url" value=
"&address.label;"/>
76 <textbox id=
"url" flex=
"1"
77 oninput=
"gPermissionManager.onHostInput(event.target);"
78 onkeypress=
"gPermissionManager.onHostKeyPress(event);"/>
81 <label value=
"Allow:"/>
82 <checkbox id=
"checkLoad" label=
"&xforms.permissions.allowLoad.label;"
83 accesskey=
"&xforms.permissions.allowLoad.accesskey;"
84 oncommand=
"gPermissionManager.onHostInput();" checked=
"false"/>
85 <checkbox id=
"checkSend" label=
"&xforms.permissions.allowSend.label;"
86 accesskey=
"&xforms.permissions.allowSend.accesskey;"
87 oncommand=
"gPermissionManager.onHostInput();" checked=
"false"/>
89 <button id=
"btnAdd" disabled=
"true" label=
"&xforms.permissions.add.label;"
90 default=
"true" accesskey=
"&xforms.permissions.add.accesskey;"
91 oncommand=
"gPermissionManager.addPermission();"/>
92 <button id=
"btnSave" hidden=
"true" label=
"&xforms.permissions.save.label;"
93 accesskey=
"&xforms.permissions.save.accesskey;"
94 oncommand=
"gPermissionManager.addPermission(true);"/>
95 <button id=
"btnClear" label=
"&xforms.permissions.clear.label;"
96 accesskey=
"&xforms.permissions.clear.accesskey;"
97 oncommand=
"gPermissionManager.clear();"/>
99 <separator class=
"thin"/>
100 <tree id=
"permissionsTree" flex=
"1" style=
"height: 18em;"
101 hidecolumnpicker=
"true"
102 onkeypress=
"gPermissionManager.onPermissionKeyPress(event)"
103 onselect=
"gPermissionManager.onPermissionSelected();">
105 <treecol id=
"siteCol" label=
"&treehead.sitename.label;" flex=
"3"
106 onclick=
"gPermissionManager.onPermissionSort('rawHost');" persist=
"width"/>
107 <splitter class=
"tree-splitter"/>
108 <treecol id=
"statusCol" label=
"&treehead.status.label;" flex=
"1"
109 onclick=
"gPermissionManager.onPermissionSort('capability');" persist=
"width"/>
115 <hbox class=
"actionButtons" flex=
"1">
116 <button id=
"removePermission" disabled=
"true"
117 accesskey=
"&removepermission.accesskey;"
118 icon=
"remove" label=
"&removepermission.label;"
119 oncommand=
"gPermissionManager.onPermissionDeleted();"/>
120 <button id=
"removeAllPermissions"
121 icon=
"clear" label=
"&removeallpermissions.label;"
122 accesskey=
"&removeallpermissions.accesskey;"
123 oncommand=
"gPermissionManager.onAllPermissionsDeleted();"/>
126 <button oncommand=
"close();" icon=
"close"
127 label=
"&button.close.label;" accesskey=
"&button.close.accesskey;"/>
130 <resizer dir=
"bottomright"/>