Add registering of nsIDocumentStateListeners.

This commit is contained in:
sfraser%netscape.com 1999-08-03 00:47:40 +00:00
Родитель b974dca11f
Коммит 2e89403a0e
1 изменённых файлов: 14 добавлений и 0 удалений

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

@ -20,6 +20,7 @@
#include "domstubs.idl" #include "domstubs.idl"
#include "nsIFileSpec.idl" #include "nsIFileSpec.idl"
#include "nsISupportsArray.idl" #include "nsISupportsArray.idl"
#include "nsIDocumentStateListener.idl"
%{C++ %{C++
@ -58,6 +59,19 @@ interface nsIEditorShell : nsISupports
void SetWebShellWindow(in nsIDOMWindow win); void SetWebShellWindow(in nsIDOMWindow win);
void LoadUrl(in wstring url); void LoadUrl(in wstring url);
/* Register a doc state listener. This gets added to a list of listeners
which are registered with the editor when that gets instantiated.
If the LoadUrl fails, this listener will not receive any notifcations.
If you call this after the editor has been instantiated, it calls through
to editor::AddDocumentStateListener().
*/
void RegisterDocumentStateListener(in nsIDocumentStateListener docListener);
/* Unregister a listener.
If you call this after the editor has been instantiated, it calls through
to editor::RemoveDocumentStateListener().
*/
void UnregisterDocumentStateListener(in nsIDocumentStateListener docListener);
void Init(); void Init();
/* Commands */ /* Commands */