1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include
"nsISupports.idl"
7 #include
"nsIPrintSettings.idl"
9 interface nsIStringEnumerator
;
11 [scriptable
, uuid(5e738fff
-404c
-4c94
-9189-e8f2cce93e94
)]
13 interface nsIPrinterEnumerator
: nsISupports
16 * The name of the system default printer. This name should also be
17 * present in printerNameList below. This is not necessarily gecko's
18 * default printer; see nsIPrintSettingsService.defaultPrinterName
21 readonly attribute AString defaultPrinterName
;
24 * Initializes certain settings from the native printer into the PrintSettings
25 * These settings include, but are not limited to:
30 void initPrintSettingsFromPrinter
(in AString aPrinterName
,
31 in nsIPrintSettings aPrintSettings
);
34 * The list of printer names
36 readonly attribute nsIStringEnumerator printerNameList
;