mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
--NOT PART OF DEFAULT BUILD--
XMLterm changes only. Locale chrome changes. Added makefiles to handle xmltermOverlay.dtd
This commit is contained in:
parent
898126100e
commit
0335ce1201
@ -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>
|
||||
|
49
extensions/xmlterm/ui/locale/Makefile.in
Normal file
49
extensions/xmlterm/ui/locale/Makefile.in
Normal file
@ -0,0 +1,49 @@
|
||||
#!gmake
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
# License Version 1.1 (the "MPL"); you may not use this file
|
||||
# except in compliance with the MPL. You may obtain a copy of
|
||||
# the MPL at http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the MPL is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the MPL for the specific language governing
|
||||
# rights and limitations under the MPL.
|
||||
#
|
||||
# The Original Code is XMLterm.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Ramalingam Saravanan.
|
||||
# Portions created by Ramalingam Saravanan <svn@xmlterm.org> are
|
||||
# Copyright (C) 1999 Ramalingam Saravanan. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the
|
||||
# terms of the GNU General Public License (the "GPL"), in which case
|
||||
# the provisions of the GPL are applicable instead of
|
||||
# those above. If you wish to allow use of your version of this
|
||||
# file only under the terms of the GPL and not to allow
|
||||
# others to use your version of this file under the MPL, indicate
|
||||
# your decision by deleting the provisions above and replace them
|
||||
# with the notice and other provisions required by the GPL.
|
||||
# If you do not delete the provisions above, a recipient
|
||||
# may use your version of this file under either the MPL or the
|
||||
# GPL.
|
||||
#
|
||||
|
||||
# makefile for xmlterm/ui/locale directory
|
||||
|
||||
DEPTH = ../../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
srcdir = @srcdir@
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
DIRS = en-US
|
||||
|
||||
include $(topsrcdir)/config/config.mk
|
||||
|
||||
include $(srcdir)/../../config/xmlterm_config.mk
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
55
extensions/xmlterm/ui/locale/en-US/Makefile.in
Normal file
55
extensions/xmlterm/ui/locale/en-US/Makefile.in
Normal file
@ -0,0 +1,55 @@
|
||||
#!gmake
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
# License Version 1.1 (the "MPL"); you may not use this file
|
||||
# except in compliance with the MPL. You may obtain a copy of
|
||||
# the MPL at http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the MPL is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the MPL for the specific language governing
|
||||
# rights and limitations under the MPL.
|
||||
#
|
||||
# The Original Code is XMLterm.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Ramalingam Saravanan.
|
||||
# Portions created by Ramalingam Saravanan <svn@xmlterm.org> are
|
||||
# Copyright (C) 1999 Ramalingam Saravanan. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the
|
||||
# terms of the GNU General Public License (the "GPL"), in which case
|
||||
# the provisions of the GPL are applicable instead of
|
||||
# those above. If you wish to allow use of your version of this
|
||||
# file only under the terms of the GPL and not to allow
|
||||
# others to use your version of this file under the MPL, indicate
|
||||
# your decision by deleting the provisions above and replace them
|
||||
# with the notice and other provisions required by the GPL.
|
||||
# If you do not delete the provisions above, a recipient
|
||||
# may use your version of this file under either the MPL or the
|
||||
# GPL.
|
||||
#
|
||||
|
||||
# makefile for xmlterm/ui/locale/en-US directory
|
||||
|
||||
DEPTH = ../../../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
srcdir = @srcdir@
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
CHROME_DIR = packages/xmlterm
|
||||
|
||||
CHROME_L10N_DIR=xmlterm/locale
|
||||
|
||||
CHROME_L10N = \
|
||||
xmltermOverlay.dtd \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/config.mk
|
||||
|
||||
include $(srcdir)/../../../config/xmlterm_config.mk
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
@ -1,3 +1,3 @@
|
||||
<!ENTITY xmltermCmd.label "XMLterm">
|
||||
<!ENTITY xmltermCmd.label "XMLterm">
|
||||
<!ENTITY xmltermCmd.accesskey "x">
|
||||
<!ENTITY xmltermCmd.commandkey "7">
|
||||
|
Loading…
x
Reference in New Issue
Block a user