Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef nsPrintSettingsWin_h__
8 #define nsPrintSettingsWin_h__
10 #include "nsPrintSettingsImpl.h"
11 #include "nsIPrintSettingsWin.h"
12 #include <windows.h>
15 //*****************************************************************************
16 //*** nsPrintSettingsWin
17 //*****************************************************************************
18 class nsPrintSettingsWin : public nsPrintSettings,
19 public nsIPrintSettingsWin
20 {
21 public:
22 NS_DECL_ISUPPORTS_INHERITED
23 NS_DECL_NSIPRINTSETTINGSWIN
25 nsPrintSettingsWin();
26 nsPrintSettingsWin(const nsPrintSettingsWin& aPS);
27 virtual ~nsPrintSettingsWin();
29 /**
30 * Makes a new copy
31 */
32 virtual nsresult _Clone(nsIPrintSettings **_retval);
34 /**
35 * Assigns values
36 */
37 virtual nsresult _Assign(nsIPrintSettings* aPS);
39 /**
40 * Assignment
41 */
42 nsPrintSettingsWin& operator=(const nsPrintSettingsWin& rhs);
44 protected:
45 void CopyDevMode(DEVMODEW* aInDevMode, DEVMODEW *& aOutDevMode);
47 wchar_t* mDeviceName;
48 wchar_t* mDriverName;
49 LPDEVMODEW mDevMode;
50 };
54 #endif /* nsPrintSettingsWin_h__ */