Bug 1892041 - Part 3: Update test exclusions. r=spidermonkey-reviewers,dminor
[gecko.git] / widget / nsIPrintSettingsWin.idl
blobfae68a9fdda3ee05f0535669169c5581453b882b
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"
8 %{ C++
9 #include "windows.h"
12 /**
13 * Native types
15 [ptr] native nsDevMode(DEVMODEW);
16 native nsHdc(HDC);
18 /**
19 * Simplified PrintSettings for Windows interface
21 [uuid(c63eed41-6ac5-459e-8a64-033eb9ad770a)]
22 interface nsIPrintSettingsWin : nsISupports
24 /**
25 * Data Members
27 * Each of these data members make a copy
28 * of the contents. If you get the value,
29 * you own the memory.
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.
37 [noscript] attribute AString deviceName;
38 [noscript] attribute AString driverName;
40 [noscript] attribute nsDevMode devMode;
42 /**
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);
50 /**
51 * Copy relevant print settings to native windows structures.
53 * @param devMode DEVMODE to be populated.
55 [notxpcom] void copyToNative(in nsDevMode devMode);