make DoDialog available from idl. bug 72112 continues

This commit is contained in:
danm@netscape.com
2001-04-09 00:42:12 +00:00
parent 9024e32197
commit 903f935271
3 changed files with 44 additions and 9 deletions

View File

@@ -22,6 +22,7 @@
#include "nsPromptService.h"
#include "nsDialogParamBlock.h"
#include "nsXPComFactory.h"
#include "nsIComponentManager.h"
#include "nsIDialogParamBlock.h"
@@ -29,8 +30,6 @@
#include "nsIServiceManager.h"
#include "nsISupportsUtils.h"
static NS_DEFINE_CID(kDialogParamBlockCID, NS_DialogParamBlock_CID);
const char *kPromptURL="chrome://global/content/commonDialog.xul";
const char *kSelectPromptURL="chrome://global/content/selectDialog.xul";
const char *kQuestionIconURL ="chrome://global/skin/question-icon.gif";
@@ -51,7 +50,8 @@ public:
NS_IF_RELEASE(mBlock);
}
nsresult Init() {
return nsComponentManager::CreateInstance(kDialogParamBlockCID,
return nsComponentManager::CreateInstance(
NS_DIALOGPARAMBLOCK_CONTRACTID,
0, NS_GET_IID(nsIDialogParamBlock),
(void**) &mBlock);
}
@@ -67,7 +67,7 @@ private:
************************ nsPromptService ***********************
****************************************************************/
NS_IMPL_ISUPPORTS1(nsPromptService, nsIPromptService)
NS_IMPL_ISUPPORTS2(nsPromptService, nsIPromptService, nsPIPromptService)
nsPromptService::nsPromptService() {
NS_INIT_REFCNT();