1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/widget/nsIPrintSettingsWin.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,42 @@ 1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "nsISupports.idl" 1.10 + 1.11 +%{ C++ 1.12 +#include "windows.h" 1.13 +%} 1.14 + 1.15 +/** 1.16 + * Native types 1.17 + */ 1.18 + [ptr] native nsDevMode(DEVMODEW); 1.19 + 1.20 +/** 1.21 + * Simplified PrintSettings for Windows interface 1.22 + */ 1.23 +[scriptable, uuid(f13b225d-473e-4372-b11f-b6dff9fe0c5b)] 1.24 + 1.25 +interface nsIPrintSettingsWin : nsISupports 1.26 +{ 1.27 + /** 1.28 + * Data Members 1.29 + * 1.30 + * Each of these data members make a copy 1.31 + * of the contents. If you get the value, 1.32 + * you own the memory. 1.33 + * 1.34 + * The following three pieces of data are needed 1.35 + * to create a DC for printing. These are typcially 1.36 + * gotten via the PrintDLG call ro can be obtained 1.37 + * via the "m_pd" data member of the CPrintDialog 1.38 + * in MFC. 1.39 + */ 1.40 + [noscript] attribute wstring deviceName; 1.41 + [noscript] attribute wstring driverName; 1.42 + 1.43 + [noscript] attribute nsDevMode devMode; 1.44 + 1.45 +};