Allow the editing session to update all command controllers from script; this is needed for MDI in Composer/Nvu and frameset editing.

b=231464, r/sr=dbaron
This commit is contained in:
daniel%glazman.org 2004-01-19 20:31:18 +00:00
Родитель 55b3afdfbb
Коммит 579027d2f4
3 изменённых файлов: 5 добавлений и 3 удалений

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

@ -102,5 +102,8 @@ interface nsIEditingSession : nsISupports
*/ */
void tearDownEditorOnWindow(in nsIDOMWindow window); void tearDownEditorOnWindow(in nsIDOMWindow window);
void setEditorOnControllers(in nsIDOMWindow aWindow,
in nsIEditor aEditor);
}; };

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

@ -1240,7 +1240,7 @@ nsEditingSession::SetupEditorCommandController(
Set the editor on the controller(s) for this window Set the editor on the controller(s) for this window
----------------------------------------------------------------------------*/ ----------------------------------------------------------------------------*/
nsresult NS_IMETHODIMP
nsEditingSession::SetEditorOnControllers(nsIDOMWindow *aWindow, nsEditingSession::SetEditorOnControllers(nsIDOMWindow *aWindow,
nsIEditor* aEditor) nsIEditor* aEditor)
{ {

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

@ -107,8 +107,7 @@ protected:
nsIDOMWindow *aWindow, nsIDOMWindow *aWindow,
nsISupports *aContext, nsISupports *aContext,
PRUint32 *aControllerId); PRUint32 *aControllerId);
nsresult SetEditorOnControllers(nsIDOMWindow *aWindow,
nsIEditor* aEditor);
nsresult SetContextOnControllerById(nsIControllers* aControllers, nsresult SetContextOnControllerById(nsIControllers* aControllers,
nsISupports* aContext, nsISupports* aContext,
PRUint32 aID); PRUint32 aID);