~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/extensions/cookie/resources/content/pref-images.xul

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
Import upstream version 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?> 
 
2
 
 
3
<!--
 
4
   The contents of this file are subject to the Netscape Public
 
5
   License Version 1.1 (the "License"); you may not use this file
 
6
   except in compliance with the License. You may obtain a copy of
 
7
   the License at http://www.mozilla.org/NPL/
 
8
    
 
9
   implied. See the License for the specific language governing
 
10
   rights and limitations under the License.
 
11
    
 
12
   The Original Code is Mozilla Communicator client code, released
 
13
   March 31, 1998.
 
14
   
 
15
   The Initial Developer of the Original Code is Netscape
 
16
   Communications Corporation. Portions created by Netscape are
 
17
   Copyright (C) 1998-1999 Netscape Communications Corporation. All
 
18
   Rights Reserved.
 
19
   
 
20
   Contributor(s): 
 
21
     Håkan Waara <hwaara@chello.se>
 
22
     Peter Annema <disttsc@bart.nl>
 
23
  -->
 
24
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
 
25
 
 
26
<!DOCTYPE page [
 
27
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
 
28
%brandDTD;
 
29
<!ENTITY % prefImagesDTD SYSTEM "chrome://cookie/locale/pref-images.dtd" >
 
30
%prefImagesDTD;
 
31
]>
 
32
 
 
33
<page id="imagesPanel" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
 
34
      onload="init();"
 
35
      headertitle="&lHeader;">
 
36
          
 
37
  <script type="application/x-javascript" src="chrome://cookie/content/cookieOverlay.js"/>
 
38
 
 
39
  <script type="application/x-javascript">
 
40
  <![CDATA[
 
41
  
 
42
  var panel = "chrome://cookie/content/pref-images.xul";
 
43
  var _elementIDs = ["accOrgImages", "networkImageBehaviour", "imageLooping"];
 
44
 
 
45
  function init()
 
46
  {
 
47
    parent.initPanel('chrome://cookie/content/pref-images.xul');
 
48
 
 
49
    setDisables();
 
50
  }
 
51
 
 
52
  function setDisables()
 
53
  {
 
54
    var imageBehavior = document.getElementById("networkImageBehaviour");
 
55
 
 
56
    // if mailnews is installed then we will have networkImageDisableImagesInMailNews checkbox
 
57
    var networkImageDisableImagesInMailNews = document.getElementById("networkImageDisableImagesInMailNews");
 
58
    if (networkImageDisableImagesInMailNews)
 
59
      networkImageDisableImagesInMailNews.disabled = (imageBehavior.value == 2); 
 
60
  }
 
61
 
 
62
  ]]>
 
63
  </script>
 
64
 
 
65
  <broadcaster id="haveImageBlocking"/>
 
66
  <broadcaster id="haveImageBlockingOrMailnews"/>
 
67
 
 
68
  <groupbox id="imagesArea">
 
69
    <caption label="&imageBlocking.label;"/>
 
70
 
 
71
    <description>&imageDetails;</description>
 
72
 
 
73
    <radiogroup id="networkImageBehaviour"
 
74
                prefstring="network.image.imageBehavior">
 
75
      <radio value="2" label="&disableImages.label;"
 
76
             accesskey="&disableImages.accesskey;"
 
77
             oncommand="setDisables();"/>
 
78
      <radio value="1" label="&accOrgImagesRadio.label;"
 
79
             accesskey="&accOrgImagesRadio.accesskey;"
 
80
             id="accOrgImages" observes="haveImageBlocking"
 
81
             oncommand="setDisables();"/>
 
82
      <radio value="0" label="&accAllImagesRadio.label;"
 
83
             accesskey="&accAllImagesRadio.accesskey;"
 
84
             oncommand="setDisables();"/>
 
85
    </radiogroup>
 
86
 
 
87
    <separator id="networkImagesBehaviorSeparator" observes="haveImageBlockingOrMailnews"/>
 
88
 
 
89
    <separator observes="haveImageBlocking"/>
 
90
 
 
91
    <hbox pack="end">
 
92
      <button id="viewImages" label="&viewImages.label;"
 
93
              accesskey="&viewImages.accesskey;" oncommand="viewImages();"
 
94
              observes="haveImageBlocking"
 
95
              prefstring="pref.advanced.images.disable_button.view_image"/>
 
96
    </hbox>
 
97
 
 
98
  </groupbox>
 
99
  <groupbox>
 
100
    <caption label="&animLoopingTitle.label;"/>
 
101
    <radiogroup id="imageLooping"
 
102
                preftype="string" prefstring="image.animation_mode">
 
103
        <radio value="normal" label="&animLoopAsSpecified.label;"
 
104
               accesskey="&animLoopAsSpecified.accesskey;"/>
 
105
        <radio value="once" label="&animLoopOnce.label;"
 
106
               accesskey="&animLoopOnce.accesskey;"/>
 
107
        <radio value="none" label="&animLoopNever.label;"
 
108
               accesskey="&animLoopNever.accesskey;"/>
 
109
    </radiogroup>
 
110
  </groupbox>
 
111
 
 
112
</page>