michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: #include "nsCOMPtr.h" michael@0: #include "nsPrintOptionsWin.h" michael@0: #include "nsPrintSettingsWin.h" michael@0: michael@0: #include "nsGfxCIID.h" michael@0: #include "nsIServiceManager.h" michael@0: const char kPrinterEnumeratorContractID[] = "@mozilla.org/gfx/printerenumerator;1"; michael@0: michael@0: /** --------------------------------------------------- michael@0: * See documentation in nsPrintOptionsWin.h michael@0: * @update 6/21/00 dwc michael@0: */ michael@0: nsPrintOptionsWin::nsPrintOptionsWin() michael@0: { michael@0: michael@0: } michael@0: michael@0: /** --------------------------------------------------- michael@0: * See documentation in nsPrintOptionsImpl.h michael@0: * @update 6/21/00 dwc michael@0: */ michael@0: nsPrintOptionsWin::~nsPrintOptionsWin() michael@0: { michael@0: } michael@0: michael@0: /* nsIPrintSettings CreatePrintSettings (); */ michael@0: nsresult nsPrintOptionsWin::_CreatePrintSettings(nsIPrintSettings **_retval) michael@0: { michael@0: *_retval = nullptr; michael@0: nsPrintSettingsWin* printSettings = new nsPrintSettingsWin(); // does not initially ref count michael@0: NS_ENSURE_TRUE(printSettings, NS_ERROR_OUT_OF_MEMORY); michael@0: michael@0: NS_ADDREF(*_retval = printSettings); // ref count michael@0: michael@0: return NS_OK; michael@0: } michael@0: