Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsIPrintSettingsWin.idl
*/
#ifndef __gen_nsIPrintSettingsWin_h__
#define __gen_nsIPrintSettingsWin_h__
#include "nsISupports.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
#include "windows.h"
/* starting interface: nsIPrintSettingsWin */
#define NS_IPRINTSETTINGSWIN_IID_STR "c63eed41-6ac5-459e-8a64-033eb9ad770a"
#define NS_IPRINTSETTINGSWIN_IID \
{0xc63eed41, 0x6ac5, 0x459e, \
{ 0x8a, 0x64, 0x03, 0x3e, 0xb9, 0xad, 0x77, 0x0a }}
class NS_NO_VTABLE nsIPrintSettingsWin : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRINTSETTINGSWIN_IID)
/* [noscript] attribute AString deviceName; */
NS_IMETHOD GetDeviceName(nsAString& aDeviceName) = 0;
NS_IMETHOD SetDeviceName(const nsAString& aDeviceName) = 0;
/* [noscript] attribute AString driverName; */
NS_IMETHOD GetDriverName(nsAString& aDriverName) = 0;
NS_IMETHOD SetDriverName(const nsAString& aDriverName) = 0;
/* [noscript] attribute nsDevMode devMode; */
NS_IMETHOD GetDevMode(DEVMODEW * * aDevMode) = 0;
NS_IMETHOD SetDevMode(DEVMODEW * aDevMode) = 0;
/* [notxpcom] void copyFromNative (in nsHdc hdc, in nsDevMode devMode); */
NS_IMETHOD_(void) CopyFromNative(HDC hdc, DEVMODEW * devMode) = 0;
/* [notxpcom] void copyToNative (in nsDevMode devMode); */
NS_IMETHOD_(void) CopyToNative(DEVMODEW * devMode) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIPrintSettingsWin, NS_IPRINTSETTINGSWIN_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPRINTSETTINGSWIN \
NS_IMETHOD GetDeviceName(nsAString& aDeviceName) override; \
NS_IMETHOD SetDeviceName(const nsAString& aDeviceName) override; \
NS_IMETHOD GetDriverName(nsAString& aDriverName) override; \
NS_IMETHOD SetDriverName(const nsAString& aDriverName) override; \
NS_IMETHOD GetDevMode(DEVMODEW * * aDevMode) override; \
NS_IMETHOD SetDevMode(DEVMODEW * aDevMode) override; \
NS_IMETHOD_(void) CopyFromNative(HDC hdc, DEVMODEW * devMode) override; \
NS_IMETHOD_(void) CopyToNative(DEVMODEW * devMode) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIPRINTSETTINGSWIN \
nsresult GetDeviceName(nsAString& aDeviceName); \
nsresult SetDeviceName(const nsAString& aDeviceName); \
nsresult GetDriverName(nsAString& aDriverName); \
nsresult SetDriverName(const nsAString& aDriverName); \
nsresult GetDevMode(DEVMODEW * * aDevMode); \
nsresult SetDevMode(DEVMODEW * aDevMode); \
nsresult_(void) CopyFromNative(HDC hdc, DEVMODEW * devMode); \
nsresult_(void) CopyToNative(DEVMODEW * devMode);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPRINTSETTINGSWIN(_to) \
NS_IMETHOD GetDeviceName(nsAString& aDeviceName) override { return _to GetDeviceName(aDeviceName); } \
NS_IMETHOD SetDeviceName(const nsAString& aDeviceName) override { return _to SetDeviceName(aDeviceName); } \
NS_IMETHOD GetDriverName(nsAString& aDriverName) override { return _to GetDriverName(aDriverName); } \
NS_IMETHOD SetDriverName(const nsAString& aDriverName) override { return _to SetDriverName(aDriverName); } \
NS_IMETHOD GetDevMode(DEVMODEW * * aDevMode) override { return _to GetDevMode(aDevMode); } \
NS_IMETHOD SetDevMode(DEVMODEW * aDevMode) override { return _to SetDevMode(aDevMode); } \
NS_IMETHOD_(void) CopyFromNative(HDC hdc, DEVMODEW * devMode) override { return _to CopyFromNative(hdc, devMode); } \
NS_IMETHOD_(void) CopyToNative(DEVMODEW * devMode) override { return _to CopyToNative(devMode); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPRINTSETTINGSWIN(_to) \
NS_IMETHOD GetDeviceName(nsAString& aDeviceName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDeviceName(aDeviceName); } \
NS_IMETHOD SetDeviceName(const nsAString& aDeviceName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDeviceName(aDeviceName); } \
NS_IMETHOD GetDriverName(nsAString& aDriverName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDriverName(aDriverName); } \
NS_IMETHOD SetDriverName(const nsAString& aDriverName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDriverName(aDriverName); } \
NS_IMETHOD GetDevMode(DEVMODEW * * aDevMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDevMode(aDevMode); } \
NS_IMETHOD SetDevMode(DEVMODEW * aDevMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDevMode(aDevMode); } \
NS_IMETHOD_(void) CopyFromNative(HDC hdc, DEVMODEW * devMode) override; \
NS_IMETHOD_(void) CopyToNative(DEVMODEW * devMode) override;
#endif /* __gen_nsIPrintSettingsWin_h__ */