Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIContentViewerContainer.idl
3 : */
4 :
5 : #ifndef __gen_nsIContentViewerContainer_h__
6 : #define __gen_nsIContentViewerContainer_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 nsIContentViewer; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIContentViewerContainer */
21 : #define NS_ICONTENTVIEWERCONTAINER_IID_STR "ea2ce7a0-5c3d-11d4-90c2-0050041caf44"
22 :
23 : #define NS_ICONTENTVIEWERCONTAINER_IID \
24 : {0xea2ce7a0, 0x5c3d, 0x11d4, \
25 : { 0x90, 0xc2, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44 }}
26 :
27 5 : class NS_NO_VTABLE nsIContentViewerContainer : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTVIEWERCONTAINER_IID)
31 :
32 : /* void embed (in nsIContentViewer aDocViewer, in string aCommand, in nsISupports aExtraInfo); */
33 : NS_IMETHOD Embed(nsIContentViewer *aDocViewer, const char * aCommand, nsISupports *aExtraInfo) = 0;
34 :
35 : /* void setIsPrinting (in boolean aIsPrinting); */
36 : NS_IMETHOD SetIsPrinting(bool aIsPrinting) = 0;
37 :
38 : };
39 :
40 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentViewerContainer, NS_ICONTENTVIEWERCONTAINER_IID)
41 :
42 : /* Use this macro when declaring classes that implement this interface. */
43 : #define NS_DECL_NSICONTENTVIEWERCONTAINER \
44 : NS_IMETHOD Embed(nsIContentViewer *aDocViewer, const char * aCommand, nsISupports *aExtraInfo) override; \
45 : NS_IMETHOD SetIsPrinting(bool aIsPrinting) override;
46 :
47 : /* Use this macro when declaring the members of this interface when the
48 : class doesn't implement the interface. This is useful for forwarding. */
49 : #define NS_DECL_NON_VIRTUAL_NSICONTENTVIEWERCONTAINER \
50 : nsresult Embed(nsIContentViewer *aDocViewer, const char * aCommand, nsISupports *aExtraInfo); \
51 : nsresult SetIsPrinting(bool aIsPrinting);
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
54 : #define NS_FORWARD_NSICONTENTVIEWERCONTAINER(_to) \
55 : NS_IMETHOD Embed(nsIContentViewer *aDocViewer, const char * aCommand, nsISupports *aExtraInfo) override { return _to Embed(aDocViewer, aCommand, aExtraInfo); } \
56 : NS_IMETHOD SetIsPrinting(bool aIsPrinting) override { return _to SetIsPrinting(aIsPrinting); }
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
59 : #define NS_FORWARD_SAFE_NSICONTENTVIEWERCONTAINER(_to) \
60 : NS_IMETHOD Embed(nsIContentViewer *aDocViewer, const char * aCommand, nsISupports *aExtraInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Embed(aDocViewer, aCommand, aExtraInfo); } \
61 : NS_IMETHOD SetIsPrinting(bool aIsPrinting) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsPrinting(aIsPrinting); }
62 :
63 : #if 0
64 : /* Use the code below as a template for the implementation class for this interface. */
65 :
66 : /* Header file */
67 : class nsContentViewerContainer : public nsIContentViewerContainer
68 : {
69 : public:
70 : NS_DECL_ISUPPORTS
71 : NS_DECL_NSICONTENTVIEWERCONTAINER
72 :
73 : nsContentViewerContainer();
74 :
75 : private:
76 : ~nsContentViewerContainer();
77 :
78 : protected:
79 : /* additional members */
80 : };
81 :
82 : /* Implementation file */
83 : NS_IMPL_ISUPPORTS(nsContentViewerContainer, nsIContentViewerContainer)
84 :
85 : nsContentViewerContainer::nsContentViewerContainer()
86 : {
87 : /* member initializers and constructor code */
88 : }
89 :
90 : nsContentViewerContainer::~nsContentViewerContainer()
91 : {
92 : /* destructor code */
93 : }
94 :
95 : /* void embed (in nsIContentViewer aDocViewer, in string aCommand, in nsISupports aExtraInfo); */
96 : NS_IMETHODIMP nsContentViewerContainer::Embed(nsIContentViewer *aDocViewer, const char * aCommand, nsISupports *aExtraInfo)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* void setIsPrinting (in boolean aIsPrinting); */
102 : NS_IMETHODIMP nsContentViewerContainer::SetIsPrinting(bool aIsPrinting)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* End of implementation class template. */
108 : #endif
109 :
110 :
111 : #endif /* __gen_nsIContentViewerContainer_h__ */
|