1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/docshell/base/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 : #ifndef __gen_nsIPrintSettings_h__
14 : #include "nsIPrintSettings.h"
15 : #endif
16 :
17 : /* For IDL files that don't want to include root IDL files. */
18 : #ifndef NS_NO_VTABLE
19 : #define NS_NO_VTABLE
20 : #endif
21 : class nsIDOMWindow; /* forward declaration */
22 :
23 : class nsIWebProgressListener; /* forward declaration */
24 :
25 : #include <stdio.h>
26 :
27 : /* starting interface: nsIContentViewerFile */
28 : #define NS_ICONTENTVIEWERFILE_IID_STR "1b373597-6132-49f7-940e-6ff62fca5d35"
29 :
30 : #define NS_ICONTENTVIEWERFILE_IID \
31 : {0x1b373597, 0x6132, 0x49f7, \
32 : { 0x94, 0x0e, 0x6f, 0xf6, 0x2f, 0xca, 0x5d, 0x35 }}
33 :
34 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIContentViewerFile : public nsISupports {
35 : public:
36 :
37 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTVIEWERFILE_IID)
38 :
39 : /* readonly attribute boolean printable; */
40 : NS_SCRIPTABLE NS_IMETHOD GetPrintable(bool *aPrintable) = 0;
41 :
42 : /* [noscript] void print (in boolean aSilent, in FILE aDebugFile, in nsIPrintSettings aPrintSettings); */
43 : NS_IMETHOD Print(bool aSilent, FILE *aDebugFile, nsIPrintSettings *aPrintSettings) = 0;
44 :
45 : /* [noscript] void printWithParent (in nsIDOMWindow aParentWin, in nsIPrintSettings aThePrintSettings, in nsIWebProgressListener aWPListener); */
46 : NS_IMETHOD PrintWithParent(nsIDOMWindow *aParentWin, nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener) = 0;
47 :
48 : };
49 :
50 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentViewerFile, NS_ICONTENTVIEWERFILE_IID)
51 :
52 : /* Use this macro when declaring classes that implement this interface. */
53 : #define NS_DECL_NSICONTENTVIEWERFILE \
54 : NS_SCRIPTABLE NS_IMETHOD GetPrintable(bool *aPrintable); \
55 : NS_IMETHOD Print(bool aSilent, FILE *aDebugFile, nsIPrintSettings *aPrintSettings); \
56 : NS_IMETHOD PrintWithParent(nsIDOMWindow *aParentWin, nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
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_SCRIPTABLE NS_IMETHOD GetPrintable(bool *aPrintable) { return _to GetPrintable(aPrintable); } \
61 : NS_IMETHOD Print(bool aSilent, FILE *aDebugFile, nsIPrintSettings *aPrintSettings) { return _to Print(aSilent, aDebugFile, aPrintSettings); } \
62 : NS_IMETHOD PrintWithParent(nsIDOMWindow *aParentWin, nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener) { return _to PrintWithParent(aParentWin, aThePrintSettings, aWPListener); }
63 :
64 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
65 : #define NS_FORWARD_SAFE_NSICONTENTVIEWERFILE(_to) \
66 : NS_SCRIPTABLE NS_IMETHOD GetPrintable(bool *aPrintable) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintable(aPrintable); } \
67 : NS_IMETHOD Print(bool aSilent, FILE *aDebugFile, nsIPrintSettings *aPrintSettings) { return !_to ? NS_ERROR_NULL_POINTER : _to->Print(aSilent, aDebugFile, aPrintSettings); } \
68 : NS_IMETHOD PrintWithParent(nsIDOMWindow *aParentWin, nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->PrintWithParent(aParentWin, aThePrintSettings, aWPListener); }
69 :
70 : #if 0
71 : /* Use the code below as a template for the implementation class for this interface. */
72 :
73 : /* Header file */
74 : class nsContentViewerFile : public nsIContentViewerFile
75 : {
76 : public:
77 : NS_DECL_ISUPPORTS
78 : NS_DECL_NSICONTENTVIEWERFILE
79 :
80 : nsContentViewerFile();
81 :
82 : private:
83 : ~nsContentViewerFile();
84 :
85 : protected:
86 : /* additional members */
87 : };
88 :
89 : /* Implementation file */
90 : NS_IMPL_ISUPPORTS1(nsContentViewerFile, nsIContentViewerFile)
91 :
92 : nsContentViewerFile::nsContentViewerFile()
93 : {
94 : /* member initializers and constructor code */
95 : }
96 :
97 : nsContentViewerFile::~nsContentViewerFile()
98 : {
99 : /* destructor code */
100 : }
101 :
102 : /* readonly attribute boolean printable; */
103 : NS_IMETHODIMP nsContentViewerFile::GetPrintable(bool *aPrintable)
104 : {
105 : return NS_ERROR_NOT_IMPLEMENTED;
106 : }
107 :
108 : /* [noscript] void print (in boolean aSilent, in FILE aDebugFile, in nsIPrintSettings aPrintSettings); */
109 : NS_IMETHODIMP nsContentViewerFile::Print(bool aSilent, FILE *aDebugFile, nsIPrintSettings *aPrintSettings)
110 : {
111 : return NS_ERROR_NOT_IMPLEMENTED;
112 : }
113 :
114 : /* [noscript] void printWithParent (in nsIDOMWindow aParentWin, in nsIPrintSettings aThePrintSettings, in nsIWebProgressListener aWPListener); */
115 : NS_IMETHODIMP nsContentViewerFile::PrintWithParent(nsIDOMWindow *aParentWin, nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener)
116 : {
117 : return NS_ERROR_NOT_IMPLEMENTED;
118 : }
119 :
120 : /* End of implementation class template. */
121 : #endif
122 :
123 :
124 : #endif /* __gen_nsIContentViewerFile_h__ */
|