2006-07-27 18:50:55 +04:00
|
|
|
<?xml version="1.0"?> <!-- -*- Mode: HTML; indent-tabs-mode: nil -*- -->
|
1999-10-29 23:13:42 +04:00
|
|
|
<!--
|
1999-09-15 03:09:28 +04:00
|
|
|
|
1999-10-29 23:13:42 +04:00
|
|
|
The contents of this file are subject to the Netscape Public License
|
|
|
|
Version 1.1 (the "NPL"); you may not use this file except in
|
|
|
|
compliance with the NPL. You may obtain a copy of the NPL at
|
|
|
|
http://www.mozilla.org/NPL/
|
|
|
|
|
|
|
|
Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
|
|
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
|
|
for the specific language governing rights and limitations under the
|
|
|
|
NPL.
|
|
|
|
|
|
|
|
The Initial Developer of this code under the NPL is Netscape
|
|
|
|
Communications Corporation. Portions created by Netscape are
|
|
|
|
Copyright (C) 1999 Netscape Communications Corporation. All Rights
|
|
|
|
Reserved.
|
|
|
|
|
|
|
|
-->
|
2006-07-27 18:53:11 +04:00
|
|
|
|
1999-10-29 23:13:42 +04:00
|
|
|
|
2006-07-27 18:50:59 +04:00
|
|
|
<?xml-stylesheet href="chrome://communicator/content/sidebar/sidebarOverlay.css" type="text/css"?>
|
2006-07-27 18:55:14 +04:00
|
|
|
<?xml-stylesheet href="chrome://global/skin/button.css" type="text/css"?>
|
2006-07-27 18:54:42 +04:00
|
|
|
|
|
|
|
<!DOCTYPE window [
|
|
|
|
<!ENTITY % sidebarOverlayDTD SYSTEM "chrome://communicator/locale/sidebar/sidebarOverlay.dtd" >
|
|
|
|
%sidebarOverlayDTD;
|
|
|
|
]>
|
1999-09-15 03:09:28 +04:00
|
|
|
|
|
|
|
<overlay id="sidebarOverlay"
|
|
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
|
2006-07-27 18:53:49 +04:00
|
|
|
<command id="toggleSidebar" oncommand="SidebarShowHide();"/>
|
|
|
|
<key id="showHideSidebar" keycode="VK_F9" command="toggleSidebar"/>
|
2006-07-27 18:56:22 +04:00
|
|
|
<popup id="sidebarPopup"
|
|
|
|
onpopupshowing="SidebarInitContextMenu(this, document.popupNode);">
|
|
|
|
<menuitem id="switch-ctx-item" label="&sidebar.switch.label;"
|
|
|
|
accesskey="&sidebar.switch.accesskey;" default="true"
|
|
|
|
oncommand="SidebarSelectPanel(document.popupNode,false,false);"/>
|
|
|
|
<menuitem id="reload-ctx-item" label="&sidebar.reload.label;"
|
|
|
|
accesskey="&sidebar.reload.accesskey;" disabled="true"
|
|
|
|
oncommand="SidebarReloadPanel(document.popupNode);"/>
|
|
|
|
<menuitem id="stop-ctx-item" label="&sidebar.loading.stop.label;"
|
|
|
|
accesskey="&sidebar.loading.stop.accesskey;" disabled="true"
|
|
|
|
oncommand="SidebarStopPanelLoad(document.popupNode);"/>
|
|
|
|
<menuseparator/>
|
|
|
|
<menuitem id="hide-ctx-item" label="&sidebar.hide.label;"
|
|
|
|
accesskey="&sidebar.hide.accesskey;"
|
2006-07-27 18:53:53 +04:00
|
|
|
oncommand="SidebarTogglePanel(document.popupNode);"/>
|
|
|
|
<menuseparator/>
|
2006-07-27 18:56:22 +04:00
|
|
|
<menuitem id="customize-ctx-item" label="&sidebar.customize.label;"
|
|
|
|
accesskey="&sidebar.customize.accesskey;"
|
2006-07-27 18:53:53 +04:00
|
|
|
oncommand="SidebarCustomize();"/>
|
|
|
|
</popup>
|
2006-07-27 18:53:49 +04:00
|
|
|
|
1999-09-30 00:23:33 +04:00
|
|
|
<!-- Overlay the sidebar panels -->
|
2006-07-27 18:54:15 +04:00
|
|
|
<vbox id="sidebar-box" persist="hidden width collapsed">
|
2006-07-27 18:53:12 +04:00
|
|
|
<splitter id="sidebar-panels-splitter" collapse="after" persist="state"
|
2006-07-27 18:52:13 +04:00
|
|
|
onmouseup="PersistHeight();" hidden="true">
|
|
|
|
<grippy/>
|
|
|
|
</splitter>
|
2006-07-27 18:54:15 +04:00
|
|
|
<vbox id="sidebar-panels-splitter-box" flex="1"
|
XUL/theme simplification changes - removing unnecessary boxes and re-writing large portions of the themes to use new -moz-border-colors and -moz-image-region css features. Also cleans up the classic skin quite a bit for both mac and win. Fixes bugs 113024, 113043, 113585, 113586, 115943, 113643, 114475, 99787, 110214, 113977, 113966, 114802, 64894, 90724, 103173, 103199, 103298, 110442, 111472, 111989, 113027, 113041, 109180, 109204, 81581, 81903, 103324, 110108, 114540, and probably more I forgot to mention. r=ben, sr=hyatt
2006-07-27 18:55:16 +04:00
|
|
|
persist="collapsed">
|
2006-07-27 18:52:12 +04:00
|
|
|
<sidebarheader id="sidebar-title-box" class="sidebarheader-main"
|
2006-07-27 18:53:34 +04:00
|
|
|
label="&sidebar.panels.label;" persist="hidden" type="box"
|
2006-07-27 18:52:12 +04:00
|
|
|
collapse="after" onmouseup="PersistHeight();">
|
2006-07-27 18:54:45 +04:00
|
|
|
<toolbarbutton type="menu" id="sidebar-panel-picker" menubuttontype="sidebar-panels"
|
2006-07-27 18:54:18 +04:00
|
|
|
onpopupshowing="SidebarBuildPickerPopup();"
|
2006-07-27 18:53:34 +04:00
|
|
|
label="&sidebar.picker.label;" >
|
2006-07-27 18:55:14 +04:00
|
|
|
<menupopup id="sidebar-panel-picker-popup" popupanchor="bottomleft"
|
2006-07-27 18:52:12 +04:00
|
|
|
datasources="rdf:null"
|
2006-07-27 18:53:30 +04:00
|
|
|
ref="urn:sidebar:current-panel-list"
|
|
|
|
oncommand="SidebarTogglePanel(event.target);" >
|
2006-07-27 18:52:12 +04:00
|
|
|
<template>
|
|
|
|
<rule>
|
|
|
|
<conditions>
|
|
|
|
<content uri="?uri"/>
|
|
|
|
<triple subject="?uri"
|
|
|
|
predicate="http://home.netscape.com/NC-rdf#panel-list"
|
|
|
|
object="?panel-list"/>
|
|
|
|
<member container="?panel-list" child="?panel"/>
|
|
|
|
<triple subject="?panel"
|
|
|
|
predicate="http://home.netscape.com/NC-rdf#title"
|
|
|
|
object="?title" />
|
|
|
|
</conditions>
|
|
|
|
<bindings>
|
|
|
|
<binding subject="?panel"
|
|
|
|
predicate="http://home.netscape.com/NC-rdf#exclude"
|
|
|
|
object="?exclude"/>
|
|
|
|
</bindings>
|
|
|
|
<action>
|
|
|
|
<menuitem uri="?panel" type="checkbox"
|
2006-07-27 18:53:34 +04:00
|
|
|
label="?title" exclude="?exclude"/>
|
2006-07-27 18:52:12 +04:00
|
|
|
</action>
|
|
|
|
</rule>
|
|
|
|
</template>
|
2006-07-27 18:53:53 +04:00
|
|
|
<menuitem label="&sidebar.customize.label;" accesskey="&sidebar.customize.accesskey;"
|
|
|
|
oncommand="SidebarCustomize();" />
|
|
|
|
<menuitem label="&sidebar.sbDirectory.label;"
|
|
|
|
oncommand="BrowseMorePanels();" />
|
2006-07-27 18:52:12 +04:00
|
|
|
<menuseparator />
|
|
|
|
</menupopup>
|
2006-07-27 18:54:45 +04:00
|
|
|
</toolbarbutton>
|
2006-07-27 18:56:21 +04:00
|
|
|
<toolbarbutton id="sidebar-close-button" oncommand="SidebarShowHide();"
|
|
|
|
tooltiptext="&sidebar.close.tooltip;"/>
|
2006-07-27 18:52:12 +04:00
|
|
|
</sidebarheader>
|
|
|
|
|
2006-07-27 18:54:15 +04:00
|
|
|
<vbox id="sidebar-panels"
|
2006-07-27 18:52:12 +04:00
|
|
|
datasources="rdf:null"
|
|
|
|
ref="urn:sidebar:current-panel-list"
|
2006-07-27 18:54:17 +04:00
|
|
|
persist="last-selected-panel height collapsed" flex="1*"
|
2006-07-27 18:52:18 +04:00
|
|
|
onclick="return contentAreaClick(event);"
|
|
|
|
ondraggesture="nsDragAndDrop.startDrag(event, contentAreaDNDObserver);">
|
2006-07-27 18:52:12 +04:00
|
|
|
<template id="sidebar-template">
|
|
|
|
<rule>
|
|
|
|
<conditions>
|
|
|
|
<content uri="?uri"/>
|
|
|
|
<triple subject="?uri" object="?panel-list"
|
|
|
|
predicate="http://home.netscape.com/NC-rdf#panel-list" />
|
|
|
|
<member container="?panel-list" child="?panel"/>
|
|
|
|
<triple subject="?panel" object="?title"
|
|
|
|
predicate="http://home.netscape.com/NC-rdf#title" />
|
|
|
|
<triple subject="?panel" object="?content"
|
|
|
|
predicate="http://home.netscape.com/NC-rdf#content" />
|
|
|
|
</conditions>
|
|
|
|
<bindings>
|
|
|
|
<binding subject="?panel" object="?exclude"
|
|
|
|
predicate="http://home.netscape.com/NC-rdf#exclude" />
|
|
|
|
</bindings>
|
|
|
|
<action>
|
2006-07-27 18:54:15 +04:00
|
|
|
<hbox uri="?panel" class="box-texttab texttab-sidebar"
|
2006-07-27 18:54:17 +04:00
|
|
|
oncommand="SidebarSelectPanel(this,false,false)"
|
2006-07-27 18:55:14 +04:00
|
|
|
hidden="true" label="?title" exclude="?exclude"
|
|
|
|
context="sidebarPopup"/>
|
2006-07-27 18:54:17 +04:00
|
|
|
<vbox uri="?panel" flex="1*" hidden="true"
|
2006-07-27 18:52:12 +04:00
|
|
|
loadstate="never loaded">
|
2006-07-27 18:54:17 +04:00
|
|
|
<vbox flex="1" class="iframe-panel loadarea">
|
|
|
|
<hbox flex="1" align="center">
|
2006-07-27 18:52:12 +04:00
|
|
|
<image class="image-panel-loading"/>
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2006-07-27 18:55:09 +04:00
|
|
|
<label class="text-panel-loading"
|
2006-07-27 18:52:12 +04:00
|
|
|
value="&sidebar.loading.label;"/>
|
2006-07-27 18:56:21 +04:00
|
|
|
<label class="text-panel-loading" hidden="true"
|
|
|
|
loading="false"
|
|
|
|
value="&sidebar.loadstopped.label;"/>
|
|
|
|
<button type="stop" label="&sidebar.loading.stop.label;"
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2006-07-27 18:55:09 +04:00
|
|
|
oncommand="SidebarStopPanelLoad(this.parentNode.parentNode.parentNode.previousSibling);"/>
|
2006-07-27 18:56:21 +04:00
|
|
|
<button label="&sidebar.reload.label;" hidden="true"
|
|
|
|
oncommand="SidebarReload();"/>
|
2006-07-27 18:54:15 +04:00
|
|
|
</hbox>
|
2006-07-27 18:54:43 +04:00
|
|
|
<spacer flex="100%"/>
|
2006-07-27 18:54:15 +04:00
|
|
|
</vbox>
|
2006-07-27 18:56:29 +04:00
|
|
|
<browser flex="1*" src="about:blank"
|
2006-07-27 18:53:55 +04:00
|
|
|
hidden="true" collapsed="true" content="?content"/>
|
2006-07-27 18:56:29 +04:00
|
|
|
<browser flex="1*" src="about:blank"
|
2006-07-27 18:56:24 +04:00
|
|
|
hidden="true" collapsed="true" content="?content" type="content" context="contentAreaContextMenu"/>
|
2006-07-27 18:54:15 +04:00
|
|
|
</vbox>
|
2006-07-27 18:52:12 +04:00
|
|
|
</action>
|
|
|
|
</rule>
|
|
|
|
</template>
|
2006-07-27 18:54:15 +04:00
|
|
|
<vbox id="sidebar-iframe-no-panels" class="iframe-panel" flex="1"
|
2006-07-27 18:52:12 +04:00
|
|
|
hidden="true">
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2006-07-27 18:55:09 +04:00
|
|
|
<description>&sidebar.no-panels.state;</description>
|
|
|
|
<description>&sidebar.no-panels.add;</description>
|
|
|
|
<description>&sidebar.no-panels.hide;</description>
|
2006-07-27 18:54:15 +04:00
|
|
|
</vbox>
|
|
|
|
</vbox>
|
2006-07-27 18:56:30 +04:00
|
|
|
<vbox flex="0">
|
|
|
|
<hbox id="nav-buttons-box" hidden="true">
|
|
|
|
<toolbarbutton flex="1" pack="center"
|
|
|
|
class="sidebar-nav-button tab-fwd" onclick="SidebarNavigate(-1);"/>
|
|
|
|
<toolbarbutton flex="1" pack="center"
|
|
|
|
class="sidebar-nav-button tab-back" onclick="SidebarNavigate(1);"/>
|
|
|
|
</hbox>
|
|
|
|
</vbox>
|
2006-07-27 18:54:15 +04:00
|
|
|
</vbox>
|
2006-07-27 18:53:11 +04:00
|
|
|
<popupset id="contentAreaContextSet"/>
|
2006-07-27 18:54:15 +04:00
|
|
|
</vbox>
|
1999-09-15 03:09:28 +04:00
|
|
|
|
1999-10-26 04:39:19 +04:00
|
|
|
<!-- Splitter on the right of sidebar -->
|
2006-07-27 18:49:47 +04:00
|
|
|
<splitter id="sidebar-splitter" collapse="before" persist="state hidden"
|
2006-07-27 18:55:11 +04:00
|
|
|
class="chromeclass-extrachrome sidebar-splitter" align="center"
|
2006-07-27 18:52:12 +04:00
|
|
|
onmouseup="SidebarFinishClick();">
|
2006-07-27 18:51:04 +04:00
|
|
|
<grippy class="sidebar-splitter-grippy"
|
2006-07-27 18:52:15 +04:00
|
|
|
onclick="SidebarCleanUpExpandCollapse();"/>
|
1999-10-26 04:39:19 +04:00
|
|
|
</splitter>
|
1999-10-26 09:46:00 +04:00
|
|
|
|
2006-07-27 18:53:56 +04:00
|
|
|
<!-- View->Sidebar toggle -->
|
|
|
|
<menupopup id="menu_View_Popup">
|
2006-07-27 18:56:33 +04:00
|
|
|
<menu id="menu_Toolbars">
|
|
|
|
<menupopup id="view_toolbars_popup">
|
|
|
|
<menuseparator/>
|
|
|
|
<menuitem id="sidebar-menu" type="checkbox"
|
|
|
|
label="&sidebarCmd.label;"
|
|
|
|
accesskey="&sidebarCmd.accesskey;"
|
|
|
|
command="toggleSidebar"
|
|
|
|
key="showHideSidebar"/>
|
|
|
|
</menupopup>
|
|
|
|
</menu>
|
1999-11-24 07:10:18 +03:00
|
|
|
</menupopup>
|
|
|
|
|
1999-10-26 09:46:00 +04:00
|
|
|
<!-- Scripts go last, because they peek at state to tweak menus -->
|
2006-07-27 18:53:29 +04:00
|
|
|
<script type="application/x-javascript"
|
2006-07-27 18:49:47 +04:00
|
|
|
src="chrome://communicator/content/sidebar/sidebarOverlay.js"/>
|
1999-10-26 09:46:00 +04:00
|
|
|
|
1999-09-15 03:09:28 +04:00
|
|
|
</overlay>
|
1999-10-26 09:46:00 +04:00
|
|
|
|