Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIContentViewerFile.idl
3 : */
4 :
5 : #ifndef __gen_nsIContentViewerFile_h__
6 : #define __gen_nsIContentViewerFile_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 : class nsIDOMWindow; /* forward declaration */
18 :
19 : class nsIPrintSettings; /* forward declaration */
20 :
21 : class nsIWebProgressListener; /* forward declaration */
22 :
23 : #include <stdio.h>
24 :
25 : /* starting interface: nsIContentViewerFile */
26 : #define NS_ICONTENTVIEWERFILE_IID_STR "564a3276-6228-401e-9b5c-d82cb382a60f"
27 :
28 : #define NS_ICONTENTVIEWERFILE_IID \
29 : {0x564a3276, 0x6228, 0x401e, \
30 : { 0x9b, 0x5c, 0xd8, 0x2c, 0xb3, 0x82, 0xa6, 0x0f }}
31 :
32 29 : class NS_NO_VTABLE nsIContentViewerFile : public nsISupports {
33 : public:
34 :
35 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTVIEWERFILE_IID)
36 :
37 : /* readonly attribute boolean printable; */
38 : NS_IMETHOD GetPrintable(bool *aPrintable) = 0;
39 :
40 : /* [noscript] void print (in boolean aSilent, in FILE aDebugFile, in nsIPrintSettings aPrintSettings); */
41 : NS_IMETHOD Print(bool aSilent, FILE *aDebugFile, nsIPrintSettings *aPrintSettings) = 0;
42 :
43 : };
44 :
45 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentViewerFile, NS_ICONTENTVIEWERFILE_IID)
46 :
47 : /* Use this macro when declaring classes that implement this interface. */
48 : #define NS_DECL_NSICONTENTVIEWERFILE \
49 : NS_IMETHOD GetPrintable(bool *aPrintable) override; \
50 : NS_IMETHOD Print(bool aSilent, FILE *aDebugFile, nsIPrintSettings *aPrintSettings) override;
51 :
52 : /* Use this macro when declaring the members of this interface when the
53 : class doesn't implement the interface. This is useful for forwarding. */
54 : #define NS_DECL_NON_VIRTUAL_NSICONTENTVIEWERFILE \
55 : nsresult GetPrintable(bool *aPrintable); \
56 : nsresult Print(bool aSilent, FILE *aDebugFile, nsIPrintSettings *aPrintSettings);
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
59 : #define NS_FORWARD_NSICONTENTVIEWERFILE(_to) \
60 : NS_IMETHOD GetPrintable(bool *aPrintable) override { return _to GetPrintable(aPrintable); } \
61 : NS_IMETHOD Print(bool aSilent, FILE *aDebugFile, nsIPrintSettings *aPrintSettings) override { return _to Print(aSilent, aDebugFile, aPrintSettings); }
62 :
63 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
64 : #define NS_FORWARD_SAFE_NSICONTENTVIEWERFILE(_to) \
65 : NS_IMETHOD GetPrintable(bool *aPrintable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintable(aPrintable); } \
66 : NS_IMETHOD Print(bool aSilent, FILE *aDebugFile, nsIPrintSettings *aPrintSettings) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Print(aSilent, aDebugFile, aPrintSettings); }
67 :
68 : #if 0
69 : /* Use the code below as a template for the implementation class for this interface. */
70 :
71 : /* Header file */
72 : class nsContentViewerFile : public nsIContentViewerFile
73 : {
74 : public:
75 : NS_DECL_ISUPPORTS
76 : NS_DECL_NSICONTENTVIEWERFILE
77 :
78 : nsContentViewerFile();
79 :
80 : private:
81 : ~nsContentViewerFile();
82 :
83 : protected:
84 : /* additional members */
85 : };
86 :
87 : /* Implementation file */
88 : NS_IMPL_ISUPPORTS(nsContentViewerFile, nsIContentViewerFile)
89 :
90 : nsContentViewerFile::nsContentViewerFile()
91 : {
92 : /* member initializers and constructor code */
93 : }
94 :
95 : nsContentViewerFile::~nsContentViewerFile()
96 : {
97 : /* destructor code */
98 : }
99 :
100 : /* readonly attribute boolean printable; */
101 : NS_IMETHODIMP nsContentViewerFile::GetPrintable(bool *aPrintable)
102 : {
103 : return NS_ERROR_NOT_IMPLEMENTED;
104 : }
105 :
106 : /* [noscript] void print (in boolean aSilent, in FILE aDebugFile, in nsIPrintSettings aPrintSettings); */
107 : NS_IMETHODIMP nsContentViewerFile::Print(bool aSilent, FILE *aDebugFile, nsIPrintSettings *aPrintSettings)
108 : {
109 : return NS_ERROR_NOT_IMPLEMENTED;
110 : }
111 :
112 : /* End of implementation class template. */
113 : #endif
114 :
115 :
116 : #endif /* __gen_nsIContentViewerFile_h__ */
|