2020-07-05 22:00:43 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2020-07-13 22:59:26 +03:00
|
|
|
#include "nsIPaper.idl"
|
2020-07-05 22:00:43 +03:00
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
|
|
|
[scriptable, uuid(d2dde9bb-df86-469c-bfcc-fd95a44b1db8)]
|
|
|
|
interface nsIPrinter : nsISupports
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The name of the printer.
|
|
|
|
*/
|
|
|
|
readonly attribute AString name;
|
2020-07-13 22:59:26 +03:00
|
|
|
|
2020-08-20 09:11:08 +03:00
|
|
|
/**
|
|
|
|
* Creates a Promise that will resolve to an nsIPrintSettings object containing
|
|
|
|
* the default settings for this printer. For convenience, a new, mutable
|
|
|
|
* nsIPrintSettings object is created for each call.
|
|
|
|
*/
|
|
|
|
[implicit_jscontext]
|
|
|
|
Promise createDefaultSettings();
|
|
|
|
|
2020-07-13 22:59:26 +03:00
|
|
|
/**
|
2020-08-05 04:24:49 +03:00
|
|
|
* Returns a Promise that resolves to an array of
|
|
|
|
* nsIPaper instances with the list of available paper
|
|
|
|
* sizes.
|
2020-07-13 22:59:26 +03:00
|
|
|
*/
|
2020-08-05 04:24:49 +03:00
|
|
|
[implicit_jscontext]
|
|
|
|
readonly attribute Promise paperList;
|
2020-07-24 21:02:22 +03:00
|
|
|
|
|
|
|
/**
|
2020-08-04 15:06:37 +03:00
|
|
|
* Returns a Promise that resolves to true or false to indicate whether this
|
|
|
|
* printer supports duplex printing.
|
2020-07-24 21:02:22 +03:00
|
|
|
*/
|
2020-08-04 15:06:37 +03:00
|
|
|
[implicit_jscontext]
|
|
|
|
readonly attribute Promise supportsDuplex;
|
2020-08-03 14:45:35 +03:00
|
|
|
|
|
|
|
/**
|
2020-08-04 15:06:37 +03:00
|
|
|
* Returns a Promise that resolves to true or false to indicate whether this
|
|
|
|
* printer supports color printing.
|
2020-08-03 14:45:35 +03:00
|
|
|
*/
|
2020-08-04 15:06:37 +03:00
|
|
|
[implicit_jscontext]
|
|
|
|
readonly attribute Promise supportsColor;
|
2020-08-14 23:41:59 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns a Promise that resolves to true or false to indicate whether this
|
|
|
|
* printer supports collation.
|
|
|
|
*/
|
|
|
|
[implicit_jscontext]
|
|
|
|
readonly attribute Promise supportsCollation;
|
2020-07-05 22:00:43 +03:00
|
|
|
};
|