зеркало из https://github.com/mozilla/pjs.git
--NOT PART OF DEFAULT BUILD--
XMLterm changes only. Locale chrome changes. Added makefiles to handle xmltermOverlay.dtd
This commit is contained in:
Родитель
5b0fb73ed4
Коммит
701fadcc0a
|
@ -291,6 +291,7 @@ function UpdateSettings() {
|
|||
|
||||
// Alter style in stylesheet of specified document doc, or current document
|
||||
// if doc is omitted.
|
||||
// ****CSS DOM IS BROKEN****; selectorText seems to be null for all rules
|
||||
function AlterStyle(ruleName, propertyName, propertyValue, doc) {
|
||||
|
||||
dump("AlterStyle("+ruleName+"{"+propertyName+":"+propertyValue+"})\n");
|
||||
|
@ -300,7 +301,8 @@ function AlterStyle(ruleName, propertyName, propertyValue, doc) {
|
|||
var sheet = doc.styleSheets[0];
|
||||
var r;
|
||||
for (r = 0; r < sheet.cssRules.length; r++) {
|
||||
//dump(sheet.cssRules[r].selectorText+"\n");
|
||||
//dump("selectorText["+r+"]="+sheet.cssRules[r].selectorText+"\n");
|
||||
//dump("cssText["+r+"]="+sheet.cssRules[r].cssText+"\n");
|
||||
|
||||
if (sheet.cssRules[r].selectorText == ruleName) {
|
||||
var style = sheet.cssRules[r].style;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<title>xmlterm page</title>
|
||||
|
||||
<link title="defaultstyle" rel="stylesheet" type="text/css"
|
||||
href="../skin/xmltpage.css">
|
||||
href="chrome://xmlterm/skin/xmltpage.css">
|
||||
|
||||
<script language="JavaScript" src="XMLTermCommands.js">
|
||||
</script>
|
||||
|
|
|
@ -31,9 +31,9 @@
|
|||
onload="StartupXMLTerm();"
|
||||
title="xmlterm" align="vertical" width="586" height="412">
|
||||
|
||||
<html:script src="chrome://xmlterm/content/XMLTermChrome.js"></html:script>
|
||||
<script src="chrome://xmlterm/content/XMLTermChrome.js"></script>
|
||||
|
||||
<html:iframe id="content-frame" type="content" html:name="content"
|
||||
html:src="chrome://xmlterm/content/xmlterm.html" flex="100%"/>
|
||||
<iframe id="content-frame" type="content" name="content"
|
||||
src="chrome://xmlterm/content/xmlterm.html" flex="100%"/>
|
||||
|
||||
</window>
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<!--
|
||||
<!DOCTYPE window SYSTEM "chrome://xmlterm/locale/xmltermOverlay.dtd" >
|
||||
-->
|
||||
|
||||
<!-- This is the overlay that addes "XMLterm" to the (global) task menu. -->
|
||||
<!-- This is the overlay that adds "XMLterm" to the (global) task menu. -->
|
||||
|
||||
<overlay id="XMLtermTaskMenuID"
|
||||
xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
|
@ -13,16 +11,16 @@
|
|||
<html:script language="JavaScript" src="chrome://xmlterm/content/xmltermOverlay.js"/>
|
||||
|
||||
<keyset id="keyset">
|
||||
<key id="key_xmlterm" xulkey="true" key="7"
|
||||
<key id="key_xmlterm" xulkey="true" key="&xmltermCmd.commandkey;"
|
||||
observes="Tasks:xmlterm"/>
|
||||
</keyset>
|
||||
|
||||
<broadcasterset id="broadcasterset">
|
||||
<broadcaster id="Tasks:xmlterm" value="XMLterm" oncommand="toXMLterm();"/>
|
||||
<broadcaster id="Tasks:xmlterm" value="&xmltermCmd.label;" oncommand="toXMLterm();"/>
|
||||
</broadcasterset>
|
||||
|
||||
<menupopup id="taskPopup">
|
||||
<menuitem accesskey="x" key="key_xmlterm"
|
||||
<menuitem accesskey="&xmltermCmd.accesskey;" key="key_xmlterm"
|
||||
position="6"
|
||||
observes="Tasks:xmlterm"/>
|
||||
</menupopup>
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
<!ENTITY xmltermCmd.label "XMLterm">
|
||||
<!ENTITY xmltermCmd.accesskey "x">
|
||||
<!ENTITY xmltermCmd.commandkey "7">
|
Загрузка…
Ссылка в новой задаче