not part of build, testcase. to use selections in outliner, the view needs to support nsIClassInfo. Based on code by peterv in bug 80926

This commit is contained in:
axel%pike.org 2001-08-15 10:03:51 +00:00
Родитель e4ac8d52ba
Коммит facaf916c4
1 изменённых файлов: 15 добавлений и 0 удалений

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

@ -50,6 +50,21 @@ var view = ({
return "XXX in "+ col+" and "+i;
}
},
// nsIClassInfo
flags : Components.interfaces.nsIClassInfo.DOM_OBJECT,
classDescription : "OutlinerView",
getInterfaces: function() {},
getHelperForLanguage: function(aLang) {},
QueryInterface: function(iid) {
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
if (!iid.equals(Components.interfaces.nsISupports) &&
!iid.equals(Components.interfaces.nsIOutlinerView) &&
!iid.equals(Components.interfaces.nsIClassInfo))
throw Components.results.NS_ERROR_NO_INTERFACE;
return this;
},
// privates
names : null,
purps : null,