Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #include "nsISupports.idl" |
michael@0 | 7 | |
michael@0 | 8 | %{ C++ |
michael@0 | 9 | #include "windows.h" |
michael@0 | 10 | %} |
michael@0 | 11 | |
michael@0 | 12 | /** |
michael@0 | 13 | * Native types |
michael@0 | 14 | */ |
michael@0 | 15 | [ptr] native nsDevMode(DEVMODEW); |
michael@0 | 16 | |
michael@0 | 17 | /** |
michael@0 | 18 | * Simplified PrintSettings for Windows interface |
michael@0 | 19 | */ |
michael@0 | 20 | [scriptable, uuid(f13b225d-473e-4372-b11f-b6dff9fe0c5b)] |
michael@0 | 21 | |
michael@0 | 22 | interface nsIPrintSettingsWin : nsISupports |
michael@0 | 23 | { |
michael@0 | 24 | /** |
michael@0 | 25 | * Data Members |
michael@0 | 26 | * |
michael@0 | 27 | * Each of these data members make a copy |
michael@0 | 28 | * of the contents. If you get the value, |
michael@0 | 29 | * you own the memory. |
michael@0 | 30 | * |
michael@0 | 31 | * The following three pieces of data are needed |
michael@0 | 32 | * to create a DC for printing. These are typcially |
michael@0 | 33 | * gotten via the PrintDLG call ro can be obtained |
michael@0 | 34 | * via the "m_pd" data member of the CPrintDialog |
michael@0 | 35 | * in MFC. |
michael@0 | 36 | */ |
michael@0 | 37 | [noscript] attribute wstring deviceName; |
michael@0 | 38 | [noscript] attribute wstring driverName; |
michael@0 | 39 | |
michael@0 | 40 | [noscript] attribute nsDevMode devMode; |
michael@0 | 41 | |
michael@0 | 42 | }; |