80805: new editor find dialog (not used by default), files that got missed in a previous checkin. r=cmanske sr=hewitt

This commit is contained in:
akkana%netscape.com 2002-02-19 02:17:43 +00:00
Родитель bd561c280a
Коммит 15b8b13459
5 изменённых файлов: 16 добавлений и 9 удалений

Просмотреть файл

@ -161,6 +161,8 @@ comm.jar:
content/editor/EdImageOverlay.js (ui/dialogs/content/EdImageOverlay.js)
content/editor/EdHLineProps.xul (ui/dialogs/content/EdHLineProps.xul)
content/editor/EdHLineProps.js (ui/dialogs/content/EdHLineProps.js)
content/editor/EdReplace.xul (ui/dialogs/content/EdReplace.xul)
content/editor/EdReplace.js (ui/dialogs/content/EdReplace.js)
content/editor/EdSpellCheck.xul (ui/dialogs/content/EdSpellCheck.xul)
content/editor/EdSpellCheck.js (ui/dialogs/content/EdSpellCheck.js)
content/editor/EdDictionary.xul (ui/dialogs/content/EdDictionary.xul)
@ -225,8 +227,8 @@ comm.jar:
content/editor/EditorPublishOverlay.xul (ui/dialogs/content/EditorPublishOverlay.xul)
en-US.jar:
locale/en-US/editor/editor.dtd (ui/composer/locale/en-US/editor.dtd)
locale/en-US/editor/contents.rdf (ui/composer/locale/en-US/contents.rdf)
locale/en-US/editor/editor.dtd (ui/composer/locale/en-US/editor.dtd)
locale/en-US/editor/editorPrefsOverlay.dtd (ui/composer/locale/en-US/editorPrefsOverlay.dtd)
locale/en-US/editor/editorNavigatorOverlay.dtd (ui/composer/locale/en-US/editorNavigatorOverlay.dtd)
locale/en-US/editor/pref-editing.dtd (ui/composer/locale/en-US/pref-editing.dtd)
@ -248,6 +250,7 @@ en-US.jar:
locale/en-US/editor/EditorColorProperties.dtd (ui/dialogs/locale/en-US/EditorColorProperties.dtd)
locale/en-US/editor/EdColorPicker.dtd (ui/dialogs/locale/en-US/EdColorPicker.dtd)
locale/en-US/editor/EditorPersonalDictionary.dtd (ui/dialogs/locale/en-US/EditorPersonalDictionary.dtd)
locale/en-US/editor/EditorReplace.dtd (ui/dialogs/locale/en-US/EditorReplace.dtd)
locale/en-US/editor/EditorSpellCheck.dtd (ui/dialogs/locale/en-US/EditorSpellCheck.dtd)
locale/en-US/editor/EditorTableProperties.dtd (ui/dialogs/locale/en-US/EditorTableProperties.dtd)
locale/en-US/editor/EditorFormProperties.dtd (ui/dialogs/locale/en-US/EditorFormProperties.dtd)

Просмотреть файл

@ -19,6 +19,7 @@
* Rights Reserved.
*
* Contributor(s): Kin Blas <kin@netscape.com>
* Contributor(s): Akkana Peck <akkana@netscape.com>
*
*/
@ -70,13 +71,10 @@ function onLoad()
// Get the xul <editor> element:
var editorXUL = window.opener.document.getElementById("content-frame");
dump("editor XUL: " + editorXUL + ", type = "
+ editorXUL.getAttribute("type") + "\n");
// Get the nsIWebBrowserFind service:
//gFindInst = editorXUL.docShell.QueryInterface(Components.interfaces.nsIWebBrowserFind);
gFindInst = editorXUL.webBrowserFind;
dump("webBrowserFind: " + gFindInst + "\n");
try {
// get the find service, which stores global find state
@ -89,7 +87,6 @@ function onLoad()
try {
gReplaceDialog.editor = editorXUL.editor.QueryInterface(Components.interfaces.nsIPlaintextEditor);
dump("Got editor: " + gReplaceDialog.editor + "\n");
} catch(e) { dump("Couldn't get an editor! " + e + "\n"); }
// If we don't get the editor, then we won't allow replacing.
@ -170,11 +167,13 @@ function onReplaceAll()
setUpFindInst();
// Search.
do {
while (true) {
var result = gFindInst.findNext();
if (result)
gReplaceDialog.editor.insertText(gReplaceDialog.replaceKey.value);
} while (result);
dump("result of find: " + result + "\n");
if (!result)
break;
gReplaceDialog.editor.insertText(gReplaceDialog.replaceKey.value);
}
return false;
}

Просмотреть файл

@ -20,11 +20,13 @@ Copyright (C) 1998-1999 Netscape Communications Corporation. All
Rights Reserved.
Contributor(s): Kin Blas <kin@netscape.com>
Contributor(s): Akkana Peck <akkana@netscape.com>
-->
<?xml-stylesheet href="chrome://editor/skin/editor.css" type="text/css"?>
<?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?>
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
<!DOCTYPE window SYSTEM "chrome://editor/locale/EditorReplace.dtd">

Просмотреть файл

@ -35,6 +35,8 @@ EdLinkProps.xul
EdLinkProps.js
EdLinkChecker.xul
EdLinkChecker.js
EdReplace.xul
EdReplace.js
EdSpellCheck.xul
EdSpellCheck.js
EdDictionary.xul

Просмотреть файл

@ -34,6 +34,7 @@ EditorPageProperties.dtd
EditorColorProperties.dtd
EdColorPicker.dtd
EditorPersonalDictionary.dtd
EditorReplace.dtd
EditorSpellCheck.dtd
EditorTableProperties.dtd
EditorFormProperties.dtd