зеркало из https://github.com/mozilla/gecko-dev.git
r=peterl sr = buster. Added printeroptions service
This commit is contained in:
Родитель
027f2b356a
Коммит
9349b361ed
|
@ -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");
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче