This commit is contained in:
rods%netscape.com 2002-05-14 14:15:19 +00:00
Родитель c5c6c56ff1
Коммит a1081c5006
6 изменённых файлов: 10 добавлений и 10 удалений

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

@ -133,8 +133,8 @@
static NS_DEFINE_IID(kPrinterEnumeratorCID, NS_PRINTER_ENUMERATOR_CID);
// PrintOptions is now implemented by PrintSettingsService
const char* kPrintSettingsServiceCID = "@mozilla.org/gfx/printsettings-service;1";
const char* kPrintOptionsCID = "@mozilla.org/gfx/printsettings-service;1";
static const char* kPrintSettingsServiceCID = "@mozilla.org/gfx/printsettings-service;1";
static const char* kPrintOptionsCID = "@mozilla.org/gfx/printsettings-service;1";
// Printing Events
#include "nsIEventQueue.h"
@ -8236,7 +8236,6 @@ DocumentViewerImpl::GetGlobalPrintSettings(nsIPrintSettings * *aGlobalPrintSetti
NS_ENSURE_ARG_POINTER(aGlobalPrintSettings);
nsresult rv = NS_ERROR_FAILURE;
//nsCOMPtr<nsIPrintOptions> printSettingsService = do_GetService(kPrintOptionsCID, &rv);
nsCOMPtr<nsIPrintSettingsService> printSettingsService = do_GetService(kPrintSettingsServiceCID, &rv);
if (NS_SUCCEEDED(rv)) {
rv = printSettingsService->GetGlobalPrintSettings(aGlobalPrintSettings);

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

@ -55,7 +55,7 @@
#include "nsIPrintOptions.h"
#include "nsIServiceManager.h"
#include "nsGfxCIID.h"
const char* kPrintOptionsCID = "@mozilla.org/gfx/printsettings-service;1";
static const char* kPrintOptionsCID = "@mozilla.org/gfx/printsettings-service;1";
static const char *kPrintDialogURL = "chrome://global/content/printdialog.xul";
static const char *kPrintProgressDialogURL = "chrome://global/content/printProgress.xul";

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

@ -1172,7 +1172,7 @@ public:
};
Tester::Tester()
{
const char* kPrintOptionsCID = "@mozilla.org/gfx/printsettings-service;1";
static const char* kPrintOptionsCID = "@mozilla.org/gfx/printsettings-service;1";
nsCOMPtr<nsIPrintSettings> ps;
nsresult rv;
nsCOMPtr<nsIPrintOptions> printService = do_GetService(kPrintOptionsCID, &rv);

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

@ -133,8 +133,8 @@
static NS_DEFINE_IID(kPrinterEnumeratorCID, NS_PRINTER_ENUMERATOR_CID);
// PrintOptions is now implemented by PrintSettingsService
const char* kPrintSettingsServiceCID = "@mozilla.org/gfx/printsettings-service;1";
const char* kPrintOptionsCID = "@mozilla.org/gfx/printsettings-service;1";
static const char* kPrintSettingsServiceCID = "@mozilla.org/gfx/printsettings-service;1";
static const char* kPrintOptionsCID = "@mozilla.org/gfx/printsettings-service;1";
// Printing Events
#include "nsIEventQueue.h"
@ -8236,7 +8236,6 @@ DocumentViewerImpl::GetGlobalPrintSettings(nsIPrintSettings * *aGlobalPrintSetti
NS_ENSURE_ARG_POINTER(aGlobalPrintSettings);
nsresult rv = NS_ERROR_FAILURE;
//nsCOMPtr<nsIPrintOptions> printSettingsService = do_GetService(kPrintOptionsCID, &rv);
nsCOMPtr<nsIPrintSettingsService> printSettingsService = do_GetService(kPrintSettingsServiceCID, &rv);
if (NS_SUCCEEDED(rv)) {
rv = printSettingsService->GetGlobalPrintSettings(aGlobalPrintSettings);

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

@ -80,7 +80,8 @@ static NS_DEFINE_CID(kLocaleServiceCID, NS_LOCALESERVICE_CID);
#include "nsIPrintOptions.h"
#include "nsGfxCIID.h"
#include "nsIServiceManager.h"
const char* kPrintOptionsCID = "@mozilla.org/gfx/printsettings-service;1";
static const char* kPrintOptionsCID = "@mozilla.org/gfx/printsettings-service;1";
//
static NS_DEFINE_CID(kRegionCID, NS_REGION_CID);

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

@ -80,7 +80,8 @@ static NS_DEFINE_CID(kLocaleServiceCID, NS_LOCALESERVICE_CID);
#include "nsIPrintOptions.h"
#include "nsGfxCIID.h"
#include "nsIServiceManager.h"
const char* kPrintOptionsCID = "@mozilla.org/gfx/printsettings-service;1";
static const char* kPrintOptionsCID = "@mozilla.org/gfx/printsettings-service;1";
//
static NS_DEFINE_CID(kRegionCID, NS_REGION_CID);