summaryrefslogtreecommitdiffstats
path: root/comm/suite/browser/linkToolbarOverlay.xul
blob: 8d9b4c15030ee98e9556ff91ed95cf71187c9dab (plain)
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
<?xml version="1.0"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<?xml-stylesheet href="chrome://navigator/skin/linkToolbar.css" type="text/css"?>
<!DOCTYPE overlay SYSTEM "chrome://navigator/locale/linkToolbar.dtd">

<overlay id="linkToolbarOverlay"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
         xmlns:rdf="http://www.mozilla.org/rdf">

  <!-- classes -->
  <script src="chrome://global/content/globalOverlay.js"/>
  <script src="chrome://navigator/content/linkToolbarHandler.js" />
  <script src="chrome://navigator/content/linkToolbarItem.js" />

  <!-- functions -->
  <script src="chrome://navigator/content/linkToolbarOverlay.js" />

  <script>
    <![CDATA[
      document.addEventListener("pageshow", linkToolbarUI.initHandlers, true);
    ]]>
  </script>

  <stringbundleset>
    <stringbundle id="languageBundle"
                  src="chrome://global/locale/languageNames.properties"/>
    <stringbundle id="regionBundle"
                  src="chrome://global/locale/regionNames.properties"/>
  </stringbundleset>

  <menupopup id="view_toolbars_popup">
    <menu label="&linkToolbar.label;"
          accesskey="&linkToolbar.accesskey;"
          insertbefore="menuitem_showhide_tabbar"
          onpopupshowing="linkToolbarUI.initLinkbarVisibilityMenu();"
          oncommand="linkToolbarUI.toggleLinkToolbar(event.target);">
      <menupopup>
        <menuitem label="&linkToolbarAlways.label;"
                  accesskey="&linkToolbarAlways.accesskey;"
                  class="menuitem-iconic" type="radio" value="false"
                  name="cmd_viewlinktoolbar" id="cmd_viewlinktoolbar_false" />
        <menuitem label="&linkToolbarAsNeeded.label;"
                  accesskey="&linkToolbarAsNeeded.accesskey;"
                  class="menuitem-iconic" type="radio" value="maybe"
                  name="cmd_viewlinktoolbar" id="cmd_viewlinktoolbar_maybe" />
        <menuitem label="&linkToolbarNever.label;"
                  accesskey="&linkToolbarNever.accesskey;"
                  class="menuitem-iconic" type="radio" value="true"
                  name="cmd_viewlinktoolbar" id="cmd_viewlinktoolbar_true" />
      </menupopup>
    </menu>
  </menupopup>

  <toolbox id="navigator-toolbox">
    <toolbar id="linktoolbar"
             grippytooltiptext="&linkToolbar.tooltip;"
             class="chromeclass-directories"
             hidden="true"
             hasitems="false"
             nowindowdrag="true"
             oncommand="event.stopPropagation(); return linkToolbarUI.commanded(event);">

      <toolbarbutton id="link-top" class="bookmark-item"
          label="&topButton.label;" disabled="true"/>

      <toolbarbutton id="link-up" class="bookmark-item"
          label="&upButton.label;" disabled="true"/>

      <toolbarseparator />

      <toolbarbutton id="link-first" class="bookmark-item"
          label="&firstButton.label;" disabled="true"/>

      <toolbarbutton id="link-prev" class="bookmark-item"
          label="&prevButton.label;" disabled="true"/>

      <toolbarbutton id="link-next" class="bookmark-item"
          label="&nextButton.label;" disabled="true"/>

      <toolbarbutton id="link-last" class="bookmark-item"
          label="&lastButton.label;" disabled="true"/>

      <toolbarseparator />

      <toolbarbutton id="document-menu" class="bookmark-item"
          type="menu"
          container="true"
          label="&documentButton.label;" disabled="true">
        <menupopup id="document-menu-popup">

          <menuitem id="link-toc" label="&tocButton.label;" disabled="true"
              class="menuitem-iconic bookmark-item"/>
          <menu id="link-chapter" label="&chapterButton.label;" disabled="true"
              class="menu-iconic bookmark-item" container="true">
            <menupopup id="link-chapter-popup" />
          </menu>
          <menu id="link-section" label="&sectionButton.label;" disabled="true"
              class="menu-iconic bookmark-item" container="true">
            <menupopup id="link-section-popup" />
          </menu>
          <menu id="link-subsection" label="&subSectionButton.label;" disabled="true"
              class="menu-iconic bookmark-item" container="true">
            <menupopup id="link-subsection-popup" />
          </menu>
          <menu id="link-appendix" label="&appendixButton.label;" disabled="true"
              class="menu-iconic bookmark-item" container="true">
            <menupopup id="link-appendix-popup" />
          </menu>
          <menuitem id="link-glossary" label="&glossaryButton.label;" disabled="true"
              class="menuitem-iconic bookmark-item"/>
          <menuitem id="link-index" label="&indexButton.label;" disabled="true"
              class="menuitem-iconic bookmark-item"/>

        </menupopup>
      </toolbarbutton>

      <toolbarbutton id="more-menu" class="bookmark-item"
          type="menu"
          container="true"
          label="&moreButton.label;" disabled="true">
        <menupopup id="more-menu-popup">

          <menuitem id="link-help" label="&helpButton.label;" disabled="true"
              class="menuitem-iconic bookmark-item"/>
          <menuitem id="link-search" label="&searchButton.label;" disabled="true"
              class="menuitem-iconic bookmark-item"/>

          <menuseparator />

          <menuitem id="link-author" label="&authorButton.label;" disabled="true"
              class="menuitem-iconic bookmark-item"/>
          <menuitem id="link-copyright" label="&copyrightButton.label;" disabled="true"
              class="menuitem-iconic bookmark-item"/>

          <menuseparator />

          <menu id="link-bookmark" label="&bookmarkButton.label;" disabled="true"
              class="menu-iconic bookmark-item" container="true">
            <menupopup id="link-bookmark-popup" />
          </menu>

          <menuseparator />

          <menu id="link-alternate" label="&alternateButton.label;" disabled="true"
              class="menu-iconic bookmark-item" container="true">
            <menupopup id="link-alternate-popup" />
          </menu>

          <menuseparator collapsed="true" id="misc-separator" />

        </menupopup>
      </toolbarbutton>

      <toolbarbutton id="link-feed" class="bookmark-item"
          type="menu"
          container="true"
          label="&feedButton.label;" disabled="true">
        <menupopup id="link-feed-popup"/>
      </toolbarbutton>
    </toolbar>
  </toolbox>
</overlay>