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

« back to all changes in this revision

Viewing changes to mozilla/composer/components/prefwindow/content/pref-helpers.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
# ***** 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 Nvu.
 
17
#
 
18
# The Initial Developer of the Original Code is
 
19
# Linspire Inc..
 
20
# Portions created by the Initial Developer are Copyright (C) 2004
 
21
# the Initial Developer. All Rights Reserved.
 
22
#
 
23
# Contributor(s):
 
24
#   Daniel Glazman (glazman@disruptive-innovations.com), on behalf of Linspire Inc.
 
25
#
 
26
# Alternatively, the contents of this file may be used under the terms of
 
27
# either the GNU General Public License Version 2 or later (the "GPL"), or
 
28
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 
29
# in which case the provisions of the GPL or the LGPL are applicable instead
 
30
# of those above. If you wish to allow use of your version of this file only
 
31
# under the terms of either the GPL or the LGPL, and not to allow others to
 
32
# use your version of this file under the terms of the MPL, indicate your
 
33
# decision by deleting the provisions above and replace them with the notice
 
34
# and other provisions required by the LGPL or the GPL. If you do not delete
 
35
# the provisions above, a recipient may use your version of this file under
 
36
# the terms of any one of the MPL, the GPL or the LGPL.
 
37
#
 
38
# ***** END LICENSE BLOCK ***** -->
 
39
 
 
40
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
 
41
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
 
42
 
 
43
<!DOCTYPE page SYSTEM "chrome://communicator/locale/pref/pref-helpers.dtd" >
 
44
 
 
45
<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
 
46
      onload="parent.initPanel('chrome://communicator/content/pref/pref-helpers.xul');"
 
47
      headertitle="&helpers.label;">
 
48
 
 
49
  <stringbundle id="bundle_prefutilities" src="chrome://communicator/locale/pref/prefutilities.properties"/>
 
50
 
 
51
  <script type="application/x-javascript">
 
52
  <![CDATA[
 
53
    var _elementIDs = [ "useSystemSettingsHelpers", "externalBrowser", "externalImageEditor", "markupLanguage", "dtdStrictness",
 
54
                        "crInPCreatesNewP", "entitiesEncoding", "spellCheckRealTime", "dontEncodeGT", "noEscaping" ];
 
55
  ]]>
 
56
  </script>        
 
57
 
 
58
  <script type="application/x-javascript" src="chrome://communicator/content/pref/pref-helpers.js"/>
 
59
  <script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js"/>
 
60
  <script type="application/x-javascript" src="chrome://editor/content/editorUtilities.js"/>
 
61
 
 
62
#ifdef 0
 
63
#ifdef XP_UNIX
 
64
  <groupbox>
 
65
    <caption label="Web browser" />
 
66
    <radiogroup
 
67
      id            = "useSystemSettingsHelpers"
 
68
      preftype      = "bool"
 
69
      prefstring    = "editor.helpers.browser.useSystem">
 
70
      <radio 
 
71
        value       = "true"
 
72
          selected    = "true"
 
73
        label       = "&useSystemBrowser.label;" 
 
74
        oncommand   = "UseSystemBrowser()"
 
75
      />
 
76
      <radio 
 
77
        value       = "false"
 
78
        label       = "&userDefinedBrower.label;" 
 
79
        oncommand   = "UseOwnBrowser()"
 
80
      />
 
81
    </radiogroup>
 
82
    <hbox align="center">
 
83
      <spacer class="spacer"/>
 
84
      <textbox id="externalBrowser"
 
85
               flex="1" disabled="true"
 
86
               oninput="UpdateExternalBrowser()"
 
87
               prefstring="editor.helpers.browser.external"/>
 
88
      <button label="Choose file" accesskey=""
 
89
              location="externalBrowser"
 
90
              oncommand="selectFile(this);"
 
91
              id="browserChooseFile"/>
 
92
    </hbox>
 
93
  </groupbox>
 
94
 
 
95
  <groupbox>
 
96
    <caption label="&imageEditor.label;" />
 
97
    <hbox align="center">
 
98
      <textbox flex="1" id="externalImageEditor" 
 
99
               prefstring="editor.helpers.imageEditor"/>
 
100
      <button label="Choose file" accesskey=""
 
101
              location="externalImageEditor"
 
102
              oncommand="selectFile(this);"
 
103
              id="imageEditorChooseFile"/>
 
104
    </hbox>
 
105
  </groupbox>
 
106
#endif
 
107
#endif
 
108
  <groupbox>
 
109
    <caption label="&connection.label;" />
 
110
    <hbox align="center">
 
111
      <description flex="1">&connectionDescription.label;</description>
 
112
      <button label="&connectionButton.label;"
 
113
              accesskey="&connectionbutton.accesskey;"
 
114
              oncommand="showConnections();"/>
 
115
    </hbox>
 
116
  </groupbox>
 
117
 
 
118
  <groupbox align="start">
 
119
    <caption label="&dialect.label;"/>
 
120
    <grid>
 
121
      <columns><column/><column flex="1"/><column flex="1"/></columns>
 
122
      <rows>
 
123
        <radiogroup id="markupLanguage" orient="horizontal"
 
124
                     preftype="string" style="display: -moz-grid-line;"
 
125
                     align="center"
 
126
                     prefstring="editor.default.doctype">
 
127
            <label value="&markupLanguage.label;"/>
 
128
            <radio id="htmlMarkupLanguage"
 
129
                   value="html"
 
130
                   label="&htmlMarkupLanguage.label;"/>
 
131
            <radio id="xtmlMarkupLanguage"
 
132
                   value="xhtml"
 
133
                   label="&xhtmlMarkupLanguage.label;"/>
 
134
        </radiogroup>
 
135
        <radiogroup id="dtdStrictness" orient="horizontal"
 
136
                    preftype="bool" style="display: -moz-grid-line;"
 
137
                    align="center"
 
138
                    prefstring="editor.default.strictness">
 
139
            <label value="&dtd.label;"/>
 
140
            <radio id="looseDTD"
 
141
                   value="false"
 
142
                   label="&looseDTD.label;"/>
 
143
            <radio id="strictDTD"
 
144
                   value="true"
 
145
                   label="&strictDTD.label;"/>
 
146
        </radiogroup>
 
147
      </rows>
 
148
    </grid>>
 
149
  </groupbox>
 
150
 
 
151
  <groupbox>
 
152
    <caption label="&carriageReturns.label;" />
 
153
    <hbox align="center">
 
154
      <checkbox label="&crInPCreatesNewP.label;"
 
155
                id="crInPCreatesNewP"
 
156
                prefstring="editor.CR_creates_new_p"
 
157
                />
 
158
    </hbox>
 
159
  </groupbox>
 
160
 
 
161
  <groupbox>
 
162
    <caption label="&realtimeSpellCheck.label;" />
 
163
    <hbox align="center">
 
164
     <checkbox id="spellCheckRealTime" label="&spellCheckRealTime.label;"
 
165
               prefstring="spellchecker.enablerealtimespell"
 
166
               accesskey="&spellCheckRealTime.accesskey;"/>
 
167
    </hbox>
 
168
  </groupbox>    
 
169
 
 
170
  <groupbox>
 
171
    <caption label="&specialChars.label;" />
 
172
    <description>&specialChars.description;</description>
 
173
    <hbox align="center">
 
174
      <menulist id="entitiesEncoding"
 
175
                preftype="string" prefstring="editor.encode_entity">
 
176
        <menupopup>
 
177
          <menuitem id="basicEntitiesEncoding"
 
178
              value="basic" 
 
179
              label="&basicEncoding.label;"/>
 
180
          <menuitem id="latin1EntitiesEncoding" 
 
181
              value="latin1"
 
182
              label="&latin1EntitiesEncoding.label;"/>
 
183
          <menuitem id="htmlEntitiesEncoding" 
 
184
              value="html"
 
185
              label="&htmlEntitiesEncoding.label;"/>
 
186
          <menuitem id="allEntitiesEncoding" 
 
187
              value="unicode"
 
188
              label="&allEntitiesEncoding.label;"/>
 
189
        </menupopup>
 
190
      </menulist>
 
191
    </hbox>
 
192
    <checkbox class="indent" id="dontEncodeGT"
 
193
              prefstring="editor.encode.noGT"
 
194
              preftype="bool"
 
195
              label="&noGTEncoding.label;"/>
 
196
    <checkbox class="indent" id="noEscaping"
 
197
              prefstring="editor.encode.noEscaping"
 
198
              preftype="bool"
 
199
              label="&noEscaping.label;"/>
 
200
  </groupbox>
 
201
 
 
202
</page>