mshtml: Add IID_IPropertyNotifySink and DIID_HTMLTextContainerEvents connection points to HTMLBodyElement.

This commit is contained in:
Jacek Caban 2007-06-29 02:58:42 +02:00 committed by Alexandre Julliard
parent 982dce485a
commit 21836d21cf
1 changed files with 7 additions and 1 deletions

View File

@ -41,6 +41,8 @@ typedef struct {
HTMLTextContainer text_container; HTMLTextContainer text_container;
ConnectionPointContainer cp_container; ConnectionPointContainer cp_container;
ConnectionPoint cp_propnotif;
ConnectionPoint cp_txtcontevents;
HTMLElement *element; HTMLElement *element;
nsIDOMHTMLBodyElement *nsbody; nsIDOMHTMLBodyElement *nsbody;
@ -493,7 +495,11 @@ void HTMLBodyElement_Create(HTMLElement *element)
HTMLTextContainer_Init(&ret->text_container, element); HTMLTextContainer_Init(&ret->text_container, element);
ConnectionPointContainer_Init(&ret->cp_container, NULL, (IUnknown*)HTMLBODY(ret)); ConnectionPoint_Init(&ret->cp_propnotif, CONPTCONT(&ret->cp_container),
&IID_IPropertyNotifySink, NULL);
ConnectionPoint_Init(&ret->cp_txtcontevents, CONPTCONT(&ret->cp_container),
&DIID_HTMLTextContainerEvents, &ret->cp_propnotif);
ConnectionPointContainer_Init(&ret->cp_container, &ret->cp_propnotif, (IUnknown*)HTMLBODY(ret));
nsres = nsIDOMHTMLElement_QueryInterface(element->nselem, &IID_nsIDOMHTMLBodyElement, nsres = nsIDOMHTMLElement_QueryInterface(element->nselem, &IID_nsIDOMHTMLBodyElement,
(void**)&ret->nsbody); (void**)&ret->nsbody);