moving nsIXULCommand.h, nsXULCommand.h, and nsXULCommand.cpp to widget dll from appshell

git-svn-id: svn://10.0.0.236/trunk@19841 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
saari%netscape.com
1999-02-05 08:52:39 +00:00
parent 4d14b4476f
commit d4910aea39
20 changed files with 72 additions and 16 deletions

View File

@@ -43,6 +43,7 @@
#include "nsTreeView.h"
#include "nsToolbarManager.h"
#include "nsToolbarItemHolder.h"
#include "nsXULCommand.h"
#include "nsTextAreaWidget.h"
@@ -82,6 +83,7 @@ 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(kCXULCommand, NS_XULCOMMAND_CID);
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kIFactoryIID, NS_IFACTORY_IID);
@@ -226,6 +228,9 @@ nsresult nsWidgetFactory::CreateInstance(nsISupports *aOuter,
else if (mClassID.Equals(kCMenuItem)) {
inst = (nsISupports*)(nsIMenuItem*) new nsMenuItem();
}
else if (mClassID.Equals(kCXULCommand)) {
inst = (nsISupports*)(nsIXULCommand*) new nsXULCommand();
}
else if (mClassID.Equals(kCImageButton)) {
inst = (nsISupports*)(nsWindow*)new nsImageButton();
}