home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
-
- <!--
- The contents of this file are subject to the Netscape 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/NPL/
-
- implied. See the License for the specific language governing
- rights and limitations under the License.
-
- The Original Code is Mozilla Communicator client code, released
- March 31, 1998.
-
- The Initial Developer of the Original Code is Netscape
- Communications Corporation. Portions created by Netscape are
- Copyright (C) 1998-1999 Netscape Communications Corporation. All
- Rights Reserved.
-
- Contributor(s):
- Hσkan Waara <hwaara@chello.se>
- Peter Annema <disttsc@bart.nl>
- -->
- <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
- <?xml-stylesheet href="chrome://communicator/skin/dialogOverlay.css" type="text/css"?>
-
- <!DOCTYPE window [
- <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
- %brandDTD;
- <!ENTITY % prefImagesDTD SYSTEM "chrome://cookie/locale/pref-images.dtd" >
- %prefImagesDTD;
- ]>
-
- <window xmlns:html="http://www.w3.org/1999/xhtml" id="imagesWindow"
- xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- class="color-dialog"
- orient="vertical"
- onload="init();">
-
- <script type="application/x-javascript" src="chrome://cookie/content/cookieOverlay.js"/>
-
- <script type="application/x-javascript">
- <![CDATA[
-
- var _elementIDs = ["accOrgImages", "networkImageBehaviour", "networkImageWarnAboutImages", "imageLooping"];
-
- function init()
- {
- parent.initPanel('chrome://cookie/content/pref-images.xul');
-
- imageBlockingEnabled();
-
- var enabled = document.getElementById("networkImageBehaviour").value != "2";
- setWarnAboutImagesEnabled(enabled);
- }
-
- // Present finer control over image loading to the user.
- // enable image blocker if "imageblocker.enabled" pref is true
- function imageBlockingEnabled()
- {
- if (parent.hPrefWindow.getPref("bool", "imageblocker.enabled"))
- document.getElementById("haveImageBlocking").removeAttribute("hidden");
- }
-
- function setWarnAboutImagesEnabled(aEnabled)
- {
- var warnCheckbox = document.getElementById("networkImageWarnAboutImages");
- warnCheckbox.disabled = !aEnabled;
- if (parent.hPrefWindow.getPrefIsLocked(warnCheckbox.getAttribute("prefstring")) )
- warnCheckbox.disabled = true;
- }
-
- ]]>
- </script>
-
- <broadcaster id="haveImageBlocking" hidden="true"/>
-
- <hbox class="box-smallheader" id="imagesHeader" title="&lHeader;"/>
-
- <groupbox orient="vertical" id="imagesArea">
- <label value="&imageBlocking.label;"/>
-
- <html>&imageDetails;</html>
-
- <radiogroup id="networkImageBehaviour" orient="vertical" autostretch="never"
- pref="true" preftype="int" prefstring="network.image.imageBehavior"
- prefattribute="value">
- <radio group="networkImageBehaviour" value="2" label="&disableImages.label;"
- accesskey="&disableImages.accesskey;"
- oncommand="setWarnAboutImagesEnabled(false);"/>
- <radio group="networkImageBehaviour" value="1" label="&accOrgImagesRadio.label;"
- accesskey="&accOrgImagesRadio.accesskey;"
- id="accOrgImages" observes="haveImageBlocking"
- oncommand="setWarnAboutImagesEnabled(true);"/>
- <radio group="networkImageBehaviour" value="0" label="&accAllImagesRadio.label;"
- accesskey="&accAllImagesRadio.accesskey;"
- oncommand="setWarnAboutImagesEnabled(true);"/>
- </radiogroup>
-
- <separator observes="haveImageBlocking"/>
-
- <hbox autostretch="never">
- <checkbox id="networkImageWarnAboutImages" label="&warnAboutImages.label;"
- accesskey="&warnAboutImages.accesskey;" observes="haveImageBlocking"
- pref="true" preftype="bool" prefattribute="checked"
- prefstring="network.image.warnAboutImages"/>
- </hbox>
-
- <separator observes="haveImageBlocking"/>
-
- <hbox pack="end">
- <button class="dialog" id="viewImages" label="&viewImages.label;"
- accesskey="&viewImages.accesskey;" oncommand="viewImages();"
- observes="haveImageBlocking"
- pref="true" preftype="bool"
- prefstring="pref.advanced.images.disable_button.view_image" prefattribute="disabled"/>
- </hbox>
-
- </groupbox>
- <groupbox orient="vertical">
- <label value="&animLoopingTitle.label;"/>
- <radiogroup id="imageLooping" orient="vertical" autostretch="never"
- pref="true" preftype="string" prefstring="image.animation_mode"
- prefattribute="value">
- <radio group="imageLooping" value="normal" label="&animLoopAsSpecified.label;"
- accesskey="&animLoopAsSpecified.accesskey;"/>
- <radio group="imageLooping" value="once" label="&animLoopOnce.label;"
- accesskey="&animLoopOnce.accesskey;"/>
- <radio group="imageLooping" value="none" label="&animLoopNever.label;"
- accesskey="&animLoopNever.accesskey;"/>
- </radiogroup>
- </groupbox>
-
- </window>
-