Removing tree and toolbar widgets from being created, as they are now frames.

This commit is contained in:
pinkerton%netscape.com 1999-02-11 17:58:07 +00:00
parent ccc9feeb19
commit a48d272b36
2 changed files with 0 additions and 20 deletions

Binary file not shown.

View File

@ -39,10 +39,6 @@
#include "nsMenuItem.h"
#include "nsImageButton.h"
#include "nsMenuButton.h"
#include "nsToolbar.h"
#include "nsTreeView.h"
#include "nsToolbarManager.h"
#include "nsToolbarItemHolder.h"
#include "nsTextAreaWidget.h"
@ -76,12 +72,8 @@ static NS_DEFINE_IID(kCMenuBar, NS_MENUBAR_CID);
static NS_DEFINE_IID(kCMenu, NS_MENU_CID);
static NS_DEFINE_IID(kCMenuItem, NS_MENUITEM_CID);
static NS_DEFINE_IID(kCImageButton, NS_IMAGEBUTTON_CID);
static NS_DEFINE_IID(kCToolBar, NS_TOOLBAR_CID);
static NS_DEFINE_IID(kCToolBarManager, NS_TOOLBARMANAGER_CID);
static NS_DEFINE_IID(kCToolBarItemHolder, NS_TOOLBARITEMHOLDER_CID);
static NS_DEFINE_IID(kCPopUpMenu, NS_POPUPMENU_CID);
static NS_DEFINE_IID(kCMenuButton, NS_MENUBUTTON_CID);
static NS_DEFINE_IID(kCTreeView, NS_TREEVIEW_CID);
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kIFactoryIID, NS_IFACTORY_IID);
@ -232,21 +224,9 @@ nsresult nsWidgetFactory::CreateInstance(nsISupports *aOuter,
else if (mClassID.Equals(kCMenuButton)) {
inst = (nsISupports*)(nsWindow*)new nsMenuButton();
}
else if (mClassID.Equals(kCToolBar)) {
inst = (nsISupports*)(nsWindow*)new nsToolbar();
}
else if (mClassID.Equals(kCToolBarManager)) {
inst = (nsISupports*)(nsWindow*)new nsToolbarManager();
}
else if (mClassID.Equals(kCToolBarItemHolder)) {
inst = (nsISupports*)(nsIToolbarItemHolder *) new nsToolbarItemHolder();
}
else if (mClassID.Equals(kCPopUpMenu)) {
// inst = (nsISupports*)new nsPopUpMenu();
}/* */
else if (mClassID.Equals(kCTreeView)) {
inst = (nsISupports*)(nsWindow*) new nsTreeView();
}
if (inst == NULL) {
return NS_ERROR_OUT_OF_MEMORY;