widget/windows/nsPrintSettingsWin.h

branch
TOR_BUG_9701
changeset 10
ac0c01689b40
equal deleted inserted replaced
-1:000000000000 0:79b2371a50cb
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/. */
6
7 #ifndef nsPrintSettingsWin_h__
8 #define nsPrintSettingsWin_h__
9
10 #include "nsPrintSettingsImpl.h"
11 #include "nsIPrintSettingsWin.h"
12 #include <windows.h>
13
14
15 //*****************************************************************************
16 //*** nsPrintSettingsWin
17 //*****************************************************************************
18 class nsPrintSettingsWin : public nsPrintSettings,
19 public nsIPrintSettingsWin
20 {
21 public:
22 NS_DECL_ISUPPORTS_INHERITED
23 NS_DECL_NSIPRINTSETTINGSWIN
24
25 nsPrintSettingsWin();
26 nsPrintSettingsWin(const nsPrintSettingsWin& aPS);
27 virtual ~nsPrintSettingsWin();
28
29 /**
30 * Makes a new copy
31 */
32 virtual nsresult _Clone(nsIPrintSettings **_retval);
33
34 /**
35 * Assigns values
36 */
37 virtual nsresult _Assign(nsIPrintSettings* aPS);
38
39 /**
40 * Assignment
41 */
42 nsPrintSettingsWin& operator=(const nsPrintSettingsWin& rhs);
43
44 protected:
45 void CopyDevMode(DEVMODEW* aInDevMode, DEVMODEW *& aOutDevMode);
46
47 wchar_t* mDeviceName;
48 wchar_t* mDriverName;
49 LPDEVMODEW mDevMode;
50 };
51
52
53
54 #endif /* nsPrintSettingsWin_h__ */

mercurial