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"
15 [ptr] native nsDevMode
(DEVMODEW
);
19 * Simplified PrintSettings for Windows interface
21 [uuid(c63eed41
-6ac5
-459e-8a64
-033eb9ad770a
)]
22 interface nsIPrintSettingsWin
: nsISupports
27 * Each of these data members make a copy
28 * of the contents. If you get the value,
31 * The following three pieces of data are needed
32 * to create a DC for printing. These are typcially
33 * gotten via the PrintDLG call ro can be obtained
34 * via the "m_pd" data member of the CPrintDialog
37 [noscript
] attribute AString deviceName
;
38 [noscript
] attribute AString driverName
;
40 [noscript
] attribute nsDevMode devMode
;
43 * Copy relevant print settings from native Windows device.
45 * @param hdc HDC to copy from
46 * @param devMode DEVMODE to copy from
48 [notxpcom
] void copyFromNative
(in nsHdc hdc
, in nsDevMode devMode
);
51 * Copy relevant print settings to native windows structures.
53 * @param devMode DEVMODE to be populated.
55 [notxpcom
] void copyToNative
(in nsDevMode devMode
);