Is there a reference of all interfaces which you can switch between with QueryInterface? For example, you can get a DOMDocumentEvent from a DOMDocument, or a DOMHTMLSelectElement from a DOMNode (assuming the DOMNode is a select element). Or is there some procedure I could take to make such a reference? I happened to find this in content/base/src/nsDocument.cpp of Mozilla 1.7.5
NS_INTERFACE_MAP_BEGIN(nsDocument) NS_INTERFACE_MAP_ENTRY(nsIDocument) NS_INTERFACE_MAP_ENTRY(nsIDOMDocument) NS_INTERFACE_MAP_ENTRY(nsIDOMNSDocument) NS_INTERFACE_MAP_ENTRY(nsIDOMDocumentEvent) ... NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIDocument) /* some code... */ NS_INTERFACE_MAP_END
If I took the NS_INTERFACE_MAP blocks from all .cpp files in Mozilla, would each set of NS_INTERFACE_MAP_ENTRYs be the be a set of QueryInterface-able interfaces? Or all of those sets combined that are within one file? Hmm, there are also some NS_INTERFACE_MAP_END_INHERITING in there. And NS_IMPL_QUERY_INTERFACEn. I'm lost. _______________________________________________ Mozilla-xpcom mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-xpcom
