Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsIPrintDialogService.idl
*/
#ifndef __gen_nsIPrintDialogService_h__
#define __gen_nsIPrintDialogService_h__
#include "nsISupports.h"
#include "nsIWebProgressListener.h"
#include "nsIPrintSettings.h"
#include "nsIObserver.h"
#include "js/GCAnnotations.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class mozIDOMWindowProxy; /* forward declaration */
/* starting interface: nsIPrintDialogService */
#define NS_IPRINTDIALOGSERVICE_IID_STR "88af6712-a9fd-4393-9af3-3ffbb1f2caaf"
#define NS_IPRINTDIALOGSERVICE_IID \
{0x88af6712, 0xa9fd, 0x4393, \
{ 0x9a, 0xf3, 0x3f, 0xfb, 0xb1, 0xf2, 0xca, 0xaf }}
class NS_NO_VTABLE nsIPrintDialogService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRINTDIALOGSERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIPrintDialogService;
/* void init (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Init(void) = 0;
/* void showPrintDialog (in mozIDOMWindowProxy aParent, in boolean aHaveSelection, in nsIPrintSettings aPrintSettings); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ShowPrintDialog(mozIDOMWindowProxy *aParent, bool aHaveSelection, nsIPrintSettings *aPrintSettings) = 0;
/* void showPageSetupDialog (in mozIDOMWindowProxy aParent, in nsIPrintSettings aPrintSettings); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ShowPageSetupDialog(mozIDOMWindowProxy *aParent, nsIPrintSettings *aPrintSettings) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIPrintDialogService, NS_IPRINTDIALOGSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPRINTDIALOGSERVICE \
NS_IMETHOD Init(void) override; \
NS_IMETHOD ShowPrintDialog(mozIDOMWindowProxy *aParent, bool aHaveSelection, nsIPrintSettings *aPrintSettings) override; \
NS_IMETHOD ShowPageSetupDialog(mozIDOMWindowProxy *aParent, nsIPrintSettings *aPrintSettings) 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_NSIPRINTDIALOGSERVICE \
nsresult Init(void); \
nsresult ShowPrintDialog(mozIDOMWindowProxy *aParent, bool aHaveSelection, nsIPrintSettings *aPrintSettings); \
nsresult ShowPageSetupDialog(mozIDOMWindowProxy *aParent, nsIPrintSettings *aPrintSettings);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPRINTDIALOGSERVICE(_to) \
NS_IMETHOD Init(void) override { return _to Init(); } \
NS_IMETHOD ShowPrintDialog(mozIDOMWindowProxy *aParent, bool aHaveSelection, nsIPrintSettings *aPrintSettings) override { return _to ShowPrintDialog(aParent, aHaveSelection, aPrintSettings); } \
NS_IMETHOD ShowPageSetupDialog(mozIDOMWindowProxy *aParent, nsIPrintSettings *aPrintSettings) override { return _to ShowPageSetupDialog(aParent, aPrintSettings); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPRINTDIALOGSERVICE(_to) \
NS_IMETHOD Init(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(); } \
NS_IMETHOD ShowPrintDialog(mozIDOMWindowProxy *aParent, bool aHaveSelection, nsIPrintSettings *aPrintSettings) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowPrintDialog(aParent, aHaveSelection, aPrintSettings); } \
NS_IMETHOD ShowPageSetupDialog(mozIDOMWindowProxy *aParent, nsIPrintSettings *aPrintSettings) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowPageSetupDialog(aParent, aPrintSettings); }
#endif /* __gen_nsIPrintDialogService_h__ */