Removing obsolete files from build. r=ben

git-svn-id: svn://10.0.0.236/trunk@77801 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt%netscape.com 2000-09-01 00:53:50 +00:00
parent c283df6afe
commit cf7514f218
42 changed files with 1 additions and 2674 deletions

View File

@ -656,7 +656,7 @@ xpfe/components/remote/src/Makefile
xpfe/components/autocomplete/Makefile
xpfe/components/autocomplete/public/Makefile
xpfe/components/autocomplete/resources/Makefile
xpfe/components/autocomplete/resources/skin/Makefile
xpfe/components/autocomplete/resources/content/Makefile
xpfe/components/autocomplete/src/Makefile
xpfe/components/console/Makefile
xpfe/components/console/resources/Makefile
@ -680,8 +680,6 @@ xpfe/appfilelocprovider/public/Makefile
xpfe/appfilelocprovider/src/Makefile
xpfe/global/Makefile
xpfe/global/resources/Makefile
xpfe/global/resources/skin/os2/Makefile
xpfe/global/resources/skin/unix/Makefile
xpfe/global/resources/content/Makefile
xpfe/global/resources/content/os2/Makefile
xpfe/global/resources/content/unix/Makefile

View File

@ -1 +0,0 @@
autocomplete.xml

View File

@ -1,35 +0,0 @@
#
# The contents of this file are subject to the Netscape 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/NPL/
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
EXPORT_CHROME = $(srcdir)/autocomplete.xml \
$(NULL)
include $(topsrcdir)/config/rules.mk
install::
$(INSTALL) $(EXPORT_CHROME) $(DIST)/bin/chrome

View File

@ -1,380 +0,0 @@
<?xml version="1.0"?>
<bindings id="autocompleteBindings"
xmlns="http://www.mozilla.org/xbl"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="autocomplete" extends="resource:/chrome/xulBindings.xml#textfield">
<content excludes="template,observes,menupopup">
<xul:box class="textfield-internal-box" flex="1">
<html:input class="textfield-input" flex="1" inherits="value,type,maxlength,disabled,size,readonly"/>
<xul:popupset ignorekeys="true"
oncommand="var me = this.parentNode.parentNode; me.privatefunc.onMenuCommand(me, this);"
>
<xul:popup oncreate="this.parentNode.parentNode.parentNode.menuOpen='true'" ondestroy="this.parentNode.parentNode.parentNode.menuOpen='false';">
</xul:popup>
</xul:popupset>
</xul:box>
</content>
<interface>
<property name="value"
onset="return document.getAnonymousNodes(this)[0].firstChild.value = val;"
onget="this.privatefunc.cleanupInputField(this); return document.getAnonymousNodes(this)[0].firstChild.value;"
/>
<property name="timeout"
onset="return this.setAttribute('timeout', val);"
onget="return this.getAttribute('timeout');"
/>
<property name="displayMenu"
onset="return this.setAttribute('displayMenu', val);"
onget="return this.getAttribute('displayMenu');"
/>
<property name="autoCompleteSession">
<![CDATA[
if (this.getAttribute('searchSessionType') != "") {
searchSession = unescape('component:%2F%2Fnetscape%2FautocompleteSession%26type=');
searchSession = searchSession + this.getAttribute('searchSessionType');
try {
Components.classes[searchSession].getService(Components.interfaces.nsIAutoCompleteSession);
// var session = Components.classes[searchSession].createInstance();
// session.QueryInterface(Components.interfaces.nsIAutoCompleteSession);
} catch (e) {dump("### ERROR, cannot create a search session. " + e + "\n");}
}
]]>
</property>
<property name="disableAutocomplete"
onset="return this.setAttribute('disableAutocomplete', val);"
onget="return this.getAttribute('disableAutocomplete');"
/>
<property name="autoCompleteTimer">
<![CDATA[
0;
]]>
</property>
<property name="lastResults">
<![CDATA[
var results = Components.classes["component://netscape/autocomplete/results"].createInstance();
results.QueryInterface(Components.interfaces.nsIAutoCompleteResults);
]]>
</property>
<property name="autoCompleteListener">
<![CDATA[
({
onAutoComplete: function(result, status) {
var me = this.param;
if (status == Components.interfaces.nsIAutoCompleteStatus.failed)
return;
if (me.disableAutocomplete == "true" || me.privatefunc.imeInProgress(me))
return;
me.lastResults = result;
if (status == Components.interfaces.nsIAutoCompleteStatus.ignored ||
status == Components.interfaces.nsIAutoCompleteStatus.noMatch)
return;
if (result == null && result.items.Count() == 0)
return;
if (result.defaultItemIndex > result.items.Count())
result.defaultItemIndex = 0;
var inputElement = document.getAnonymousNodes(me)[0].firstChild;
//Time to build the new edit field value
//First, check if the search string correspond to the current value of the field, else ignore it
if (result.searchString != inputElement.value)
return;
var item = null;
if (result.defaultItemIndex != -1)
{
item = result.items.QueryElementAt(result.defaultItemIndex, Components.interfaces.nsIAutoCompleteItem);
var match = item.value.toLowerCase();
var entry = inputElement.value.toLowerCase();
if (entry != match)
{
if (match.substring(0, entry.length) == entry)
{
inputElement.value = inputElement.value + item.value.substring(entry.length, match.length);
inputElement.setSelectionRange(entry.length, match.length);
me.noDirectMatch = false;
}
else
{
inputElement.value = inputElement.value + " >> " + item.value;
inputElement.setSelectionRange(entry.length, inputElement.value.length);
me.noDirectMatch = true;
}
}
}
//Now, build the popup content
if (me.displayMenu == "false")
return;
popupset = document.getAnonymousNodes(me)[0].childNodes[1];
popupElement = popupset.firstChild.cloneNode(false);
for (i = 0; i < result.items.Count(); i ++)
{
item = result.items.QueryElementAt(i, Components.interfaces.nsIAutoCompleteItem);
menuitem = document.createElement("menuitem");
menuitem.setAttribute('data', i);
menuitem.setAttribute('value', item.value);
popupElement.appendChild(menuitem);
// dump(" match=" + item.value + "\n");
}
// dump(" count=" + result.items.Count() + ", default=" + result.defaultItemIndex + "\n");
popupset.replaceChild(popupElement, popupset.firstChild);
if (result.defaultItemIndex != -1)
{
//TODO: Select the default item
// popupset.selectedItem = result.defaultItemIndex;
}
me.privatefunc.selectedItemIndex = result.defaultItemIndex;
if (result.defaultItemIndex != 0 || result.items.Count() != 1)
{
me.privatefunc.closePopupMenu(me); //Close it first as openPopup seems to work as a toggle!
popupset.firstChild.openPopup(document.getAnonymousNodes(me)[0].firstChild, -1, -1, "popup", "bottomleft", "topleft");
}
},
param: this
})
]]>
</property>
<property name="privatefunc">
<![CDATA[
({
imeInProgress: function(me) {
var inputElement = document.getAnonymousNodes(me)[0].firstChild;
//I hope ime will set an attribute on the input field when it's currently building a sequence
//like that we can now when we can or not autocomplete.
//Q: How can I know when ime is done? I need to kick the autocomplete timer?
//if (inputElement.getAttribute('<TBD>') == "true")
// return true;
return false;
},
onMenuCommand: function(me, popupSetElem) {
var inputElement = document.getAnonymousNodes(me)[0].firstChild;
var popupElem = popupSetElem.firstChild;
for (var i = 0; i < popupElem.childNodes.length; i ++)
{
var menuitem = popupElem.childNodes[i];
if (menuitem.getAttribute("menuactive") == "true")
{
inputElement.value = menuitem.getAttribute("value");
var inputElement = document.getAnonymousNodes(me)[0].firstChild;
inputElement.setSelectionRange(inputElement.value.length, inputElement.value.length);
needToAutocomplete = false;
me.privatefunc.selectedItemIndex = i;
return;
}
}
},
callListener: function(me, action) {
switch (action) {
case 'startLookup':
if (me.disableAutocomplete == "true" || me.privatefunc.imeInProgress(me))
return;
var inputElement = document.getAnonymousNodes(me)[0].firstChild;
if (!me.lastResults || inputElement.value != me.lastResults.searchString)
me.autoCompleteSession.onStartLookup(inputElement.value, me.lastResults, me.autoCompleteListener);
break;
case 'stopLookup':
// me.privatefunc.closePopupMenu(me);
me.autoCompleteSession.onStopLookup();
break;
case 'autoComplete':
if (me.autoCompleteTimer) {
clearTimeout(me.autoCompleteTimer);
me.autoCompleteTimer = 0;
}
me.needToAutocomplete = false;
if (this.disableAutocomplete == "true" || me.privatefunc.imeInProgress(me))
return;
var inputElement = document.getAnonymousNodes(me)[0].firstChild;
me.autoCompleteSession.onAutoComplete(inputElement.value, me.lastResults, me.autoCompleteListener);
break;
}
},
finishAutoComplete: function(me, event) {
me.privatefunc.closePopupMenu(me);
if (me.disableAutocomplete == "true" || me.privatefunc.imeInProgress(me))
return;
var inputElement = document.getAnonymousNodes(me)[0].firstChild;
var value = inputElement.value;
var entry = value.substring(0, inputElement.selectionStart) + value.substring(inputElement.selectionEnd, value.length);
if (me.lastResults)
{
if (me.lastResults.searchString == entry)
{
try {
inputElement.value = me.lastResults.items.QueryElementAt(me.lastResults.defaultItemIndex, Components.interfaces.nsIAutoCompleteItem).value;
} catch(e) {};
inputElement.setSelectionRange(inputElement.value.length, inputElement.value.length);
return;
}
}
me.privatefunc.callListener(me, 'autoComplete');
},
closePopupMenu: function(me) {
popup = document.getAnonymousNodes(me)[0].childNodes[1].firstChild;
if (popup && me.menuOpen == "true")
popup.closePopup();
},
cleanupInputField: function(me) {
if (me.noDirectMatch)
{
var inputElement = document.getAnonymousNodes(me)[0].firstChild;
var value = inputElement.value;
var index = value.indexOf(">> ");
if (index >= 0)
{
inputElement.value = value.substr(index + 3);
inputElement.setSelectionRange(inputElement.value.length, inputElement.value.length);
}
}
},
keyNavigation: function(me, event, popup) {
var inputElement = document.getAnonymousNodes(me)[0].firstChild;
if (event.keyCode == 38 || event.keyCode == 40)
{
if (event.keyCode == 38)
{
if (me.privatefunc.selectedItemIndex <= -1)
me.privatefunc.selectedItemIndex = me.lastResults.items.Count() - 1;
else
me.privatefunc.selectedItemIndex --;
}
else
{
me.privatefunc.selectedItemIndex ++;
if (me.privatefunc.selectedItemIndex >= me.lastResults.items.Count())
me.privatefunc.selectedItemIndex = -1
}
if (me.privatefunc.selectedItemIndex == -1)
inputElement.value = me.lastResults.searchString;
else
inputElement.value = me.lastResults.items.QueryElementAt(me.privatefunc.selectedItemIndex, Components.interfaces.nsIAutoCompleteItem).value;
inputElement.setSelectionRange(inputElement.value.length, inputElement.value.length);
noDirectMatch = false;
needToAutocomplete = false;
//TODO: Need to change the menu selection
if (popup)
{
}
return;
}
},
processKeyPress: function(me, event) {
//Stop current lookup in case it's async.
me.privatefunc.callListener(me, 'stopLookup');
if (me.autoCompleteTimer) {
clearTimeout(me.autoCompleteTimer);
me.autoCompleteTimer = 0;
}
if (me.disableAutocomplete == "true" || me.privatefunc.imeInProgress(me))
return;
var popup = document.getAnonymousNodes(me)[0].childNodes[1].firstChild;
if (popup && me.menuOpen != "true")
popup = null;
switch (event.keyCode)
{
case 8: /*vk_back*/
case 46: /*vk_delete*/
me.privatefunc.closePopupMenu(me);
me.lastResults.searchString='';
return;
case 13 /*vk_return*/:
me.privatefunc.finishAutoComplete(me, event);
return;
case 27 /*vk_escape*/:
if (popup) {
me.privatefunc.closePopupMenu(me);
event.preventDefault();
event.preventBubble();
return;
}
break;
case 37 /*vk_left*/:
case 39 /*vk_right*/:
if (popup)
{
me.privatefunc.closePopupMenu(me);
event.preventDefault();
event.preventBubble();
}
me.privatefunc.cleanupInputField(me);
break;
case 38 /*vk_up*/:
case 40 /*vk_down*/:
me.privatefunc.keyNavigation(me, event, popup);
event.preventDefault();
event.preventBubble();
me.privatefunc.cleanupInputField(me);
break;
default:
me.needToAutocomplete = true;
me.autoCompleteTimer = setTimeout(me.privatefunc.callListener, me.timeout, me, 'startLookup');
}
},
selectedItemIndex: 0
})
]]>
</property>
</interface>
<handlers>
<handler type="click" value="this.privatefunc.cleanupInputField(this);"/>
<handler type="dblclick" value="this.privatefunc.cleanupInputField(this);"/>
<handler type="keypress" value="this.privatefunc.processKeyPress(this, event);"/>
<handler type="focus" value="this.needToAutocomplete = false; this.lastResults.searchString=''"/>
<handler type="blur" value="
this.privatefunc.closePopupMenu(this);
if (this.needToAutocomplete)
this.privatefunc.finishAutoComplete(this, event);
this.privatefunc.cleanupInputField(this);
"/>
</handlers>
</binding>
</bindings>

View File

@ -1,32 +0,0 @@
#!nmake
#
# The contents of this file are subject to the Netscape 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/NPL/
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
DEPTH=..\..\..\..\..
include <$(DEPTH)\config\rules.mak>
DISTXUL=$(DIST)\bin\chrome
install::
$(MAKE_INSTALL) autocomplete.xml $(DISTXUL)
clobber::
rm -f $(DISTXUL)\autocomplete.xml

View File

@ -1,6 +0,0 @@
xul.css
xulBindings.xml
menulistBindings.xml
htmlBindings.xml
treeBindings.xml
radioBindings.xml

View File

@ -1,46 +0,0 @@
#
# The contents of this file are subject to the Netscape 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/NPL/
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
DIRS = os2
else
DIRS = unix
endif
EXPORT_CHROME = xul.css \
htmlBindings.xml \
xulBindings.xml \
radioBindings.xml \
treeBindings.xml \
menulistBindings.xml \
$(NULL)
include $(topsrcdir)/config/rules.mk
install::
$(INSTALL) $(addprefix $(srcdir)/, $(EXPORT_CHROME)) $(DIST)/bin/chrome

Binary file not shown.

Before

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 857 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 B

View File

@ -1,41 +0,0 @@
/* colors */
.color-dialog
{
background-color : #CCCCCC;
color : #000000;
}
.color-window
{
background-color : #FFFFFF;
color : #000000;
}
/* inset areas */
.inset
{
border : 1px inset #CCCCCC;
margin : 0px 5px 5px 5px;
}
/* formatting */
.groove-top
{
border-top : 2px groove #CCCCCC;
}
.groove-right
{
border-right : 2px groove #CCCCCC;
}
.groove-left
{
border-left : 2px groove #CCCCCC;
}
.groove-bottom
{
border-bottom : 2px groove #CCCCCC;
}

View File

@ -1,83 +0,0 @@
<?xml version="1.0"?>
<bindings id="htmlBindings"
xmlns="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="inputFieldsBase">
<handlers>
<handler type="keypress" id="key_home" keycode="VK_HOME" alt="false" shift="false" control="false"
command="cmd_beginLine"/>
<handler type="keypress" id="key_end" keycode="VK_END" alt="false" shift="false" control="false"
command="cmd_endLine"/>
<handler type="keypress" id="key_left" keycode="VK_LEFT" alt="false" shift="false" control="false"
command="cmd_charPrevious"/>
<handler type="keypress" id="key_right" keycode="VK_RIGHT" alt="false" shift="false" control="false"
command="cmd_charNext"/>
<handler type="keypress" id="key_pageup" keycode="VK_PAGE_UP" alt="false" shift="false" control="false"
command="cmd_scrollPageUp"/>
<handler type="keypress" id="key_pagedown" keycode="VK_PAGE_DOWN" alt="false" shift="false" control="false"
command="cmd_scrollPageDown"/>
<handler type="keypress" id="key_homeshift" keycode="VK_HOME" shift="true" alt="false" control="false"
command="cmd_selectBeginLine"/>
<handler type="keypress" id="key_endshift" keycode="VK_END" shift="true" alt="false" control="false"
command="cmd_selectEndLine"/>
<handler type="keypress" id="key_leftshift" keycode="VK_LEFT" shift="true" alt="false" control="false"
command="cmd_selectCharPrevious"/>
<handler type="keypress" id="key_rightshift" keycode="VK_RIGHT" shift="true" alt="false" control="false"
command="cmd_selectCharNext"/>
<!-- Cut/copy/paste/undo -->
<handler type="keypress" id="key_copy" key="c" primary="true"
command="cmd_copy"/>
<handler type="keypress" id="key_cut" key="x" primary="true"
command="cmd_cut"/>
<handler type="keypress" id="key_paste" key="v" primary="true"
command="cmd_paste"/>
<handler type="keypress" id="key_undo" key="z" primary="true"
command="cmd_undo"/>
</handlers>
</binding>
<binding id="textAreasBase">
<handlers>
<handler type="keypress" id="key_left" keycode="VK_LEFT" alt="false" shift="false" control="false"
command="cmd_charPrevious"/>
<handler type="keypress" id="key_right" keycode="VK_RIGHT" alt="false" shift="false" control="false"
command="cmd_charNext"/>
<handler type="keypress" id="key_leftshift" keycode="VK_LEFT" shift="true" alt="false" control="false"
command="cmd_selectCharPrevious"/>
<handler type="keypress" id="key_rightshift" keycode="VK_RIGHT" shift="true" alt="false" control="false"
command="cmd_selectCharNext"/>
<handler type="keypress" id="key_up" keycode="VK_UP" alt="false" shift="false" control="false"
command="cmd_linePrevious"/>
<handler type="keypress" id="key_down" keycode="VK_DOWN" alt="false" shift="false" control="false"
command="cmd_lineNext"/>
<handler type="keypress" id="key_up_shift" keycode="VK_UP" shift="true" alt="false" control="false"
command="cmd_selectLinePrevious"/>
<handler type="keypress" id="key_down_shift" keycode="VK_DOWN" shift="true" alt="false" control="false"
command="cmd_selectLineNext"/>
<handler type="keypress" id="key_pageup" keycode="VK_PAGE_UP" alt="false" shift="false" control="false"
command="cmd_scrollPageUp"/>
<handler type="keypress" id="key_pagedown" keycode="VK_PAGE_DOWN" alt="false" shift="false" control="false"
command="cmd_scrollPageDown"/>
<!-- Cut/copy/paste -->
<handler type="keypress" id="key_copy" key="c" primary="true"
command="cmd_copy"/>
<handler type="keypress" id="key_cut" key="x" primary="true"
command="cmd_cut"/>
<handler type="keypress" id="key_paste" key="v" primary="true"
command="cmd_paste"/>
<handler type="keypress" id="key_undo" key="z" primary="true"
command="cmd_undo"/>
</handlers>
</binding>
</bindings>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 B

View File

@ -1 +0,0 @@
platformHTMLBindings.xml

View File

@ -1,2 +0,0 @@
packages/widget-toolkit.jar:
global/skin/platformHTMLBindings.xml

View File

@ -1,96 +0,0 @@
<?xml version="1.0"?>
<bindings id="htmlBindings"
xmlns="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="inputFields" extends="resource:/chrome/htmlBindings.xml#inputFieldsBase">
<handlers>
<handler type="keypress" id="key_redo" key="z" primary="true" shift="true" alt="false" control="false"
command="cmd_redo"/>
<handler type="keypress" id="key_up" keycode="VK_UP" alt="false" shift="false" control="false"
command="cmd_linePrevious"/>
<handler type="keypress" id="key_down" keycode="VK_DOWN" alt="false" shift="false" control="false"
command="cmd_lineNext"/>
<handler type="keypress" id="key_up_shift" keycode="VK_UP" alt="false" shift="true" control="false"
command="cmd_selectBeginLine"/>
<handler type="keypress" id="key_down_shift" keycode="VK_DOWN" alt="false" shift="true" control="false"
command="cmd_selectEndLine"/>
<handler type="keypress" id="key_up_meta" keycode="VK_UP" meta="true" alt="false" shift="false" control="false"
command="cmd_scrollPageUp"/>
<handler type="keypress" id="key_down_meta" keycode="VK_DOWN" meta="true" alt="false" shift="false" control="false"
command="cmd_scrollPageDown"/>
<handler type="keypress" id="key_home" keycode="VK_HOME" alt="false" shift="false" control="false" meta="false"
command="cmd_beginLine"/>
<handler type="keypress" id="key_end" keycode="VK_END" alt="false" shift="false" control="false" meta="false"
command="cmd_endLine"/>
<handler type="keypress" id="key_homeshift" keycode="VK_HOME" shift="true" alt="false" control="false" meta="false"
command="cmd_selectBeginLine"/>
<handler type="keypress" id="key_endshift" keycode="VK_END" shift="true" alt="false" control="false" meta="false"
command="cmd_selectEndLine"/>
<handler type="keypress" id="key_leftalt" keycode="VK_LEFT" alt="true" shift="false" control="false"
command="cmd_wordPrevious"/>
<handler type="keypress" id="key_rightalt" keycode="VK_RIGHT" alt="true" shift="false" control="false"
command="cmd_wordNext"/>
<handler type="keypress" id="key_leftshiftalt" keycode="VK_LEFT" alt="true" shift="true" control="false"
command="cmd_selectWordPrevious"/>
<handler type="keypress" id="key_rightshiftalt" keycode="VK_RIGHT" alt="true" shift="true" control="false"
command="cmd_selectWordNext"/>
<handler type="keypress" id="key_leftmeta" keycode="VK_LEFT" meta="true" alt="false" shift="false" control="false"
command="cmd_linePrevious"/>
<handler type="keypress" id="key_rightmeta" keycode="VK_RIGHT" meta="true" alt="false" shift="false" control="false"
command="cmd_lineNext"/>
<handler type="keypress" id="key_leftshiftmeta" keycode="VK_LEFT" meta="true" alt="false" shift="true" control="false"
command="cmd_selectBeginLine"/>
<handler type="keypress" id="key_rightshiftmeta" keycode="VK_RIGHT" meta="true" alt="false" shift="true" control="false"
command="cmd_selectEndLine"/>
</handlers>
</binding>
<binding id="textAreas" extends="resource:/chrome/htmlBindings.xml#textAreasBase">
<handlers>
<handler type="keypress" id="key_redo" key="z" primary="true" shift="true" alt="false" control="false"
command="cmd_redo"/>
<handler type="keypress" id="key_home" keycode="VK_HOME" alt="false" shift="false" control="false"
command="cmd_scrollPageUp"/>
<handler type="keypress" id="key_end" keycode="VK_END" alt="false" shift="false" control="false"
command="cmd_scrollPageDown"/>
<handler type="keypress" id="key_homeshift" keycode="VK_HOME" shift="true" alt="false" control="false"
command="cmd_selectBeginLine"/>
<handler type="keypress" id="key_endshift" keycode="VK_END" shift="true" alt="false" control="false"
command="cmd_selectEndLine"/>
<handler type="keypress" id="key_up_meta" keycode="VK_UP" meta="true" alt="false" shift="false" control="false"
command="cmd_scrollPageUp"/>
<handler type="keypress" id="key_down_meta" keycode="VK_DOWN" meta="true" alt="false" shift="false" control="false"
command="cmd_scrollPageDown"/>
<handler type="keypress" id="key_leftalt" keycode="VK_LEFT" alt="true" shift="false" control="false"
command="cmd_wordPrevious"/>
<handler type="keypress" id="key_rightalt" keycode="VK_RIGHT" alt="true" shift="false" control="false"
command="cmd_wordNext"/>
<handler type="keypress" id="key_leftshiftalt" keycode="VK_LEFT" alt="true" shift="true" control="false"
command="cmd_selectWordPrevious"/>
<handler type="keypress" id="key_rightshiftalt" keycode="VK_RIGHT" alt="true" shift="true" control="false"
command="cmd_selectWordNext"/>
<handler type="keypress" id="key_leftmeta" keycode="VK_LEFT" meta="true" alt="false" shift="false" control="false"
command="cmd_linePrevious"/>
<handler type="keypress" id="key_rightmeta" keycode="VK_RIGHT" meta="true" alt="false" shift="false" control="false"
command="cmd_lineNext"/>
<handler type="keypress" id="key_leftshiftmeta" keycode="VK_LEFT" meta="true" alt="false" shift="true" control="false"
command="cmd_selectBeginLine"/>
<handler type="keypress" id="key_rightshiftmeta" keycode="VK_RIGHT" meta="true" alt="false" shift="true" control="false"
command="cmd_selectEndLine"/>
</handlers>
</binding>
</bindings>

View File

@ -1,45 +0,0 @@
#!nmake
#
# The contents of this file are subject to the Netscape 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/NPL/
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
DEPTH=..\..\..\..
DIRS=win
DISTXUL=$(DIST)\bin\chrome
include <$(DEPTH)\config\rules.mak>
install::
$(MAKE_INSTALL) htmlBindings.xml $(DISTXUL)
$(MAKE_INSTALL) xulBindings.xml $(DISTXUL)
$(MAKE_INSTALL) radioBindings.xml $(DISTXUL)
$(MAKE_INSTALL) treeBindings.xml $(DISTXUL)
$(MAKE_INSTALL) menulistBindings.xml $(DISTXUL)
$(MAKE_INSTALL) xul.css $(DISTXUL)
clobber::
$(RM) $(DISTXUL)\htmlBindings.xml
$(RM) $(DISTXUL)\xulBindings.xml
$(RM) $(DISTXUL)\menulistBindings.xml
$(RM) $(DISTXUL)\treeBindings.xml
$(RM) $(DISTXUL)\radioBindings.xml
$(RM) $(DISTXUL)\xul.css

View File

@ -1,131 +0,0 @@
<?xml version="1.0"?>
<bindings id="menulistBindings"
xmlns="http://www.mozilla.org/xbl"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!--
BINDING : menulist
XUL REPRESENTATION : <menulist>
-->
<binding id="menulist">
<content excludes="template,observes,menupopup">
<xul:image class="menu-icon" inherits="src"/>
<xul:text class="menu-text" flex="1" inherits="value,accesskey,crop" crop="right"/>
<xul:image class="menu-dropmarker"/>
</content>
<handlers>
<handler type="command" capturer="true" value="if (event.target.localName == 'menuitem') { this.selectedItem = event.target; this.data = this.selectedItem.data; }"/>
</handlers>
<interface>
<property name="data" onset="this.setAttribute('data',val); return val;"
onget="return this.getAttribute('data');"/>
</interface>
</binding>
<!--
BINDING : menulist-editable
XUL REPRESENTATION : <menulist editable="true">
-->
<binding id="menulist-editable">
<content excludes="template,observes,menupopup">
<xul:image class="menu-icon" inherits="src"/>
<html:input type="text" flex="1" class="menu-text" allowevents="true" inherits="value,disabled"/>
<xul:image class="menu-dropmarker"/>
</content>
<handlers>
<handler type="command" capturer="true" value="if (event.target.localName == 'menuitem') { this.selectedItem = event.target; this.data = this.selectedItem.data; }"/>
</handlers>
</binding>
<!--
BINDING : menubutton-single
XUL REPRESENTATION : <menubutton>
-->
<binding id="menubutton-single-right">
<content excludes="template,observes,menupopup">
<xul:box class="menubutton-internal-box" autostretch="never">
<xul:text class="menubutton-single-text" inherits="value,crop,accesskey"/>
<xul:image class="menubutton-single-icon"/>
</xul:box>
</content>
</binding>
<binding id="menubutton-single-left">
<content excludes="template,observes,menupopup">
<xul:box class="menubutton-internal-box" autostretch="never">
<xul:image class="menubutton-single-icon"/>
<xul:text class="menubutton-single-text" inherits="value,crop,accesskey"/>
</xul:box>
</content>
</binding>
<!--
BINDING : menubutton-icon
XUL REPRESENTATION : <menubutton class="menubutton-icon">
-->
<binding id="menubutton-icon">
<content excludes="template,observes,menupopup">
<xul:box class="menubutton-icon-internal-box" autostretch="never">
<xul:image class="menubutton-icon-icon" inherits="src"/>
</xul:box>
</content>
</binding>
<!--
BINDING : menubutton-dual
XUL REPRESENTATION : <menubutton class="menubutton-dual">
-->
<binding id="menubutton-dual-top">
<content excludes="template,observes,menupopup">
<xul:box class="menubutton-internal-box">
<xul:button class="menubutton-dual-button top" allowevents="true"
inherits="buttontooltiptext:tooltiptext,buttonaction:oncommand,src,value,crop,accesskey"/>
<xul:image class="menubutton-dropmarker"/>
</xul:box>
</content>
</binding>
<binding id="menubutton-dual-left">
<content excludes="template,observes,menupopup">
<xul:box class="menubutton-internal-box">
<xul:button class="menubutton-dual-button left" allowevents="true"
inherits="buttontooltiptext:tooltiptext,buttonaction:oncommand,src,value,crop,accesskey"/>
<xul:image class="menubutton-dropmarker"/>
</xul:box>
</content>
</binding>
<binding id="menubutton-dual-right">
<content excludes="template,observes,menupopup">
<xul:box class="menubutton-internal-box">
<xul:button class="menubutton-dual-button right" allowevents="true"
inherits="buttontooltiptext:tooltiptext,buttonaction:oncommand,src,value,crop,accesskey"/>
<xul:image class="menubutton-dropmarker"/>
</xul:box>
</content>
</binding>
<binding id="menubutton-dual-bottom">
<content excludes="template,observes,menupopup">
<xul:box class="menubutton-internal-box">
<xul:button class="menubutton-dual-button bottom" allowevents="true"
inherits="buttontooltiptext:tooltiptext,buttonaction:oncommand,src,value,crop,accesskey"/>
<xul:image class="menubutton-dropmarker"/>
</xul:box>
</content>
</binding>
<!--
BINDING : menubutton-item
XUL REPRESENTATION : menuitem
-->
<binding id="menubutton-item">
<content autostretch="never" excludes="template,observes,menupopup">
<xul:text class="menubutton-text" flex="1" inherits="value,accesskey,crop" crop="right"/>
</content>
</binding>
</bindings>

View File

@ -1,37 +0,0 @@
#
# The contents of this file are subject to the Netscape 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/NPL/
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
EXPORT_RESOURCE_CONTENT = \
$(srcdir)/platformHTMLBindings.xml \
$(NULL)
include $(topsrcdir)/config/rules.mk
install::
$(INSTALL) $(EXPORT_RESOURCE_CONTENT) $(DIST)/bin/chrome/

View File

@ -1,2 +0,0 @@
packages/widget-toolkit.jar:
global/skin/platformHTMLBindings.xml

View File

@ -1,135 +0,0 @@
<?xml version="1.0"?>
<bindings id="htmlBindings"
xmlns="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="inputFields" extends="resource:/chrome/htmlBindings.xml#inputFieldsBase">
<handlers>
<!-- Emacsish single-line motion and delete keys -->
<handler type="keypress" id="key_home" key="a" control="true"
command="cmd_beginLine"/>
<handler type="keypress" id="key_end" key="e" control="true"
command="cmd_endLine"/>
<handler type="keypress" id="key_left" key="b" control="true"
command="cmd_charPrevious"/>
<handler type="keypress" id="key_right" key="f" control="true"
command="cmd_charNext"/>
<handler type="keypress" id="key_delback" key="h" control="true"
command="cmd_deleteCharBackward"/>
<handler type="keypress" id="key_delforw" key="d" control="true"
command="cmd_deleteCharForward"/>
<handler type="keypress" id="key_delwback" key="w" control="true"
command="cmd_deleteWordBackward"/>
<handler type="keypress" id="key_del_bol" key="u" control="true"
command="cmd_deleteToBeginningOfLine"/>
<handler type="keypress" id="key_del_eol" key="k" control="true"
command="cmd_deleteToEndOfLine"/>
<!-- Windows copy/paste/undo/redo keys -->
<handler type="keypress" id="key_wincopy" key="c" control="true"
command="cmd_copy"/>
<handler type="keypress" id="key_wincut" key="x" control="true"
command="cmd_cut"/>
<handler type="keypress" id="key_winundo" key="z" control="true"
command="cmd_undo"/>
<handler type="keypress" id="key_winredo" key="r" control="true"
command="cmd_redo"/>
<handler type="keypress" id="key_altwincut" keycode="VK_DELETE" shift="true" control="false" alt="false"
command="cmd_cut"/>
<handler type="keypress" id="key_altwincopy" keycode="VK_INSERT" control="true" shift="false" alt="false"
command="cmd_copy"/>
<handler type="keypress" id="key_altwinpaste" keycode="VK_INSERT" shift="true" control="false" alt="false"
command="cmd_paste"/>
<!-- navigating by word keys -->
<handler type="keypress" id="key_home" keycode="VK_HOME" alt="false" shift="false" control="false"
command="cmd_beginLine"/>
<handler type="keypress" id="key_end" keycode="VK_END" alt="false" shift="false" control="false"
command="cmd_endLine"/>
<handler type="keypress" id="key_homeshift" keycode="VK_HOME" shift="true" alt="false" control="false"
command="cmd_selectBeginLine"/>
<handler type="keypress" id="key_endshift" keycode="VK_END" shift="true" alt="false" control="false"
command="cmd_selectEndLine"/>
<handler type="keypress" id="key_leftcontrol" keycode="VK_LEFT" control="true" alt="false" shift="false"
command="cmd_wordPrevious"/>
<handler type="keypress" id="key_rightcontrol" keycode="VK_RIGHT" control="true" alt="false" shift="false"
command="cmd_wordNext"/>
<handler type="keypress" id="key_leftshiftcontrol" keycode="VK_LEFT" shift="true" control="true" alt="false"
command="cmd_selectWordPrevious"/>
<handler type="keypress" id="key_rightshiftcontrol" keycode="VK_RIGHT" shift="true" control="true" alt="false"
command="cmd_selectWordNext"/>
<handler type="keypress" id="key_redo" key="y" primary="true"
command="cmd_redo"/>
</handlers>
</binding>
<binding id="textAreas" extends="resource:/chrome/htmlBindings.xml#textAreasBase">
<handlers>
<!-- Emacsish single-line motion and delete keys -->
<handler type="keypress" id="key_home" key="a" control="true"
command="cmd_beginLine"/>
<handler type="keypress" id="key_end" key="e" control="true"
command="cmd_endLine"/>
<handler type="keypress" id="key_left" key="b" control="true"
command="cmd_charPrevious"/>
<handler type="keypress" id="key_right" key="f" control="true"
command="cmd_charNext"/>
<handler type="keypress" id="key_delback" key="h" control="true"
command="cmd_deleteCharBackward"/>
<handler type="keypress" id="key_delforw" key="d" control="true"
command="cmd_deleteCharForward"/>
<handler type="keypress" id="key_delwback" key="w" control="true"
command="cmd_deleteWordBackward"/>
<handler type="keypress" id="key_del_bol" key="u" control="true"
command="cmd_deleteToBeginningOfLine"/>
<handler type="keypress" id="key_del_eol" key="k" control="true"
command="cmd_deleteToEndOfLine"/>
<!-- Windows copy/paste/undo/redo keys -->
<handler type="keypress" id="key_wincopy" key="c" control="true"
command="cmd_copy"/>
<handler type="keypress" id="key_wincut" key="x" control="true"
command="cmd_cut"/>
<handler type="keypress" id="key_winundo" key="z" control="true"
command="cmd_undo"/>
<handler type="keypress" id="key_winredo" key="r" control="true"
command="cmd_redo"/>
<handler type="keypress" id="key_altwincut" keycode="VK_DELETE" shift="true" control="false" alt="false"
command="cmd_cut"/>
<handler type="keypress" id="key_altwincopy" keycode="VK_INSERT" control="true" shift="false" alt="false"
command="cmd_copy"/>
<handler type="keypress" id="key_altwinpaste" keycode="VK_INSERT" shift="true" control="false" alt="false"
command="cmd_paste"/>
<!-- Emacsish multi-line motion and delete keys -->
<handler type="keypress" id="key_linedown" key="n" control="true"
command="cmd_lineNext"/>
<handler type="keypress" id="key_lineup" key="p" control="true"
command="cmd_linePrevious"/>
<!-- handle home/end/arrow keys and redo -->
<handler type="keypress" id="key_home" keycode="VK_HOME" alt="false" shift="false" control="false"
command="cmd_beginLine"/>
<handler type="keypress" id="key_end" keycode="VK_END" alt="false" shift="false" control="false"
command="cmd_endLine"/>
<handler type="keypress" id="key_homeshift" keycode="VK_HOME" shift="true" alt="false" control="false"
command="cmd_selectBeginLine"/>
<handler type="keypress" id="key_endshift" keycode="VK_END" shift="true" alt="false" control="false"
command="cmd_selectEndLine"/>
<handler type="keypress" id="key_leftcontrol" keycode="VK_LEFT" control="true" alt="false" shift="false"
command="cmd_wordPrevious"/>
<handler type="keypress" id="key_rightcontrol" keycode="VK_RIGHT" control="true" alt="false" shift="false"
command="cmd_wordNext"/>
<handler type="keypress" id="key_leftshiftcontrol" keycode="VK_LEFT" shift="true" control="true" alt="false"
command="cmd_selectWordPrevious"/>
<handler type="keypress" id="key_rightshiftcontrol" keycode="VK_RIGHT" shift="true" control="true" alt="false"
command="cmd_selectWordNext"/>
<handler type="keypress" id="key_redo" key="y" primary="true"
command="cmd_redo"/>
</handlers>
</binding>
</bindings>

View File

@ -1,87 +0,0 @@
<?xml version="1.0"?>
<bindings id="xulBindings"
xmlns="http://www.mozilla.org/xbl"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="radio" extends="resource:/chrome/xulBindings.xml#checkbox">
<interface>
<property name="data" onset="this.setAttribute('data',val); return val;"
onget="return this.getAttribute('data');"/>
<property name="group" onset="this.setAttribute('group',val); return val;"
onget="return this.getAttribute('group');"/>
</interface>
<handlers>
<handler type="command">
dump("*** this.checked = " + this.checked + "\n");
if( !this.checked ) this.checked = true;
</handler>
</handlers>
</binding>
<binding id="radiogroup">
<interface>
<property name="data" onset="this.setAttribute('data',val); return val;"
onget="return this.getAttribute('data');"/>
<property name="selectedItem">
<getter>
<![CDATA[
var groupElements = this.getElementsByAttribute( "group", this.id );
for( var i = 0; i < groupElements.length; i++ )
{
if( groupElements[i].checked ||
groupElements[i].getAttribute( "checked" ) == "true" )
return groupElements[i];
}
]]>
</getter>
<setter>
<![CDATA[
var aDOMElement = val;
this.data = aDOMElement.data;
aDOMElement.checked = true;
// uncheck all other group nodes
var groupElements = this.getElementsByAttribute( "group", aDOMElement.group );
for( var i = 0; i < groupElements.length; i++ )
{
if( groupElements[i] != aDOMElement && groupElements[i].checked )
{
dump("*** unchecking element " + i + "\n");
groupElements[i].checked = false;
groupElements[i].removeAttribute( "checked" );
}
}
return val;
]]>
</setter>
</property>
</interface>
<handlers>
<handler type="click">
try
{
if( event.target.nodeName == "radio" )
this.selectedItem = event.target;
}
catch(e)
{
}
</handler>
<handler type="keypress" key=" ">
try
{
if( event.target.nodeName == "radio" )
this.selectedItem = event.target;
}
catch(e)
{
}
</handler>
</handlers>
</binding>
</bindings>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 B

View File

@ -1,103 +0,0 @@
<?xml version="1.0"?>
<bindings id="treeBindings"
xmlns="http://www.mozilla.org/xbl"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="tree">
<content>
<children/>
<xul:treerows>
<children includes="treehead,treechildren"/>
</xul:treerows>
</content>
</binding>
<binding id="treerows">
<content flex="1"/>
<handlers>
<handler type="click" shift="false" primary="false"
value="if (event.target.tagName == 'treecell')
parentNode.selectItem(event.target.parentNode.parentNode);"/>
<handler type="click" shift="false" primary="true"
value="if (event.target.tagName == 'treecell')
parentNode.toggleItemSelection(event.target.parentNode.parentNode);"/>
<handler type="click" shift="true" primary="false"
value="if (event.target.tagName == 'treecell')
parentNode.selectItemRange(event.target.parentNode.parentNode);"/>
<handler type="click" shift="false" primary="false" clickcount="2">
<![CDATA[
if (event.target.tagName == 'treecell') {
var n = event.target.parentNode.parentNode;
if ((n.getAttribute('container') == 'true') &&
(n.getAttribute('empty') != 'true')) {
if (n.getAttribute('open') == 'true')
n.removeAttribute('open');
else n.setAttribute('open', 'true');
}
}
]]>
</handler>
<handler type="click" shift="false" primary="false">
<![CDATA[
if (event.target.getAttribute('twisty') == 'true') {
var n = event.target.parentNode.parentNode.parentNode;
if ((n.getAttribute('container') == 'true') &&
(n.getAttribute('empty') != 'true')) {
if (n.getAttribute('open') == 'true')
n.removeAttribute('open');
else n.setAttribute('open', 'true');
}
}
]]>
</handler>
</handlers>
</binding>
<binding id="treecell-indented-folder">
<content autostretch="never">
<xul:treeindentation/>
<xul:image class="tree-cell-twisty" twisty="true" allowevents="true"/>
<xul:image class="tree-cell-primary-icon" inherits="src"/>
<xul:text class="tree-cell-text" inherits="crop,value,align" flex="1" crop="right"/>
</content>
</binding>
<binding id="treecell-indented-leaf">
<content autostretch="never">
<xul:treeindentation/>
<xul:image class="tree-cell-primary-icon" inherits="src"/>
<xul:text class="tree-cell-text" inherits="crop,value,align" flex="1" crop="right"/>
</content>
</binding>
<binding id="treecell-iconic">
<content autostretch="never">
<xul:image class="tree-cell-icon" inherits="src"/>
<xul:text class="tree-cell-text" inherits="crop,value,align" flex="1" crop="right"/>
</content>
</binding>
<binding id="treecell-image">
<content autostretch="never">
<xul:image class="tree-cell-image" inherits="src"/>
</content>
</binding>
<binding id="treecell">
<content autostretch="never">
<xul:text class="tree-cell-text" inherits="crop,value,align" flex="1" crop="right"/>
</content>
</binding>
<binding id="treecell-header">
<content autostretch="never">
<xul:image class="tree-header-image" inherits="src"/>
<xul:text class="tree-header-text" inherits="crop,value" flex="1" crop="right"/>
<xul:image class="tree-header-sortdirection"/>
</content>
</binding>
</bindings>

View File

@ -1,37 +0,0 @@
#
# The contents of this file are subject to the Netscape 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/NPL/
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
EXPORT_RESOURCE_CONTENT = \
$(srcdir)/platformHTMLBindings.xml \
$(NULL)
include $(topsrcdir)/config/rules.mk
install::
$(INSTALL) $(EXPORT_RESOURCE_CONTENT) $(DIST)/bin/chrome/

View File

@ -1,2 +0,0 @@
packages/widget-toolkit.jar:
global/skin/platformHTMLBindings.xml

View File

@ -1,139 +0,0 @@
<?xml version="1.0"?>
<bindings id="htmlBindings"
xmlns="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="inputFields" extends="resource:/chrome/htmlBindings.xml#inputFieldsBase">
<handlers>
<!-- Emacsish single-line motion and delete keys -->
<handler type="keypress" id="key_home" key="a" control="true"
command="cmd_beginLine"/>
<handler type="keypress" id="key_end" key="e" control="true"
command="cmd_endLine"/>
<handler type="keypress" id="key_left" key="b" control="true"
command="cmd_charPrevious"/>
<handler type="keypress" id="key_right" key="f" control="true"
command="cmd_charNext"/>
<handler type="keypress" id="key_delback" key="h" control="true"
command="cmd_deleteCharBackward"/>
<handler type="keypress" id="key_delforw" key="d" control="true"
command="cmd_deleteCharForward"/>
<handler type="keypress" id="key_delwback" key="w" control="true"
command="cmd_deleteWordBackward"/>
<handler type="keypress" id="key_del_bol" key="u" control="true"
command="cmd_deleteToBeginningOfLine"/>
<handler type="keypress" id="key_del_eol" key="k" control="true"
command="cmd_deleteToEndOfLine"/>
<!-- Windows copy/paste/undo/redo keys -->
<handler type="keypress" id="key_wincopy" key="c" control="true"
command="cmd_copy"/>
<handler type="keypress" id="key_wincut" key="x" control="true"
command="cmd_cut"/>
<handler type="keypress" id="key_winpaste" key="v" control="true"
command="cmd_paste"/>
<handler type="keypress" id="key_winundo" key="z" control="true"
command="cmd_undo"/>
<handler type="keypress" id="key_winredo" key="r" control="true"
command="cmd_redo"/>
<handler type="keypress" id="key_altwincut" keycode="VK_DELETE" shift="true" control="false" alt="false"
command="cmd_cut"/>
<handler type="keypress" id="key_altwincopy" keycode="VK_INSERT" control="true" shift="false" alt="false"
command="cmd_copy"/>
<handler type="keypress" id="key_altwinpaste" keycode="VK_INSERT" shift="true" control="false" alt="false"
command="cmd_paste"/>
<!-- navigating by word keys -->
<handler type="keypress" id="key_home" keycode="VK_HOME" alt="false" shift="false" control="false"
command="cmd_beginLine"/>
<handler type="keypress" id="key_end" keycode="VK_END" alt="false" shift="false" control="false"
command="cmd_endLine"/>
<handler type="keypress" id="key_homeshift" keycode="VK_HOME" shift="true" alt="false" control="false"
command="cmd_selectBeginLine"/>
<handler type="keypress" id="key_endshift" keycode="VK_END" shift="true" alt="false" control="false"
command="cmd_selectEndLine"/>
<handler type="keypress" id="key_leftcontrol" keycode="VK_LEFT" control="true" alt="false" shift="false"
command="cmd_wordPrevious"/>
<handler type="keypress" id="key_rightcontrol" keycode="VK_RIGHT" control="true" alt="false" shift="false"
command="cmd_wordNext"/>
<handler type="keypress" id="key_leftshiftcontrol" keycode="VK_LEFT" shift="true" control="true" alt="false"
command="cmd_selectWordPrevious"/>
<handler type="keypress" id="key_rightshiftcontrol" keycode="VK_RIGHT" shift="true" control="true" alt="false"
command="cmd_selectWordNext"/>
<handler type="keypress" id="key_redo" key="y" primary="true"
command="cmd_redo"/>
</handlers>
</binding>
<binding id="textAreas" extends="resource:/chrome/htmlBindings.xml#textAreasBase">
<handlers>
<!-- Emacsish single-line motion and delete keys -->
<handler type="keypress" id="key_home" key="a" control="true"
command="cmd_beginLine"/>
<handler type="keypress" id="key_end" key="e" control="true"
command="cmd_endLine"/>
<handler type="keypress" id="key_left" key="b" control="true"
command="cmd_charPrevious"/>
<handler type="keypress" id="key_right" key="f" control="true"
command="cmd_charNext"/>
<handler type="keypress" id="key_delback" key="h" control="true"
command="cmd_deleteCharBackward"/>
<handler type="keypress" id="key_delforw" key="d" control="true"
command="cmd_deleteCharForward"/>
<handler type="keypress" id="key_delwback" key="w" control="true"
command="cmd_deleteWordBackward"/>
<handler type="keypress" id="key_del_bol" key="u" control="true"
command="cmd_deleteToBeginningOfLine"/>
<handler type="keypress" id="key_del_eol" key="k" control="true"
command="cmd_deleteToEndOfLine"/>
<!-- Windows copy/paste/undo/redo keys -->
<handler type="keypress" id="key_wincopy" key="c" control="true"
command="cmd_copy"/>
<handler type="keypress" id="key_wincut" key="x" control="true"
command="cmd_cut"/>
<handler type="keypress" id="key_winpaste" key="v" control="true"
command="cmd_paste"/>
<handler type="keypress" id="key_winundo" key="z" control="true"
command="cmd_undo"/>
<handler type="keypress" id="key_winredo" key="r" control="true"
command="cmd_redo"/>
<handler type="keypress" id="key_altwincut" keycode="VK_DELETE" shift="true" control="false" alt="false"
command="cmd_cut"/>
<handler type="keypress" id="key_altwincopy" keycode="VK_INSERT" control="true" shift="false" alt="false"
command="cmd_copy"/>
<handler type="keypress" id="key_altwinpaste" keycode="VK_INSERT" shift="true" control="false" alt="false"
command="cmd_paste"/>
<!-- Emacsish multi-line motion and delete keys -->
<handler type="keypress" id="key_linedown" key="n" control="true"
command="cmd_lineNext"/>
<handler type="keypress" id="key_lineup" key="p" control="true"
command="cmd_linePrevious"/>
<!-- handle home/end/arrow keys and redo -->
<handler type="keypress" id="key_home" keycode="VK_HOME" alt="false" shift="false" control="false"
command="cmd_beginLine"/>
<handler type="keypress" id="key_end" keycode="VK_END" alt="false" shift="false" control="false"
command="cmd_endLine"/>
<handler type="keypress" id="key_homeshift" keycode="VK_HOME" shift="true" alt="false" control="false"
command="cmd_selectBeginLine"/>
<handler type="keypress" id="key_endshift" keycode="VK_END" shift="true" alt="false" control="false"
command="cmd_selectEndLine"/>
<handler type="keypress" id="key_leftcontrol" keycode="VK_LEFT" control="true" alt="false" shift="false"
command="cmd_wordPrevious"/>
<handler type="keypress" id="key_rightcontrol" keycode="VK_RIGHT" control="true" alt="false" shift="false"
command="cmd_wordNext"/>
<handler type="keypress" id="key_leftshiftcontrol" keycode="VK_LEFT" shift="true" control="true" alt="false"
command="cmd_selectWordPrevious"/>
<handler type="keypress" id="key_rightshiftcontrol" keycode="VK_RIGHT" shift="true" control="true" alt="false"
command="cmd_selectWordNext"/>
<handler type="keypress" id="key_redo" key="y" primary="true"
command="cmd_redo"/>
</handlers>
</binding>
</bindings>

View File

@ -1,2 +0,0 @@
packages/widget-toolkit.jar:
global/skin/platformHTMLBindings.xml

View File

@ -1,32 +0,0 @@
#!nmake
#
# The contents of this file are subject to the Netscape 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/NPL/
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
DEPTH=..\..\..\..\..
include <$(DEPTH)\config\rules.mak>
DISTBROWSER=$(DIST)\bin\chrome
install::
$(MAKE_INSTALL) platformHTMLBindings.xml $(DISTBROWSER)
clobber::
rm -f $(DIST)\bin\chrome\global\content\*.*

View File

@ -1,76 +0,0 @@
<?xml version="1.0"?>
<bindings id="htmlBindings"
xmlns="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="inputFields" extends="resource:/chrome/htmlBindings.xml#inputFieldsBase">
<handlers>
<handler type="keypress" id="key_up" keycode="VK_UP" alt="false" shift="false" control="false"
command="cmd_charPrevious"/>
<handler type="keypress" id="key_down" keycode="VK_DOWN" alt="false" shift="false" control="false"
command="cmd_charNext"/>
<handler type="keypress" id="key_leftshift" keycode="VK_UP" shift="true" alt="false" control="false"
command="cmd_selectCharPrevious"/>
<handler type="keypress" id="key_rightshift" keycode="VK_DOWN" shift="true" alt="false" control="false"
command="cmd_selectCharNext"/>
<handler type="keypress" id="key_home" keycode="VK_HOME" alt="false" shift="false" control="false"
command="cmd_beginLine"/>
<handler type="keypress" id="key_end" keycode="VK_END" alt="false" shift="false" control="false"
command="cmd_endLine"/>
<handler type="keypress" id="key_homeshift" keycode="VK_HOME" shift="true" alt="false" control="false"
command="cmd_selectBeginLine"/>
<handler type="keypress" id="key_endshift" keycode="VK_END" shift="true" alt="false" control="false"
command="cmd_selectEndLine"/>
<handler type="keypress" id="key_leftcontrol" keycode="VK_LEFT" control="true" alt="false" shift="false"
command="cmd_wordPrevious"/>
<handler type="keypress" id="key_rightcontrol" keycode="VK_RIGHT" control="true" alt="false" shift="false"
command="cmd_wordNext"/>
<handler type="keypress" id="key_leftshiftcontrol" keycode="VK_LEFT" shift="true" control="true" alt="false"
command="cmd_selectWordPrevious"/>
<handler type="keypress" id="key_rightshiftcontrol" keycode="VK_RIGHT" shift="true" control="true" alt="false"
command="cmd_selectWordNext"/>
<handler type="keypress" id="key_redo" key="y" primary="true"
command="cmd_redo"/>
<handler type="keypress" id="key_altwincut" keycode="VK_DELETE" shift="true" control="false" alt="false"
command="cmd_cut"/>
<handler type="keypress" id="key_altwincopy" keycode="VK_INSERT" control="true" shift="false" alt="false"
command="cmd_copy"/>
<handler type="keypress" id="key_altwinpaste" keycode="VK_INSERT" shift="true" control="false" alt="false"
command="cmd_paste"/>
</handlers>
</binding>
<binding id="textAreas" extends="resource:/chrome/htmlBindings.xml#textAreasBase">
<handlers>
<handler type="keypress" id="key_home" keycode="VK_HOME" alt="false" shift="false" control="false"
command="cmd_beginLine"/>
<handler type="keypress" id="key_end" keycode="VK_END" alt="false" shift="false" control="false"
command="cmd_endLine"/>
<handler type="keypress" id="key_homeshift" keycode="VK_HOME" shift="true" alt="false" control="false"
command="cmd_selectBeginLine"/>
<handler type="keypress" id="key_endshift" keycode="VK_END" shift="true" alt="false" control="false"
command="cmd_selectEndLine"/>
<handler type="keypress" id="key_leftcontrol" keycode="VK_LEFT" control="true" alt="false" shift="false"
command="cmd_wordPrevious"/>
<handler type="keypress" id="key_rightcontrol" keycode="VK_RIGHT" control="true" alt="false" shift="false"
command="cmd_wordNext"/>
<handler type="keypress" id="key_leftshiftcontrol" keycode="VK_LEFT" shift="true" control="true" alt="false"
command="cmd_selectWordPrevious"/>
<handler type="keypress" id="key_rightshiftcontrol" keycode="VK_RIGHT" shift="true" control="true" alt="false"
command="cmd_selectWordNext"/>
<handler type="keypress" id="key_redo" key="y" primary="true"
command="cmd_redo"/>
<handler type="keypress" id="key_altwincut" keycode="VK_DELETE" shift="true" control="false" alt="false"
command="cmd_cut"/>
<handler type="keypress" id="key_altwincopy" keycode="VK_INSERT" control="true" shift="false" alt="false"
command="cmd_copy"/>
<handler type="keypress" id="key_altwinpaste" keycode="VK_INSERT" shift="true" control="false" alt="false"
command="cmd_paste"/>
</handlers>
</binding>
</bindings>

View File

@ -1,543 +0,0 @@
/** this should only contain XUL dialog and document window widget defaults. Defaults for widgets of
a particular application should be in that application's style sheet.
For example style definitions for navigator can be found in navigator.css
THIS FILE IS LOCKED DOWN. YOU ARE NOT ALLOWED TO MODIFY IT WITHOUT FIRST HAVING YOUR
CHANGES REVIEWED BY hyatt@netscape.com.
**/
/*@import url(chrome://global/content/content.css);*/
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); /* set default namespace to XUL */
@namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
@namespace xbl url("http://www.mozilla.org/xbl"); /* namespace for XBL elements */
* {
display: block;
}
*[collapsed="true"] {
visibility: collapse;
}
*[hidden="true"] {
display: none;
}
checkbox,radio,tree,menulist {
user-focus: normal;
}
menupopup, popup, splitter {
user-focus: ignore;
}
treechildren, treehead, treerows {
user-focus: none;
}
/**
* All elements that have no visual representation
*/
commands, commandset, command {
display: none;
}
xbl|children {
display: none;
}
broadcasterset, broadcaster {
display: none;
}
observes {
display: none;
}
template {
display: none;
}
data {
display: none;
}
/**********************************
* Window
**********************************/
window {
overflow: hidden;
}
/**********************************
* XUL widgets
**********************************/
/******** Browser, editor, iframe ********/
browser, editor, iframe {
display: inline;
}
/******** Box *******/
/******** TitledBox *******/
box.titledbox-title {
}
box.titledbox-body {
vertical-align: inherit;
text-align: inherit;
}
titledbox {
behavior: url(resource:/chrome/xulBindings.xml#titledbox);
}
title {
behavior: url(resource:/chrome/xulBindings.xml#title);
}
/******* ToolBox & ToolBar *******/
toolbox {
user-focus: ignore;
behavior: url(resource:/chrome/xulBindings.xml#toolbox);
}
toolbar, menubar {
user-focus: ignore;
}
toolbar,menubar {
behavior: url(resource:/chrome/xulBindings.xml#toolbar);
}
toolbargrippy {
behavior: url(resource:/chrome/xulBindings.xml#toolbargrippy);
}
toolbar[collapsed="true"] {
visibility: visible;
}
box.toolbar-holder[collapsed="true"] {
visibility: collapse;
}
/********* XP Menus ***********/
menubar > menu
{
behavior : url("resource:/chrome/xulBindings.xml#menu-menubar");
}
menubar > menu.menu-iconic
{
behavior : url("resource:/chrome/xulBindings.xml#menu-menubar-iconic");
}
menu
{
behavior : url("resource:/chrome/xulBindings.xml#menu");
}
menu.menu-iconic
{
behavior : url("resource:/chrome/xulBindings.xml#menu-iconic");
}
menuitem
{
behavior : url("resource:/chrome/xulBindings.xml#menuitem");
}
menuitem.menuitem-iconic
{
behavior : url("resource:/chrome/xulBindings.xml#menuitem-iconic");
}
menuitem[type="checkbox"],
menuitem[type="radio"]
{
behavior : url("resource:/chrome/xulBindings.xml#menuitem-iconic");
}
menulist > menupopup > menuitem
{
behavior : url("resource:/chrome/xulBindings.xml#menuitem-iconic");
}
menuitem.menuitem-non-iconic
{
behavior : url("resource:/chrome/menulistBindings.xml#menubutton-item");
}
menupopup
{
behavior: url("resource:/chrome/xulBindings.xml#popups");
display : none;
}
popup {
behavior: url("resource:/chrome/xulBindings.xml#popups");
display: none;
}
menupopup[menugenerated="true"] {
display: block;
}
popup[menugenerated="true"] {
display: block;
}
menupopup, popup {
z-index: 2147483647;
}
/******** Titled buttons **********/
/******** Tree widget **********/
tree {
display: table;
table-layout: fixed;
width: 200px;
height: 200px;
min-width: 0px;
min-height: 0px;
}
/*
tree {
behavior: url("resource:/chrome/treeBindings.xml#tree");
}
tree > treechildren {
behavior: url("resource:/chrome/treeBindings.xml#treerows");
}
*/
treeitem {
display: table-row-group;
}
treerow {
display: table-row;
}
treehead {
display: table-header-group;
}
treechildren {
display: table-row-group;
}
treecell {
display: table-cell;
vertical-align: middle;
behavior: url("resource:/chrome/treeBindings.xml#treecell");
}
.treecell-indent {
behavior: url("resource:/chrome/treeBindings.xml#treecell-indented-leaf");
}
treeitem[container="true"] > treerow > .treecell-indent {
behavior: url("resource:/chrome/treeBindings.xml#treecell-indented-folder");
}
.treecell-iconic {
behavior: url("resource:/chrome/treeBindings.xml#treecell-iconic");
}
.treecell-image {
behavior: url("resource:/chrome/treeBindings.xml#treecell-image");
}
.treecell-header {
behavior: url("resource:/chrome/treeBindings.xml#treecell-header");
}
treeitem > treechildren {
display: none;
}
treeitem[open="true"] > treechildren {
display: table-row-group;
}
treecol {
display: table-column;
}
treecolgroup {
display: table-column-group;
}
/********** Tab widget *********/
tab {
behavior: url(resource:/chrome/xulBindings.xml#tab);
}
:-moz-deck-hidden {
visibility: hidden;
}
/********** checkbox **********/
checkbox {
behavior: url(resource:/chrome/xulBindings.xml#checkbox);
}
radio
{
behavior : url(resource:/chrome/radioBindings.xml#radio);
}
radiogroup
{
behavior : url(resource:/chrome/radioBindings.xml#radiogroup);
}
button, button.left {
/*user-focus: normal;*/
behavior: url(resource:/chrome/xulBindings.xml#buttonleft);
}
button.top {
behavior: url(resource:/chrome/xulBindings.xml#buttontop);
}
button.right {
behavior: url(resource:/chrome/xulBindings.xml#buttonright);
}
button.bottom {
behavior: url(resource:/chrome/xulBindings.xml#buttonbottom);
}
menuseparator, separator {
behavior: url(resource:/chrome/xulBindings.xml#separator);
}
/* appending to end so we don't make hyatt cry */
progressmeter {
behavior: url(resource:/chrome/xulBindings.xml#progressmeter);
}
textfield {
behavior: url(resource:/chrome/xulBindings.xml#textfield);
user-select: text;
}
textfield[multiline="true"] {
behavior: url(resource:/chrome/xulBindings.xml#textarea);
}
text {
behavior: url(resource:/chrome/xulBindings.xml#text);
}
text[editable="true"] {
user-select: text;
}
text[editable="true"], text[editable="true"][mode="display"] {
behavior: url(resource:/chrome/xulBindings.xml#text-editable-display);
}
text[editable="true"][mode="edit"] {
behavior: url(resource:/chrome/xulBindings.xml#text-editable-edit);
}
textfield[autocomplete="true"] {
behavior: url(resource:/chrome/autocomplete.xml#autocomplete);
}
colorpicker {
behavior: url(resource:/chrome/xulBindings.xml#colorpicker);
}
/** Buttons with Menus:
* - menulist
* - menulist[editable="true"] (combobox)
* - menubutton
**/
menulist
{
behavior : url("resource:/chrome/menulistBindings.xml#menulist");
}
menulist[editable="true"]
{
behavior : url("resource:/chrome/menulistBindings.xml#menulist-editable");
}
menubutton
{
behavior : url("resource:/chrome/menulistBindings.xml#menubutton-single-left");
}
menubutton.right
{
behavior : url("resource:/chrome/menulistBindings.xml#menubutton-single-right");
}
menubutton.menubutton-dual.left
{
behavior : url("resource:/chrome/menulistBindings.xml#menubutton-dual-left");
}
menubutton.menubutton-dual.top
{
behavior : url("resource:/chrome/menulistBindings.xml#menubutton-dual-top");
}
menubutton.menubutton-dual.right
{
behavior : url("resource:/chrome/menulistBindings.xml#menubutton-dual-right");
}
menubutton.menubutton-dual.bottom
{
behavior : url("resource:/chrome/menulistBindings.xml#menubutton-dual-bottom");
}
menubutton.menubutton-icon
{
behavior : url("resource:/chrome/menulistBindings.xml#menubutton-icon");
}
/**
* Scrollbar <content> styles
**/
slider
{
user-focus : ignore;
user-select : none;
}
scrollbarbutton
{
display : inline;
user-focus : ignore;
user-select : none;
}
scrollbar[value="hidden"]
{
visibility : hidden;
user-focus : ignore;
user-select : none;
}
thumb
{
user-focus : ignore;
user-select : none;
}
thumb[disabled="true"]
{
user-focus : ignore;
user-select : none;
}
scrollbarbutton
{
user-focus : ignore;
user-select : none;
}
scrollbarbutton:active
{
user-focus : ignore;
user-select : none;
}
scrollbarbutton[type="decrement"]
{
user-focus : ignore;
user-select : none;
}
scrollbarbutton[type="decrement"][disabled="true"]
{
user-focus : ignore;
user-select : none;
}
scrollbarbutton[type="increment"]
{
user-focus : ignore;
user-select : none;
}
scrollbarbutton[type="increment"][disabled="true"]
{
user-focus : ignore;
user-select : none;
}
scrollbar[align="vertical"] scrollbarbutton[type="decrement"]
{
user-focus : ignore;
user-select : none;
}
scrollbar[align="vertical"] scrollbarbutton[type="decrement"][disabled="true"]
{
user-focus : ignore;
user-select : none;
}
scrollbar[align="vertical"] scrollbarbutton[type="increment"]
{
user-focus : ignore;
user-select : none;
}
scrollbar[align="vertical"] scrollbarbutton[type="increment"][disabled="true"]
{
user-focus : ignore;
user-select : none;
}
slider[align="vertical"] thumb:active
{
user-focus : ignore;
user-select : none;
}
slider
{
user-focus : ignore;
user-select : none;
}
/**
* Status Bar
**/
statusbar
{
user-focus : ignore;
behavior : url("resource:/chrome/xulBindings.xml#statusbar");
}
statusbarpanel
{
user-focus : ignore;
behavior : url("resource:/chrome/xulBindings.xml#statusbar-panel");
}

View File

@ -1,577 +0,0 @@
<?xml version="1.0"?>
<bindings id="xulBindings"
xmlns="http://www.mozilla.org/xbl"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="thumb" extends="xul:box">
<content>
<xul:spring flex="1"/>
<xul:image inherits="src"/>
<xul:spring flex="1"/>
</content>
</binding>
<binding id="scrollbar">
<content>
<xul:scrollbarbutton type="decrement">
<xul:image inherits="src"/>
</xul:scrollbarbutton>
<xul:slider flex="1" inherits="curpos,maxpos,pageincrement,increment">
<xul:thumb inherits="align,src" flex="1"/>
</xul:slider>
<xul:scrollbarbutton type="increment">
<xul:image inherits="src"/>
</xul:scrollbarbutton>
</content>
</binding>
<binding id="slider">
<content>
<xul:button align="horizontal"/>
</content>
</binding>
<binding id="tab">
<content>
<xul:image inherits="src" class="tab-left"/>
<xul:text flex="1" inherits="value,crop,accesskey" crop="right" class="tab-text"/>
</content>
</binding>
<binding id="menu-menubar">
<content excludes="template,observes,menupopup">
<xul:text class="menubar-text" inherits="value,accesskey,crop" crop="right"/>
</content>
</binding>
<binding id="menu-menubar-iconic">
<content excludes="template,observes,menupopup">
<xul:image class="menubar-left"/>
<xul:text class="menubar-text" inherits="value,accesskey,crop" crop="right"/>
</content>
</binding>
<binding id="menu">
<content autostretch="never" excludes="template,observes,menupopup">
<xul:text class="menu-text" flex="1" align="left" inherits="value,accesskey,crop" crop="right"/>
<xul:text class="menu-accel" inherits="acceltext:value"/>
<xul:box autostretch="never" class="menu-right" inherits="menuactive,disabled">
<xul:image/>
</xul:box>
</content>
<interface>
<property name="data" onset="this.setAttribute('data',val); return val;"
onget="return this.getAttribute('data');"/>
</interface>
</binding>
<binding id="menuitem">
<content autostretch="never" excludes="template,observes,menupopup">
<xul:text class="menu-text" flex="1" align="left" inherits="value,accesskey,crop" crop="right"/>
<xul:text class="menu-accel" inherits="acceltext:value"/>
</content>
<interface>
<property name="data" onset="this.setAttribute('data',val); return val;"
onget="return this.getAttribute('data');"/>
</interface>
</binding>
<binding id="menuitem-iconic">
<content excludes="template,observes,menupopup">
<xul:box class="menu-iconic-left" orient="vertical" autostretch="never" inherits="selected,menuactive,disabled">
<xul:image/>
</xul:box>
<xul:text class="menu-iconic-text" flex="1" align="left" inherits="value,accesskey,crop" crop="right"/>
<xul:text class="menu-iconic-accel" inherits="acceltext:value"/>
</content>
<interface>
<property name="data" onset="this.setAttribute('data',val); return val;"
onget="return this.getAttribute('data');"/>
</interface>
</binding>
<binding id="menu-iconic">
<content autostretch="never" excludes="template,observes,menupopup">
<xul:box class="menu-iconic-left" orient="vertical" autostretch="never">
<xul:image/>
</xul:box>
<xul:text class="menu-iconic-text" flex="1" align="left" inherits="value,accesskey,crop" crop="right"/>
<xul:text class="menu-iconic-accel" inherits="acceltext:value"/>
<xul:box orient="vertical" autostretch="never" class="menu-right" inherits="menuactive,disabled">
<xul:image/>
</xul:box>
</content>
<interface>
<property name="data" onset="this.setAttribute('data',val); return val;"
onget="return this.getAttribute('data');"/>
</interface>
</binding>
<binding id="treerows">
<handlers>
<handler type="click" shift="false" primary="false"
value="if (event.target.tagName == 'treecell')
parentNode.selectItem(event.target.parentNode.parentNode);"/>
<handler type="click" shift="false" primary="true"
value="if (event.target.tagName == 'treecell')
parentNode.toggleItemSelection(event.target.parentNode.parentNode);"/>
<handler type="click" shift="true" primary="false"
value="if (event.target.tagName == 'treecell')
parentNode.selectItemRange(event.target.parentNode.parentNode);"/>
<handler type="click" shift="false" primary="false" clickcount="2">
<![CDATA[
if (event.target.tagName == 'treecell') {
var n = event.target.parentNode.parentNode;
if ((n.getAttribute('container') == 'true') &&
(n.getAttribute('empty') != 'true')) {
if (n.getAttribute('open') == 'true')
n.removeAttribute('open');
else n.setAttribute('open', 'true');
}
}
]]>
</handler>
<handler type="click" shift="false" primary="false">
<![CDATA[
if (event.target.getAttribute('twisty') == 'true') {
var n = event.target.parentNode.parentNode.parentNode;
if ((n.getAttribute('container') == 'true') &&
(n.getAttribute('empty') != 'true')) {
if (n.getAttribute('open') == 'true')
n.removeAttribute('open');
else n.setAttribute('open', 'true');
}
}
]]>
</handler>
</handlers>
</binding>
<binding id="treecell-indented-folder">
<content autostretch="never">
<xul:treeindentation/>
<xul:image class="tree-cell-twisty" twisty="true" allowevents="true"/>
<xul:image class="tree-cell-primary-icon" inherits="src"/>
<xul:text class="tree-cell-text" inherits="crop,value,align" flex="1" crop="right"/>
</content>
</binding>
<binding id="treecell-indented-leaf">
<content autostretch="never">
<xul:treeindentation/>
<xul:image class="tree-cell-primary-icon" inherits="src"/>
<xul:text class="tree-cell-text" inherits="crop,value,align" flex="1" crop="right"/>
</content>
</binding>
<binding id="treecell-iconic">
<content autostretch="never">
<xul:image class="tree-cell-icon" inherits="src"/>
<xul:text class="tree-cell-text" inherits="crop,value,align" flex="1" crop="right"/>
</content>
</binding>
<binding id="treecell-image">
<content autostretch="never">
<xul:image class="tree-cell-image" inherits="src"/>
</content>
</binding>
<binding id="treecell">
<content autostretch="never">
<xul:text class="tree-cell-text" inherits="crop,value,align" flex="1" crop="right"/>
</content>
</binding>
<binding id="treecell-header">
<content autostretch="never">
<xul:image class="tree-header-image" inherits="src"/>
<xul:text class="tree-header-text" inherits="crop,value" flex="1" crop="right"/>
<xul:image class="tree-header-sortdirection"/>
</content>
</binding>
<binding id="basetext">
<interface>
<!-- public interface -->
<property name="value" onset="return this.setAttribute('value',val);"
onget="return this.getAttribute('value');"/>
<property name="crop" onset="return this.setAttribute('crop',val);"
onget="return this.getAttribute('crop');"/>
<property name="disabled" onset="return this.setAttribute('disabled',val);"
onget="return this.getAttribute('disabled');"/>
<property name="src" onset="return this.setAttribute('src',val);"
onget="return this.getAttribute('src');"/>
<property name="accesskey" onset="return this.setAttribute('accesskey',val);"
onget="return this.getAttribute('accesskey');"/>
<property name="imgalign" onset="return this.setAttribute('imgalign',val);"
onget="return this.getAttribute('imgalign');"/>
</interface>
</binding>
<binding id="checkbox" extends="resource:/chrome/xulBindings.xml#basetext">
<content>
<xul:box flex="1" class="internal-box" autostretch="never">
<xul:box class="checkmark-box" autostretch="never">
<xul:image class="checkbox-check"/>
</xul:box>
<xul:image class="checkbox-icon" inherits="src"/>
<xul:html inherits="value,accesskey,crop" flex="1">
<children/>
</xul:html>
</xul:box>
</content>
<interface>
<!-- public interface -->
<property name="checked" onset="if (val) this.setAttribute('checked', 'true');
else this.removeAttribute('checked');
return val;"
onget="var v = this.getAttribute('checked');
if (v == 'true') return true; return false;"/>
</interface>
<handlers>
<handler type="mouseup" value="this.checked = !this.checked;"/>
<handler type="keypress" key=" " value="this.checked = !this.checked;"/>
</handlers>
</binding>
<!-- XUL <button>s -->
<binding id="buttonleft" extends="resource:/chrome/xulBindings.xml#basetext">
<content excludes="observes,template">
<xul:box class="button-internal-box" autostretch="never" flex="1">
<xul:image class="button-icon" inherits="src"/>
<xul:box orient="vertical" class="button-text-container" autostretch="never" flex="1">
<xul:text class="button-text" inherits="value,accesskey,crop"/>
</xul:box>
</xul:box>
</content>
</binding>
<binding id="buttontop" extends="resource:/chrome/xulBindings.xml#basetext">
<content excludes="observes,template">
<xul:box class="button-internal-box" orient="vertical" autostretch="never" flex="1">
<xul:image class="button-icon" inherits="src"/>
<xul:box orient="vertical" class="button-text-container" autostretch="never" flex="1">
<xul:text class="button-text" inherits="value,accesskey,crop"/>
</xul:box>
</xul:box>
</content>
</binding>
<binding id="buttonright" extends="resource:/chrome/xulBindings.xml#basetext">
<content excludes="observes,template">
<xul:box class="button-internal-box" inherits="orient" autostretch="never" flex="1">
<xul:box orient="vertical" class="button-text-container" autostretch="never" flex="1">
<xul:text class="button-text" inherits="value,accesskey,crop"/>
</xul:box>
<xul:image class="button-icon" inherits="src"/>
</xul:box>
</content>
</binding>
<binding id="buttonbottom" extends="resource:/chrome/xulBindings.xml#basetext">
<content excludes="observes,template">
<xul:box class="button-internal-box" orient="vertical" autostretch="never" flex="1">
<xul:box orient="vertical" class="button-text-container" autostretch="never" flex="1">
<xul:text class="button-text" inherits="value,accesskey,crop"/>
</xul:box>
<xul:image class="button-icon" inherits="src"/>
</xul:box>
</content>
</binding>
<binding id="separator" extends="xul:spring"/>
<!-- appending to the end so we don't make hyatt cry -->
<binding id="progressmeter" extends="xul:box">
<content excludes="observes,template">
<xul:box class="progressmeter-internal-box" flex="1">
<xul:stack class="progressmeter-stack" flex="1">
<xul:progressbar class="progressmeter-progressbar" inherits="value">
<xul:box class="progress-bar"/>
<xul:box class="progress-remainder"/>
</xul:progressbar>
<xul:box>
<xul:spring flex="1"/>
<xul:text class="progress-text" inherits="progresstext:value"/>
<xul:spring flex="1"/>
</xul:box>
</xul:stack>
</xul:box>
</content>
<interface>
<property name="progresstext" onset="return this.setAttribute('progresstext',val);"
onget="return this.getAttribute('progresstext');"/>
<property name="value" onset="return this.setAttribute('value',val);"
onget="return this.getAttribute('value');"/>
</interface>
</binding>
<binding id="textfield" extends="xul:box">
<content excludes="observes,template">
<xul:box class="textfield-internal-box" flex="1">
<html:input class="textfield-input" flex="1" inherits="value,type,maxlength,disabled,size,readonly"/>
</xul:box>
</content>
<interface>
<property name="value" onset="this.anonymousContent[0].firstChild.value = val; return val;"
onget="return this.anonymousContent[0].firstChild.value;"/>
<property name="type" onset="this.anonymousContent[0].firstChild.type = val; return val;"
onget="return this.anonymousContent[0].firstChild.type;"/>
<property name="maxlength" onset="this.anonymousContent[0].firstChild.maxlength = val; return val;"
onget="return this.anonymousContent[0].firstChild.maxlength;"/>
<property name="disabled" onset="this.anonymousContent[0].firstChild.disabled = val; return val;"
onget="return this.anonymousContent[0].firstChild.disabled;"/>
<property name="size" onset="this.anonymousContent[0].firstChild.size = val; return val;"
onget="return this.anonymousContent[0].firstChild.size;"/>
<property name="readonly" onset="this.anonymousContent[0].firstChild.readonly = val; return val;"
onget="return this.anonymousContent[0].firstChild.readonly;"/>
<method name="select">
<body>
this.anonymousContent[0].firstChild.select();
</body>
</method>
<property name="controllers" onget="return this.anonymousContent[0].firstChild.controllers;"/>
<property name="textLength" onget="return this.anonymousContent[0].firstChild.textLength;"/>
<property name="selectionStart" onset="this.anonymousContent[0].firstChild.selectionStart = val; return val;"
onget="return this.anonymousContent[0].firstChild.selectionStart;"/>
<property name="selectionEnd" onset="this.anonymousContent[0].firstChild.selectionEnd = val; return val;"
onget="return this.anonymousContent[0].firstChild.selectionEnd;"/>
<method name="setSelectionRange">
<argument name="aSelectionStart"/>
<argument name="aSelectionEnd"/>
<body>
this.anonymousContent[0].firstChild.setSelectionRange( aSelectionStart, aSelectionEnd );
</body>
</method>
</interface>
<handlers>
<handler type="focus" value="this.setAttribute('focused','true'); this.anonymousContent[0].firstChild.focus(); "/>
<handler type="blur" value="this.removeAttribute('focused'); this.anonymousContent[0].firstChild.blur();"/>
</handlers>
</binding>
<binding id="textarea" extends="resource:/chrome/xulBindings.xml#textfield">
<content excludes="observes,template">
<xul:box class="textarea-internal-box" flex="1">
<html:textarea class="textfield-textarea" flex="1" inherits="value,disabled,rows,cols,readonly"/>
</xul:box>
</content>
</binding>
<binding id="text">
<handlers>
<handler type="click" value="var forElementID = this.getAttribute('for'); if(forElementID) var forElement = document.getElementById(forElementID); if(forElement) forElement.focus();"/>
</handlers>
</binding>
<binding id="text-editable-display" extends="resource:/chrome/xulBindings.xml#text"/>
<binding id="text-editable-edit" extends="xul:box">
<content>
<xul:box flex="1">
<html:input type="text" inherits="value,type,maxlength,disabled,size,readonly"/>
</xul:box>
</content>
<handlers>
<handler type="blur" value="this.setAttribute('mode','display');"/>
</handlers>
</binding>
<binding id="popups">
<content>
<xul:box class="popup-internal-box" orient="vertical" flex="1" style="overflow: auto">
<children/>
</xul:box>
</content>
</binding>
<binding id="toolbargrippy" extends="xul:image"/>
<binding id="toolbox">
<content orient="vertical">
<xul:box orient="vertical" flex="1" class="internal-box">
<children/>
</xul:box>
<xul:box class="collapsed-tray"/>
</content>
<interface>
<method name="collapseToolbar">
<argument name="toolbar"/>
<body>
var v = this.removeChild(toolbar);
this.anonymousContent[1].appendChild(v);
</body>
</method>
<method name="expandToolbar">
<argument name="toolbar"/>
<body>
var v = this.anonymousContent[1].removeChild(toolbar);
this.appendChild(v);
</body>
</method>
</interface>
</binding>
<binding id="toolbar">
<content>
<xul:toolbargrippy inherits="grippytooltiptext:tooltiptext"
onclick="var v = parentNode;
var attr = v.getAttribute('collapsed');
if (attr == 'true') {
v.removeAttribute('collapsed');
try {
parentNode.parentNode.parentNode.expandToolbar(parentNode);
}
catch(e) {
dump('huh?' + parentNode.parentNode.parentNode + '\n');
}
}
else {
v.setAttribute('collapsed', 'true');
try {
parentNode.parentNode.collapseToolbar(parentNode);
}
catch(e) {}
}
"/>
<xul:box flex="1" class="toolbar-holder" inherits="collapsed">
<children/>
</xul:box>
</content>
</binding>
<binding id="colorpicker" extends="xul:box">
<interface>
<property name="color" onset="return this.setAttribute('color', val);"
onget="return this.getAttribute('color');"/>
<property name="selectedItem"/>
</interface>
<handlers>
<handler type="click" value="dump('handler fired\n');"/>
</handlers>
<content>
<xul:box flex="1" orient="vertical" onclick="parentNode.color = event.target.getAttribute('color');
try { parentNode.selectedItem.removeAttribute('selected'); } catch(e) { }
parentNode.selectedItem = event.target;
event.target.setAttribute('selected', 'true');">
<xul:box align="horizontal">
<xul:spring class="colorpickertile" style="background-color: #FFFFFF" color="#FFFFFF"/>
<xul:spring class="colorpickertile" style="background-color: #FFCCCC" color="#FFCCCC"/>
<xul:spring class="colorpickertile" style="background-color: #FFCC99" color="#FFCC99"/>
<xul:spring class="colorpickertile" style="background-color: #FFFF99" color="#FFFF99"/>
<xul:spring class="colorpickertile" style="background-color: #FFFFCC" color="#FFFFCC"/>
<xul:spring class="colorpickertile" style="background-color: #99FF99" color="#99FF99"/>
<xul:spring class="colorpickertile" style="background-color: #99FFFF" color="#99FFFF"/>
<xul:spring class="colorpickertile" style="background-color: #CCFFFF" color="#CCFFFF"/>
<xul:spring class="colorpickertile" style="background-color: #CCCCFF" color="#CCCCFF"/>
<xul:spring class="colorpickertile" style="background-color: #FFCCFF" color="#FFCCFF"/>
</xul:box>
<xul:box align="horizontal">
<xul:spring class="colorpickertile" style="background-color: #CCCCCC" color="#CCCCCC"/>
<xul:spring class="colorpickertile" style="background-color: #FF6666" color="#FF6666"/>
<xul:spring class="colorpickertile" style="background-color: #FFCC33" color="#FFCC33"/>
<xul:spring class="colorpickertile" style="background-color: #FFFF66" color="#FFFF66"/>
<xul:spring class="colorpickertile" style="background-color: #FFFF99" color="#FFFF99"/>
<xul:spring class="colorpickertile" style="background-color: #66FF99" color="#66FF99"/>
<xul:spring class="colorpickertile" style="background-color: #33FFFF" color="#33FFFF"/>
<xul:spring class="colorpickertile" style="background-color: #66FFFF" color="#66FFFF"/>
<xul:spring class="colorpickertile" style="background-color: #9999FF" color="#9999FF"/>
<xul:spring class="colorpickertile" style="background-color: #FF99FF" color="#FF99FF"/>
</xul:box>
<xul:box align="horizontal">
<xul:spring class="colorpickertile" style="background-color: #C0C0C0" color="#C0C0C0"/>
<xul:spring class="colorpickertile" style="background-color: #FF0000" color="#FF0000"/>
<xul:spring class="colorpickertile" style="background-color: #FF9900" color="#FF9900"/>
<xul:spring class="colorpickertile" style="background-color: #FFCC66" color="#FFCC66"/>
<xul:spring class="colorpickertile" style="background-color: #FFFF00" color="#FFFF00"/>
<xul:spring class="colorpickertile" style="background-color: #33FF33" color="#33FF33"/>
<xul:spring class="colorpickertile" style="background-color: #66CCCC" color="#66CCCC"/>
<xul:spring class="colorpickertile" style="background-color: #33CCFF" color="#33CCFF"/>
<xul:spring class="colorpickertile" style="background-color: #6666CC" color="#6666CC"/>
<xul:spring class="colorpickertile" style="background-color: #CC66CC" color="#CC66CC"/>
</xul:box>
<xul:box align="horizontal">
<xul:spring class="colorpickertile" style="background-color: #999999" color="#999999"/>
<xul:spring class="colorpickertile" style="background-color: #CC0000" color="#CC0000"/>
<xul:spring class="colorpickertile" style="background-color: #FF6600" color="#FF6600"/>
<xul:spring class="colorpickertile" style="background-color: #FFCC33" color="#FFCC33"/>
<xul:spring class="colorpickertile" style="background-color: #FFCC00" color="#FFCC00"/>
<xul:spring class="colorpickertile" style="background-color: #33CC00" color="#33CC00"/>
<xul:spring class="colorpickertile" style="background-color: #00CCCC" color="#00CCCC"/>
<xul:spring class="colorpickertile" style="background-color: #3366FF" color="#3366FF"/>
<xul:spring class="colorpickertile" style="background-color: #6633FF" color="#6633FF"/>
<xul:spring class="colorpickertile" style="background-color: #CC33CC" color="#CC33CC"/>
</xul:box>
<xul:box align="horizontal">
<xul:spring class="colorpickertile" style="background-color: #666666" color="#666666"/>
<xul:spring class="colorpickertile" style="background-color: #990000" color="#990000"/>
<xul:spring class="colorpickertile" style="background-color: #CC6600" color="#CC6600"/>
<xul:spring class="colorpickertile" style="background-color: #CC9933" color="#CC9933"/>
<xul:spring class="colorpickertile" style="background-color: #999900" color="#999900"/>
<xul:spring class="colorpickertile" style="background-color: #009900" color="#009900"/>
<xul:spring class="colorpickertile" style="background-color: #339999" color="#339999"/>
<xul:spring class="colorpickertile" style="background-color: #3333FF" color="#3333FF"/>
<xul:spring class="colorpickertile" style="background-color: #6600CC" color="#6600CC"/>
<xul:spring class="colorpickertile" style="background-color: #993399" color="#993399"/>
</xul:box>
<xul:box align="horizontal">
<xul:spring class="colorpickertile" style="background-color: #333333" color="#333333"/>
<xul:spring class="colorpickertile" style="background-color: #660000" color="#660000"/>
<xul:spring class="colorpickertile" style="background-color: #993300" color="#993300"/>
<xul:spring class="colorpickertile" style="background-color: #996633" color="#996633"/>
<xul:spring class="colorpickertile" style="background-color: #666600" color="#666600"/>
<xul:spring class="colorpickertile" style="background-color: #006600" color="#006600"/>
<xul:spring class="colorpickertile" style="background-color: #336666" color="#336666"/>
<xul:spring class="colorpickertile" style="background-color: #000099" color="#000099"/>
<xul:spring class="colorpickertile" style="background-color: #333399" color="#333399"/>
<xul:spring class="colorpickertile" style="background-color: #663366" color="#663366"/>
</xul:box>
<xul:box align="horizontal">
<xul:spring class="colorpickertile" style="background-color: #000000" color="#000000"/>
<xul:spring class="colorpickertile" style="background-color: #330000" color="#330000"/>
<xul:spring class="colorpickertile" style="background-color: #663300" color="#663300"/>
<xul:spring class="colorpickertile" style="background-color: #663333" color="#663333"/>
<xul:spring class="colorpickertile" style="background-color: #333300" color="#333300"/>
<xul:spring class="colorpickertile" style="background-color: #003300" color="#003300"/>
<xul:spring class="colorpickertile" style="background-color: #003333" color="#003333"/>
<xul:spring class="colorpickertile" style="background-color: #000066" color="#000066"/>
<xul:spring class="colorpickertile" style="background-color: #330099" color="#330099"/>
<xul:spring class="colorpickertile" style="background-color: #330033" color="#330033"/>
</xul:box>
</xul:box>
</content>
</binding>
<!-- XUL <statusbar> -->
<binding id="statusbar" extends="xul:box"/>
<binding id="statusbar-panel" extends="xul:box">
<content excludes="observes,template" autostretch="never" valign="middle">
<xul:image class="statusbar-panel-icon" inherits="src"/>
<xul:text class="statusbar-panel-text" inherits="value,crop" crop="right" flex="1"/>
</content>
<interface>
<property name="value"
onget="return this.getAttribute('value');"
onset="this.setAttribute('value',val); return val;"/>
<property name="src"
onget="return this.getAttribute('src');"
onset="this.setAttribute('src',val); return val;"/>
</interface>
</binding>
</bindings>