|
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/. */ |
|
5 |
|
6 #include "nsISupports.idl" |
|
7 |
|
8 %{ C++ |
|
9 #include "windows.h" |
|
10 %} |
|
11 |
|
12 /** |
|
13 * Native types |
|
14 */ |
|
15 [ptr] native nsDevMode(DEVMODEW); |
|
16 |
|
17 /** |
|
18 * Simplified PrintSettings for Windows interface |
|
19 */ |
|
20 [scriptable, uuid(f13b225d-473e-4372-b11f-b6dff9fe0c5b)] |
|
21 |
|
22 interface nsIPrintSettingsWin : nsISupports |
|
23 { |
|
24 /** |
|
25 * Data Members |
|
26 * |
|
27 * Each of these data members make a copy |
|
28 * of the contents. If you get the value, |
|
29 * you own the memory. |
|
30 * |
|
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 |
|
35 * in MFC. |
|
36 */ |
|
37 [noscript] attribute wstring deviceName; |
|
38 [noscript] attribute wstring driverName; |
|
39 |
|
40 [noscript] attribute nsDevMode devMode; |
|
41 |
|
42 }; |