File: help.xul

package info (click to toggle)
iceweasel 2.0.0.19-0etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 298,784 kB
  • ctags: 317,912
  • sloc: cpp: 1,796,902; ansic: 987,677; xml: 109,036; makefile: 47,777; asm: 35,201; perl: 26,983; sh: 20,879; cs: 6,232; java: 5,513; python: 3,249; pascal: 459; lex: 306; php: 244; csh: 132; objc: 97; yacc: 79; ada: 49; awk: 14; sql: 4; sed: 4
file content (317 lines) | stat: -rw-r--r-- 14,504 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<?xml version="1.0" encoding="UTF-8"?>
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla 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/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is Firefox Help Source Code.
#
# The Initial Developer of the Original Code is
# Ian Oeschger.
# Portions created by the Initial Developer are Copyright (C) 2003-2004
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#   R.J. Keller <rlk@trfenv.com>
#   Steffen Wilberg <steffen.wilberg@web.de>
#   Jeff Walden <jwalden+code@mit.edu>
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 2 or later (the "GPL"), or
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
# in which case the provisions of the GPL or the LGPL are applicable instead
# of those above. If you wish to allow use of your version of this file only
# under the terms of either the GPL or the LGPL, and not to allow others to
# use your version of this file under the terms of the MPL, indicate your
# decision by deleting the provisions above and replace them with the notice
# and other provisions required by the LGPL or the GPL. If you do not delete
# the provisions above, a recipient may use your version of this file under
# the terms of any one of the MPL, the GPL or the LGPL.
#
# ***** END LICENSE BLOCK *****

<?xml-stylesheet href="chrome://help/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://global/skin/findBar.css" type="text/css"?>

<?xul-overlay href="chrome://help/content/helpContextOverlay.xul"?>
<!DOCTYPE window [
    <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
    %brandDTD;
    <!ENTITY % helpDTD SYSTEM "chrome://help/locale/help.dtd">
    %helpDTD;
    <!ENTITY % findBarDTD SYSTEM "chrome://global/locale/findbar.dtd" >
    %findBarDTD;
    <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
    %globalDTD;
]>

<window id="help"
        windowtype="mozilla:help"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        width="700"
        height="550"
#ifdef XP_MACOSX
#define HELP_ALWAYS_RAISED_TOGGLE
#endif
#ifdef XP_WIN
#define HELP_ALWAYS_RAISED_TOGGLE
#endif
#ifdef HELP_ALWAYS_RAISED_TOGGLE
        persist="width height screenX screenY zlevel"
#else
        persist="width height screenX screenY"
#endif
        onload="init();"
        onunload="gFindBar.uninitFindBar(); window.XULBrowserWindow.destroy();">

  <script type="application/x-javascript" src="chrome://help/content/help.js"/>
  <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  <script type="application/x-javascript" src="chrome://global/content/findBar.js"/>
  <script type="application/x-javascript" src="chrome://global/content/viewZoomOverlay.js"/>
  <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>

  <stringbundle id="bundle_findBar" src="chrome://global/locale/findbar.properties"/>
    
  <menupopup id="backMenu" position="after_start"
             onpopupshowing="return createBackMenu(event);"
             oncommand="gotoHistoryIndex(event);"/>
  <menupopup id="forwardMenu" position="after_start"
             onpopupshowing="return createForwardMenu(event);"
             oncommand="gotoHistoryIndex(event);"/>
  <popupset id="contentAreaContextSet"/>

  <broadcasterset id="helpBroadcasters">
    <broadcaster id="canGoBack"    disabled="true"/>
    <broadcaster id="canGoForward" disabled="true"/>
  </broadcasterset>
  <commandset id="globalEditMenuItems"/>
  <commandset id="selectEditMenuItems">
    <command id="cmd_close" oncommand="close();"/>
    <command id="Help:Home" oncommand="goHome();"/>
    <command id="Help:Back" oncommand="goBack();"       observes="canGoBack"/>
    <command id="Help:Forward" oncommand="goForward();" observes="canGoForward"/>
    <command id="Help:ToggleSidebar" oncommand="toggleSidebar();"/>
    <command id="cmd_closeWindow" oncommand="close();"/>
    <command id="cmd_textZoomReduce" oncommand="ZoomManager.prototype.getInstance().reduce();"/>
    <command id="cmd_textZoomEnlarge" oncommand="ZoomManager.prototype.getInstance().enlarge();"/>
    <command id="cmd_find" oncommand="gFindBar.onFindCmd();"/>
    <command id="cmd_findAgain" oncommand="gFindBar.onFindAgainCmd();"/>
    <command id="cmd_findPrevious" oncommand="gFindBar.onFindPreviousCmd();"/>
    <command id="cmd_copy" oncommand="goDoCommand('cmd_copy')" disabled="true"/>
    <command id="cmd_selectAll" oncommand="goDoCommand('cmd_selectAll')"/>
  </commandset>
  <keyset id="keys">
    <key id="goHome"      keycode="VK_HOME"  command="Help:Home" modifiers="alt"/>
#ifdef XP_UNIX
    <key key="&goBackCmd.commandkey;" command="Help:Back" modifiers="accel"/>
    <key key="&goForwardCmd.commandkey;" command="Help:Forward" modifiers="accel"/>
#endif
#ifdef XP_MACOSX
    <key id="goBackKb"    keycode="VK_LEFT"  command="Help:Back" modifiers="accel"/>
    <key id="goForwardKb" keycode="VK_RIGHT" command="Help:Forward" modifiers="accel"/>
#else
    <key id="goBackKb"     keycode="VK_LEFT"  command="Help:Back" modifiers="alt"/>
    <key id="goForwardKb"  keycode="VK_RIGHT" command="Help:Forward" modifiers="alt"/>
    <key keycode="VK_BACK" command="Help:Back"/>
    <key keycode="VK_BACK" command="Help:Forward" modifiers="shift"/>
#endif
    <key id="printKb" key="&printCmd.commandkey;" oncommand="print();"
         modifiers="accel"/>  
    <key id="key_find" key="&findOnCmd.commandkey;" command="cmd_find" modifiers="accel"/>
    <key id="key_findAgain" key="&findAgainCmd.commandkey;" command="cmd_findAgain" modifiers="accel"/>
    <key id="key_findPrevious" key="&findAgainCmd.commandkey;" command="cmd_findPrevious" modifiers="accel,shift"/>
    <key keycode="&findAgainCmd.commandkey2;" command="cmd_findAgain"/>
    <key keycode="&findAgainCmd.commandkey2;"  command="cmd_findPrevious" modifiers="shift"/>
    <key id="key_closeWindow" key="&closeWindow.commandkey;"
         command="cmd_closeWindow" modifiers="accel"/>
    <key id="key_closeSearchSidebar" keycode="VK_ESCAPE"
         oncommand="hideSearchSidebar(event)"/>
    <key id="key_textZoomEnlarge" key="&textZoomEnlargeCmd.commandkey;"
         command="cmd_textZoomEnlarge" modifiers="accel"/>
    <key id="key_textZoomEnlarge2" key="&textZoomEnlargeCmd.commandkey2;"
         command="cmd_textZoomEnlarge" modifiers="accel"/>
    <key id="key_textZoomReduce" key="&textZoomReduceCmd.commandkey;"
         command="cmd_textZoomReduce" modifiers="accel"/>
    <key id="key_textZoomReset" key="&textZoomResetCmd.commandkey;"
         oncommand="ZoomManager.prototype.getInstance().reset();" modifiers="accel"/>
    <key id="key_focusSearch" key="&helpSearch.commandkey;"
         oncommand="focusSearch()" modifiers="accel"/>

  </keyset>
  <stringbundle id="bundle_viewZoom"/>
  <stringbundle id="findBundle"
                src="chrome://global/locale/finddialog.properties"/>
  <stringbundle id="bundle_help"
                src="chrome://help/locale/help.properties"/>

  <vbox flex="1">
    <toolbox id="help-toolbox" class="toolbox-top">
      <toolbar id="HelpToolbar" class="chromeclass-toolbar" chromedir="&locale.dir;">
        <toolbarbutton id="help-back-button" type="menu-button"
                       label="&backButton.label;"
                       oncommand="if (event.target == this) goBack(); else gotoHistoryIndex(event);"
                       observes="canGoBack" context="backMenu"
                       tooltiptext="&backButton.tooltip;"
                       chromedir="&locale.dir;">
          <menupopup context="" onpopupshowing="createBackMenu(event);"/>
        </toolbarbutton>
        <toolbarbutton id="help-forward-button" type="menu-button"
                       oncommand="if (event.target == this) goForward(); else gotoHistoryIndex(event);"
                       tooltiptext="&forwardButton.tooltip;"
                       observes="canGoForward"
                       chromedir="&locale.dir;">
          <menupopup context="" onpopupshowing="createForwardMenu(event);"/>
        </toolbarbutton>
        <toolbarbutton id="help-home-button"
                       tooltiptext="&homeButton.tooltip;"
                       command="Help:Home"/>
        <toolbarseparator/>
        <toolbarbutton id="help-print-button"
                       label="&printButton.label;"
                       oncommand="print();"
                       tooltiptext="&printButton.tooltip;"/>
        <toolbarspring flex="1"/>
        <toolbaritem id="search-box"
                     align="center" pack="center">
          <label value="&searchtab.label;" accesskey="&searchtab.accesskey;" 
                 control="findText"/>
          <textbox id="findText" type="timed" timeout="500"
                   oncommand="doFind();"/>
        </toolbaritem>
      </toolbar>
    </toolbox>

    <hbox flex="1">
      <vbox id="help-sidebar" persist="width">
        <vbox flex="1" id="help-toc-sidebar">
          <sidebarheader align="center">
            <label id="help-toc-sidebar-header" flex="1" crop="end" value="&toctab.label;"
                   accesskey="&toctab.accesskey;" control="help-toc-panel"/>
          </sidebarheader>
          <tree id="help-toc-panel" class="focusring"
                flex="1"  hidecolumnpicker="true"
                datasources="rdf:null"
                containment="http://home.netscape.com/NC-rdf#subheadings"
                ref="urn:root" flags="dont-build-content"
                onselect="onselect_loadURI(this)">
            <template>
              <rule>
                <conditions>
                  <content uri="?uri"/>
                  <triple subject="?uri"
                          predicate="http://home.netscape.com/NC-rdf#subheadings"
                          object="?subheadings"/>
                  <member container="?subheadings"
                          child="?subheading"/>
                </conditions>
                <bindings>
                  <binding subject="?subheading"
                           predicate="http://home.netscape.com/NC-rdf#name"
                           object="?name"/>
                </bindings>
                <action>
                  <treechildren>
                    <treeitem uri="?subheading">
                      <treerow>
                        <treecell label="?name"/>
                      </treerow>
                    </treeitem>
                  </treechildren>
                </action>
              </rule>
            </template>
            <treecols>
              <treecol id="NameColumn" flex="1" hideheader="true"
                       primary="true"/>
            </treecols>
          </tree>
        </vbox>
        <vbox id="help-search-sidebar" hidden="true" flex="1">
          <sidebarheader align="center">
            <label id="help-search-sidebar-header" flex="1" crop="end" value="&searchtab.label;"/>
            <toolbarbutton id="find-closebutton"  oncommand="hideSearchSidebar();"/>
          </sidebarheader>
          <tree id="help-search-tree" class="focusring"
                flex="1" hidecolumnpicker="true"
                datasources="rdf:null"
                containment="http://home.netscape.com/NC-rdf#child"
                ref="urn:root" flags="dont-build-content"
                onselect="onselect_loadURI(this)">
            <template>
              <rule>
                <conditions>
                  <content uri="?uri"/>
                  <member container="?uri"
                          child="?subheading"/>
                </conditions>
                <bindings>
                  <binding subject="?subheading"
                           predicate="http://home.netscape.com/NC-rdf#name"
                           object="?name"/>
                </bindings>
                <action>
                  <treechildren>
                    <treeitem uri="?subheading">
                      <treerow>
                        <treecell label="?name"/>
                      </treerow>
                    </treeitem>
                  </treechildren>
                </action>
              </rule>
            </template>
            <treecols>
            <treecol id="ResultsColumn" flex="1"
                     hideheader="true" primary="true"
                     sortActive="true" sortDirection="ascending"
                     sort="?name"/>
            </treecols>
          </tree>
        </vbox>

        <!-- BEGIN hidden trees used for searching -->
        <!-- xxxmpc: we need a better solution for this -->

        <vbox id="help-sidebar-hidden-trees" hidden="true">
          <tree id="help-glossary-panel"
                flex="1" hidecolumnpicker="true"
                datasources="rdf:null"
                containment="http://home.netscape.com/NC-rdf#subheadings"
                ref="urn:root" flags="dont-build-content"/>
          <tree id="help-index-panel"
                flex="1" datasources="rdf:null"
                hidecolumnpicker="true"
                containment="http://home.netscape.com/NC-rdf#subheadings"
                ref="urn:root"
                flags="dont-build-content dont-test-empty"/>
          <tree id="help-search-panel"
                flex="1" hidecolumnpicker="true"
                datasources="rdf:null"
                containment="http://home.netscape.com/NC-rdf#subheadings"
                ref="urn:root" flags="dont-build-content"/>
        </vbox>

        <!-- END HIDDEN ITEMS -->
      </vbox>

      <splitter id="help-sidebar-splitter" collapse="before"/>

      <vbox id="appcontent" flex="3">
        <!-- type attribute is used by frame construction to locate
             iframes intended to hold (html) content -->
        <browser context="contentAreaContextMenu"
                 type="content-primary" id="help-content"
                 src="about:blank" flex="1"/>
#include ../../typeaheadfind/content/findBar.inc
      </vbox>
    </hbox>
  </vbox>
</window>