Rename nsISpellCheck to nsIEditorSpellCheck
This commit is contained in:
Родитель
85e08daa06
Коммит
3c88513d64
|
@ -178,8 +178,8 @@ nsEditorShell::QueryInterface(REFNSIID aIID,void** aInstancePtr)
|
|||
AddRef();
|
||||
return NS_OK;
|
||||
}
|
||||
else if ( aIID.Equals(nsISpellCheck::GetIID()) ) {
|
||||
*aInstancePtr = (void*) ((nsISpellCheck*)this);
|
||||
else if ( aIID.Equals(nsIEditorSpellCheck::GetIID()) ) {
|
||||
*aInstancePtr = (void*) ((nsIEditorSpellCheck*)this);
|
||||
AddRef();
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include "nsIDOMDocument.h"
|
||||
#include "nsVoidArray.h"
|
||||
#include "nsTextServicesCID.h"
|
||||
#include "nsISpellCheck.h"
|
||||
#include "nsIEditorSpellCheck.h"
|
||||
#include "nsISpellChecker.h"
|
||||
|
||||
class nsIBrowserWindow;
|
||||
|
@ -61,7 +61,7 @@ class nsIOutputStream;
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class nsEditorShell : public nsIEditorShell,
|
||||
public nsISpellCheck,
|
||||
public nsIEditorSpellCheck,
|
||||
public nsIDocumentLoaderObserver
|
||||
{
|
||||
public:
|
||||
|
|
|
@ -178,8 +178,8 @@ nsEditorShell::QueryInterface(REFNSIID aIID,void** aInstancePtr)
|
|||
AddRef();
|
||||
return NS_OK;
|
||||
}
|
||||
else if ( aIID.Equals(nsISpellCheck::GetIID()) ) {
|
||||
*aInstancePtr = (void*) ((nsISpellCheck*)this);
|
||||
else if ( aIID.Equals(nsIEditorSpellCheck::GetIID()) ) {
|
||||
*aInstancePtr = (void*) ((nsIEditorSpellCheck*)this);
|
||||
AddRef();
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include "nsIDOMDocument.h"
|
||||
#include "nsVoidArray.h"
|
||||
#include "nsTextServicesCID.h"
|
||||
#include "nsISpellCheck.h"
|
||||
#include "nsIEditorSpellCheck.h"
|
||||
#include "nsISpellChecker.h"
|
||||
|
||||
class nsIBrowserWindow;
|
||||
|
@ -61,7 +61,7 @@ class nsIOutputStream;
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class nsEditorShell : public nsIEditorShell,
|
||||
public nsISpellCheck,
|
||||
public nsIEditorSpellCheck,
|
||||
public nsIDocumentLoaderObserver
|
||||
{
|
||||
public:
|
||||
|
|
|
@ -17,4 +17,4 @@
|
|||
#
|
||||
|
||||
nsIEditorShell.idl
|
||||
nsISpellCheck.idl
|
||||
nsIEditorSpellCheck.idl
|
||||
|
|
|
@ -23,7 +23,7 @@ VPATH = @srcdir@
|
|||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
XPIDLSRCS = nsIEditorShell.idl \
|
||||
nsISpellCheck.idl \
|
||||
nsIEditorSpellCheck.idl \
|
||||
$(NULL)
|
||||
|
||||
MODULE = editor
|
||||
|
|
|
@ -26,7 +26,7 @@ MODULE=editor
|
|||
XPIDL_MODULE=editor
|
||||
|
||||
XPIDLSRCS = .\nsIEditorShell.idl \
|
||||
.\nsISpellCheck.idl \
|
||||
.\nsIEditorSpellCheck.idl \
|
||||
$(NULL)
|
||||
|
||||
include <$(DEPTH)\config\rules.mak>
|
||||
|
|
Двоичные данные
editor/macbuild/EditorIDL.mcp
Двоичные данные
editor/macbuild/EditorIDL.mcp
Двоичный файл не отображается.
|
@ -358,7 +358,7 @@ function EditorPrintPreview()
|
|||
|
||||
function CheckSpelling()
|
||||
{
|
||||
var spellChecker = window.editorShell.QueryInterface(Components.interfaces.nsISpellCheck);
|
||||
var spellChecker = window.editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck);
|
||||
if (spellChecker)
|
||||
{
|
||||
dump("Check Spelling starting...\n");
|
||||
|
|
|
@ -8,7 +8,7 @@ function Startup()
|
|||
|
||||
// get the editor shell from the parent window
|
||||
editorShell = window.opener.editorShell;
|
||||
editorShell = editorShell.QueryInterface(Components.interfaces.nsISpellCheck);
|
||||
editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck);
|
||||
if(!editorShell) {
|
||||
dump("EditoreditorShell not found!!!\n");
|
||||
window.close();
|
||||
|
|
Загрузка…
Ссылка в новой задаче