2006-02-07 04:13:47 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
2012-05-21 15:12:37 +04:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2006-02-07 04:13:47 +03:00
|
|
|
|
|
|
|
#ifndef nsPrintSettingsWin_h__
|
|
|
|
#define nsPrintSettingsWin_h__
|
|
|
|
|
|
|
|
#include "nsPrintSettingsImpl.h"
|
|
|
|
#include "nsIPrintSettingsWin.h"
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
|
|
|
|
//*****************************************************************************
|
|
|
|
//*** nsPrintSettingsWin
|
|
|
|
//*****************************************************************************
|
|
|
|
class nsPrintSettingsWin : public nsPrintSettings,
|
2006-02-10 23:40:54 +03:00
|
|
|
public nsIPrintSettingsWin
|
2006-02-07 04:13:47 +03:00
|
|
|
{
|
2014-07-16 00:37:58 +04:00
|
|
|
virtual ~nsPrintSettingsWin();
|
|
|
|
|
2006-02-07 04:13:47 +03:00
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
|
|
|
NS_DECL_NSIPRINTSETTINGSWIN
|
|
|
|
|
|
|
|
nsPrintSettingsWin();
|
2006-02-07 04:14:05 +03:00
|
|
|
nsPrintSettingsWin(const nsPrintSettingsWin& aPS);
|
2006-02-07 04:13:47 +03:00
|
|
|
|
2006-02-07 04:13:52 +03:00
|
|
|
/**
|
|
|
|
* Makes a new copy
|
|
|
|
*/
|
2006-02-07 04:14:05 +03:00
|
|
|
virtual nsresult _Clone(nsIPrintSettings **_retval);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Assigns values
|
|
|
|
*/
|
|
|
|
virtual nsresult _Assign(nsIPrintSettings* aPS);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Assignment
|
|
|
|
*/
|
|
|
|
nsPrintSettingsWin& operator=(const nsPrintSettingsWin& rhs);
|
2006-02-07 04:13:52 +03:00
|
|
|
|
2016-01-22 19:05:19 +03:00
|
|
|
NS_IMETHOD GetEffectivePageSize(double *aWidth, double *aHeight) override;
|
|
|
|
|
2006-02-07 04:13:47 +03:00
|
|
|
protected:
|
2008-10-22 04:54:26 +04:00
|
|
|
void CopyDevMode(DEVMODEW* aInDevMode, DEVMODEW *& aOutDevMode);
|
2006-02-07 04:14:13 +03:00
|
|
|
|
2013-12-03 19:12:57 +04:00
|
|
|
wchar_t* mDeviceName;
|
|
|
|
wchar_t* mDriverName;
|
2008-10-22 04:54:26 +04:00
|
|
|
LPDEVMODEW mDevMode;
|
2016-01-22 19:05:19 +03:00
|
|
|
double mPrintableWidthInInches = 0l;
|
|
|
|
double mPrintableHeightInInches = 0l;
|
2006-02-07 04:13:47 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* nsPrintSettingsWin_h__ */
|