From 8fc685a7dc8eb95d9188bbbade7c6aea822a22bf Mon Sep 17 00:00:00 2001
From: "rlk%trfenv.com"
Date: Mon, 16 Aug 2004 20:24:39 +0000
Subject: [PATCH] moving aviary help to the trunk.
git-svn-id: svn://10.0.0.236/trunk@160824 18797224-902f-48f8-a5cc-f745e15eee43
---
.../components/help/locale/en-US/help.dtd | 47 --------------
.../help/locale/en-US/help.properties | 2 -
.../help/locale/en-US/helpMenuOverlay.dtd | 42 -------------
.../toolkit/components/help/content/help.js | 62 ++++++++++++++++---
.../toolkit/components/help/content/help.xul | 59 ++++++++++--------
.../help/content/helpMenuOverlay.xul | 2 +-
.../help/content/platformClasses.css | 49 +++++++++++++++
.../locale/en-US/firebird-glossary.rdf | 5 +-
.../helpOnHelp/locale/en-US/glossary.xhtml | 41 +++++++++---
.../helpOnHelp/locale/en-US/welcome.xhtml | 4 +-
mozilla/toolkit/components/help/jar.mn | 1 +
.../components/help/locale/en-US/help.dtd | 1 +
.../toolkit/themes/pinstripe/help/help.css | 26 +++++---
.../themes/pinstripe/help/helpFileLayout.css | 4 +-
.../themes/pinstripe/help/sidebarBindings.xml | 2 +-
.../toolkit/themes/winstripe/help/help.css | 37 +++++------
.../themes/winstripe/help/helpFileLayout.css | 6 +-
.../themes/winstripe/help/sidebarBindings.xml | 2 +-
18 files changed, 218 insertions(+), 174 deletions(-)
delete mode 100644 mozilla/browser/components/help/locale/en-US/help.dtd
delete mode 100644 mozilla/browser/components/help/locale/en-US/help.properties
delete mode 100644 mozilla/browser/components/help/locale/en-US/helpMenuOverlay.dtd
create mode 100644 mozilla/toolkit/components/help/content/platformClasses.css
diff --git a/mozilla/browser/components/help/locale/en-US/help.dtd b/mozilla/browser/components/help/locale/en-US/help.dtd
deleted file mode 100644
index a503b65daf6..00000000000
--- a/mozilla/browser/components/help/locale/en-US/help.dtd
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/mozilla/browser/components/help/locale/en-US/help.properties b/mozilla/browser/components/help/locale/en-US/help.properties
deleted file mode 100644
index 0e350e2ce68..00000000000
--- a/mozilla/browser/components/help/locale/en-US/help.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-showSidebarLabel=Show Sidebar
-hideSidebarLabel=Hide Sidebar
diff --git a/mozilla/browser/components/help/locale/en-US/helpMenuOverlay.dtd b/mozilla/browser/components/help/locale/en-US/helpMenuOverlay.dtd
deleted file mode 100644
index 7a9307ccc20..00000000000
--- a/mozilla/browser/components/help/locale/en-US/helpMenuOverlay.dtd
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
-
-
-
diff --git a/mozilla/toolkit/components/help/content/help.js b/mozilla/toolkit/components/help/content/help.js
index d375d23e4dc..4f53b7a39e4 100644
--- a/mozilla/toolkit/components/help/content/help.js
+++ b/mozilla/toolkit/components/help/content/help.js
@@ -203,9 +203,9 @@ function loadHelpRDF() {
// Cache Additional Datasources to Augment Search Datasources.
if (panelID == "search") {
emptySearchText = getAttribute(helpFileDS, panelDef,
- NC_EMPTY_SEARCH_TEXT, "No search items found.");
+ NC_EMPTY_SEARCH_TEXT, null) || "No search items found.";
emptySearchLink = getAttribute(helpFileDS, panelDef,
- NC_EMPTY_SEARCH_LINK, "about:blank");
+ NC_EMPTY_SEARCH_LINK, null) || "about:blank";
searchDatasources = datasources;
// Don't try to display them yet!
datasources = "rdf:null";
@@ -459,6 +459,7 @@ nsHelpStatusHandler.prototype = {
},
onProgressChange : function(aWebProgress, aRequest, aCurSelfProgress,
aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress) {},
+ onStatusChange : function(aWebProgress, aRequest, aStatus, aMessage) {},
onSecurityChange : function(aWebProgress, aRequest, state) {},
onLocationChange : function(aWebProgress, aRequest, aLocation) {
UpdateBackForwardButtons();
@@ -539,7 +540,6 @@ function showPanel(panelId) {
document.getElementById("help-toc-btn").removeAttribute("selected");
//add the selected style to the correct panel.
theButton.setAttribute("selected", "true");
- document.commandDispatcher.advanceFocusIntoSubtree(theButton);
}
function findParentNode(node, parentNode)
@@ -564,13 +564,15 @@ function findParentNode(node, parentNode)
}
function onselect_loadURI(tree) {
- var row = tree.currentIndex;
- if (row >= 0) {
- var resource = tree.view.getResourceAtIndex(row);
+ try {
+ var resource = tree.view.getResourceAtIndex(tree.currentIndex);
var link = tree.database.GetTarget(resource, NC_LINK, true);
- if (link instanceof Components.interfaces.nsIRDFLiteral && link.Value)
+ if (link) {
+ link = link.QueryInterface(Components.interfaces.nsIRDFLiteral);
loadURI(link.Value);
- }
+ }
+ } catch (e) {
+ }// when switching between tabs a spurious row number is returned.
}
# doFind - Searches the help files for what is located in findText and outputs into
@@ -745,8 +747,23 @@ function loadCompositeDS(datasources) {
function getAttribute(datasource, resource, attributeResourceName,
defaultValue) {
var literal = datasource.GetTarget(resource, attributeResourceName, true);
- return literal instanceof Components.interfaces.nsIRDFLiteral ?
- literal.Value : defaultValue;
+ if (!literal) {
+ return defaultValue;
+ }
+ return getLiteralValue(literal, defaultValue);
+}
+
+function getLiteralValue(literal, defaultValue) {
+ if (literal) {
+ literal = literal.QueryInterface(Components.interfaces.nsIRDFLiteral);
+ if (literal) {
+ return literal.Value;
+ }
+ }
+ if (defaultValue) {
+ return defaultValue;
+ }
+ return null;
}
# Write debug string to javascript console.
@@ -791,3 +808,28 @@ function toggleSidebar()
}
}
+// Shows the panel relative to the currently selected panel.
+// Takes a boolean parameter - if true it will show the next panel,
+// otherwise it will show the previous panel.
+function showRelativePanel(goForward) {
+ var selectedIndex = -1;
+ var sidebarBox = document.getElementById("helpsidebar-box");
+ var sidebarButtons = new Array();
+ for (var i = 0; i < sidebarBox.childNodes.length; i++) {
+ var btn = sidebarBox.childNodes[i];
+ if (btn.nodeName == "toolbarbutton") {
+ if (btn.getAttribute("selected") == "true")
+ selectedIndex = sidebarButtons.length;
+ sidebarButtons.push(btn);
+ }
+ }
+ if (selectedIndex == -1)
+ return;
+ selectedIndex += goForward ? 1 : -1;
+ if (selectedIndex >= sidebarButtons.length)
+ selectedIndex = 0;
+ else if (selectedIndex < 0)
+ selectedIndex = sidebarButtons.length - 1;
+ sidebarButtons[selectedIndex].doCommand();
+}
+
diff --git a/mozilla/toolkit/components/help/content/help.xul b/mozilla/toolkit/components/help/content/help.xul
index 70fee454fab..1d26d304188 100644
--- a/mozilla/toolkit/components/help/content/help.xul
+++ b/mozilla/toolkit/components/help/content/help.xul
@@ -49,7 +49,7 @@
+
@@ -103,11 +104,17 @@
command="Help:Find" modifiers="accel"/>
+
+
+
-#
@@ -127,7 +133,7 @@
customizeable="true" label="&sidebarBtn.label;"
command="Help:ToggleSidebar"/>
@@ -135,7 +141,7 @@
onpopupshowing="createBackMenu(event);"/>
-
@@ -178,16 +184,17 @@
-#
diff --git a/mozilla/toolkit/components/help/content/helpMenuOverlay.xul b/mozilla/toolkit/components/help/content/helpMenuOverlay.xul
index e6f6a0c15d2..08e0f2ed00b 100644
--- a/mozilla/toolkit/components/help/content/helpMenuOverlay.xul
+++ b/mozilla/toolkit/components/help/content/helpMenuOverlay.xul
@@ -90,4 +90,4 @@
#endif
#endif
-
\ No newline at end of file
+
diff --git a/mozilla/toolkit/components/help/content/platformClasses.css b/mozilla/toolkit/components/help/content/platformClasses.css
new file mode 100644
index 00000000000..6ca0d8e281b
--- /dev/null
+++ b/mozilla/toolkit/components/help/content/platformClasses.css
@@ -0,0 +1,49 @@
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ *
+ * The contents of this file are subject to the Mozilla 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/MPL/
+ *
+ * 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 Help CSS
+ *
+ * The Initial Developer of the Original Code is R.J. Keller.
+ * Portions created by the Initial Developer are Copyright (C) 2003
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ * Jeff Walden
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the MPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the MPL, the GPL or the LGPL.
+ *
+ * ***** END LICENSE BLOCK ***** */
+
+#ifdef XP_WIN
+.noWin, .mac, .unix { display: none; }
+#else
+#ifdef XP_MACOSX
+.noMac, .win, .unix { display: none; }
+#else
+#ifdef XP_OS2
+.noWin, .mac, .unix { display: none; }
+#else
+.noUnix, .win, .mac { display: none; }
+#endif
+#endif
+#endif
diff --git a/mozilla/toolkit/components/help/helpOnHelp/locale/en-US/firebird-glossary.rdf b/mozilla/toolkit/components/help/helpOnHelp/locale/en-US/firebird-glossary.rdf
index 3ffeacf5829..19851ef8b30 100644
--- a/mozilla/toolkit/components/help/helpOnHelp/locale/en-US/firebird-glossary.rdf
+++ b/mozilla/toolkit/components/help/helpOnHelp/locale/en-US/firebird-glossary.rdf
@@ -26,6 +26,7 @@
+
@@ -41,6 +42,7 @@
+
@@ -55,6 +57,7 @@
+
@@ -71,4 +74,4 @@
-
\ No newline at end of file
+
diff --git a/mozilla/toolkit/components/help/helpOnHelp/locale/en-US/glossary.xhtml b/mozilla/toolkit/components/help/helpOnHelp/locale/en-US/glossary.xhtml
index ecfbfdf3d6b..30759f99a25 100644
--- a/mozilla/toolkit/components/help/helpOnHelp/locale/en-US/glossary.xhtml
+++ b/mozilla/toolkit/components/help/helpOnHelp/locale/en-US/glossary.xhtml
@@ -128,6 +128,14 @@
see the online W3C document Extensible
Markup Language (XML).
+feed
+An XML web page that contains a list of links to
+ other web pages. Special programs can read feeds to create a list
+ of headlines from the links, automatically updating the list as it changes.
+ News web sites use feeds to quickly publish the latest headlines, and
+ personal online journals often use feeds to quickly notify visitors about
+ new entries. See also live bookmark.
+
File Transfer Protocol (FTP)
A standard that allows users to transfer files from one computer to
another over a network. You can use &brandShortName; to fetch files
@@ -226,18 +234,21 @@
A standard protocol for accessing directory services, such as corporate
address books, across multiple platforms.
+live bookmark
+A special type of bookmark that acts as a folder to contain the links in a
+ feed. You can create a live bookmark by visiting a site
+ with a feed, clicking on the live bookmark icon in the Status Bar, and
+ selecting the feed format you wish to use.
+
Location Bar
The field (and associated buttons) near the top of a &brandShortName; window
where you can type a URL or search terms.
master password
-A password used by Certificate Manager to protect the master key and/or
- private keys stored on a security device. Certificate Manager needs to
- access your private keys, for example, when you sign email messages or
- use one of your own certificates to identify yourself to a web site. It
- needs to access your master key when Password Manager or Form Manager
- reads or adds to your personal information. Each security device requires
- a separate master password.
+A password used to protect saved passwords and other private data.
+ &brandShortName; will prompt you for your master password when you wish to
+ access this data. If you have multiple security devices, each security device
+ will require a separate master password.
Navigation Toolbar
The toolbar near the top of the &brandShortName; window that includes
@@ -309,6 +320,16 @@ corresponding public key.
search box, and the search engine displays links to relevant web
pages.
+secure site
+A site that uses encryption in connections
+ with &brandShortName; to prevent other malicious Internet users from
+ viewing transmitted data. When you visit secure sites, &brandShortName;
+ displays a lock icon in the Status Bar and the
+ Location Bar. &brandShortName; also
+ displays the site's domain name in the Status Bar (to prevent malicious
+ sites from stealing your data) and turns the background of the Location
+ Bar to yellow.
+
Secure Sockets Layer (SSL)
A protocol that allows mutual authentication between a
client and a server
@@ -330,7 +351,7 @@ corresponding public key.
Status Bar
The toolbar that appears at the bottom of any &brandShortName; window. It
- shows status icons on the left.
+ shows status icons on the right.
TCP
See Transmission
@@ -375,7 +396,7 @@ corresponding public key.
[ Return to beginning of Glossary ]
-26 November 2003
-Copyright © 2003 Contributors to the Firebird Help Project.
+14 August 2004
+Copyright © 2003-2004 Contributors to the Mozilla Help Viewer Project.