gfx/src/windows/nsDeviceContextSpecWin.h,3.3 | . | Disk File |
Skipping to line 38 | . | |
|
. |
|
#ifndef nsDeviceContextSpecWin_h___ |
. |
#ifndef nsDeviceContextSpecWin_h___ |
#define nsDeviceContextSpecWin_h___ |
. |
#define nsDeviceContextSpecWin_h___ |
|
. |
|
#include "nsIDeviceContextSpec.h" |
. |
#include "nsIDeviceContextSpec.h" |
  |
. |
#include "nsIPrintOptions.h" // For nsIPrinterEnumerator |
  |
. |
#include "nsIPrintSettings.h" |
#include <windows.h> |
. |
#include <windows.h> |
|
. |
|
class nsDeviceContextSpecWin : public nsIDeviceContextSpec |
. |
class nsDeviceContextSpecWin : public nsIDeviceContextSpec |
{ |
. |
{ |
public: |
. |
public: |
Skipping to line 51 | . | |
|
. |
|
NS_DECL_ISUPPORTS |
. |
NS_DECL_ISUPPORTS |
|
. |
|
NS_IMETHOD Init(char *aDriverName, char *aDeviceName, HGLOBAL aDEVMODE); |
. |
NS_IMETHOD Init(nsIWidget* aWidget, nsIPrintSettings* aPS, PRBool aQuiet); |
NS_IMETHOD GetDriverName(char *&aDriverName) const; |
. |
|
NS_IMETHOD GetDeviceName(char *&aDeviceName) const;
|
. |
void GetDriverName(char *&aDriverName) const { aDriverName = mDriverName
; } |
NS_IMETHOD GetDEVMODE(HGLOBAL &aDevMode) const;
|
. |
void GetDeviceName(char *&aDeviceName) const { aDeviceName = mDeviceName
; } |
 
|
. |
void GetGlobalDevMode(HGLOBAL &aHGlobal) const { aHGlobal = mGlobalDevMode
; } |
 
|
. |
void GetDevMode(LPDEVMODE &aDevMode) const { aDevMode = mDevMode;
} |
 
|
. |
PRBool IsDEVMODEGlobalHandle() const { return mIsDEVMODEGlobalHa
ndle; } |
|
. |
|
protected: |
. |
protected: |
  |
. |
nsresult ShowXPPrintDialog(PRBool aQuiet); |
  |
. |
nsresult ShowNativePrintDialog(nsIWidget* aWidget, PRBool aQuiet); |
  |
. |
|
  |
. |
void SetDeviceName(char* aDeviceName); |
  |
. |
void SetDriverName(char* aDriverName); |
  |
. |
void SetGlobalDevMode(HGLOBAL aHGlobal); |
  |
. |
void SetDevMode(LPDEVMODE aDevMode); |
  |
. |
|
  |
. |
void GetDataFromPrinter(PRUnichar * aName); |
  |
. |
void SetupPaperInfoFromSettings(); |
  |
. |
|
virtual ~nsDeviceContextSpecWin(); |
. |
virtual ~nsDeviceContextSpecWin(); |
|
. |
|
char *mDriverName; |
. |
char* mDriverName; |
char *mDeviceName; |
. |
char* mDeviceName; |
HGLOBAL mDEVMODE; |
. |
HGLOBAL mGlobalDevMode; |
  |
. |
LPDEVMODE mDevMode; |
  |
. |
PRBool mIsDEVMODEGlobalHandle; |
  |
. |
|
  |
. |
nsCOMPtr<nsIPrintSettings> mPrintSettings; |
  |
. |
}; |
  |
. |
|
  |
. |
|
  |
. |
//------------------------------------------------------------------------- |
  |
. |
// Printer Enumerator |
  |
. |
//------------------------------------------------------------------------- |
  |
. |
class nsPrinterEnumeratorWin : public nsIPrinterEnumerator |
  |
. |
{ |
  |
. |
public: |
  |
. |
nsPrinterEnumeratorWin(); |
  |
. |
~nsPrinterEnumeratorWin(); |
  |
. |
NS_DECL_ISUPPORTS |
  |
. |
NS_DECL_NSIPRINTERENUMERATOR |
}; |
. |
}; |
|
. |
|
#endif |
. |
#endif |