r=peterl sr = buster. Added printeroptions service

This commit is contained in:
dcone%netscape.com 2001-01-11 22:17:38 +00:00
Родитель 027f2b356a
Коммит 9349b361ed
1 изменённых файлов: 11 добавлений и 0 удалений

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

@ -63,6 +63,8 @@
#include "nsDirectoryServiceDefs.h"
#include "nsIHTTPProtocolHandler.h"
#include "nsBuildID.h"
#include "nsIPrintOptions.h"
#include "nsGfxCIID.h"
// Interfaces Needed
#include "nsIXULWindow.h"
@ -945,6 +947,15 @@ static nsresult main1(int argc, char* argv[], nsISupports *nativeApp )
return rv;
}
nsIPrintOptions *thePrintOptions;
static NS_DEFINE_CID(kPrintOptionsCID,NS_PRINTOPTIONS_CID);
rv = nsComponentManager::CreateInstance(kPrintOptionsCID,nsnull,NS_GET_IID(nsIPrintOptions),(void**)&thePrintOptions);
if(NS_SUCCEEDED(rv) && thePrintOptions) {
nsServiceManager::RegisterService(kPrintOptionsCID,thePrintOptions);
}
nsCOMPtr<nsIAppShellService> appShell = do_GetService(kAppShellServiceCID, &rv);
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to get the appshell service");