1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/docshell/base/nsIEditorDocShell.idl
3 : */
4 :
5 : #ifndef __gen_nsIEditorDocShell_h__
6 : #define __gen_nsIEditorDocShell_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 nsIEditor; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIEditorDocShell */
21 : #define NS_IEDITORDOCSHELL_IID_STR "3bdb8f01-f141-11d4-a73c-fba4aba8a3fc"
22 :
23 : #define NS_IEDITORDOCSHELL_IID \
24 : {0x3bdb8f01, 0xf141, 0x11d4, \
25 : { 0xa7, 0x3c, 0xfb, 0xa4, 0xab, 0xa8, 0xa3, 0xfc }}
26 :
27 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIEditorDocShell : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEDITORDOCSHELL_IID)
31 :
32 : /* attribute nsIEditor editor; */
33 : NS_SCRIPTABLE NS_IMETHOD GetEditor(nsIEditor * *aEditor) = 0;
34 : NS_SCRIPTABLE NS_IMETHOD SetEditor(nsIEditor *aEditor) = 0;
35 :
36 : /* readonly attribute boolean editable; */
37 : NS_SCRIPTABLE NS_IMETHOD GetEditable(bool *aEditable) = 0;
38 :
39 : /* readonly attribute boolean hasEditingSession; */
40 : NS_SCRIPTABLE NS_IMETHOD GetHasEditingSession(bool *aHasEditingSession) = 0;
41 :
42 : /* void makeEditable (in boolean inWaitForUriLoad); */
43 : NS_SCRIPTABLE NS_IMETHOD MakeEditable(bool inWaitForUriLoad) = 0;
44 :
45 : };
46 :
47 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIEditorDocShell, NS_IEDITORDOCSHELL_IID)
48 :
49 : /* Use this macro when declaring classes that implement this interface. */
50 : #define NS_DECL_NSIEDITORDOCSHELL \
51 : NS_SCRIPTABLE NS_IMETHOD GetEditor(nsIEditor * *aEditor); \
52 : NS_SCRIPTABLE NS_IMETHOD SetEditor(nsIEditor *aEditor); \
53 : NS_SCRIPTABLE NS_IMETHOD GetEditable(bool *aEditable); \
54 : NS_SCRIPTABLE NS_IMETHOD GetHasEditingSession(bool *aHasEditingSession); \
55 : NS_SCRIPTABLE NS_IMETHOD MakeEditable(bool inWaitForUriLoad);
56 :
57 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
58 : #define NS_FORWARD_NSIEDITORDOCSHELL(_to) \
59 : NS_SCRIPTABLE NS_IMETHOD GetEditor(nsIEditor * *aEditor) { return _to GetEditor(aEditor); } \
60 : NS_SCRIPTABLE NS_IMETHOD SetEditor(nsIEditor *aEditor) { return _to SetEditor(aEditor); } \
61 : NS_SCRIPTABLE NS_IMETHOD GetEditable(bool *aEditable) { return _to GetEditable(aEditable); } \
62 : NS_SCRIPTABLE NS_IMETHOD GetHasEditingSession(bool *aHasEditingSession) { return _to GetHasEditingSession(aHasEditingSession); } \
63 : NS_SCRIPTABLE NS_IMETHOD MakeEditable(bool inWaitForUriLoad) { return _to MakeEditable(inWaitForUriLoad); }
64 :
65 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
66 : #define NS_FORWARD_SAFE_NSIEDITORDOCSHELL(_to) \
67 : NS_SCRIPTABLE NS_IMETHOD GetEditor(nsIEditor * *aEditor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEditor(aEditor); } \
68 : NS_SCRIPTABLE NS_IMETHOD SetEditor(nsIEditor *aEditor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEditor(aEditor); } \
69 : NS_SCRIPTABLE NS_IMETHOD GetEditable(bool *aEditable) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEditable(aEditable); } \
70 : NS_SCRIPTABLE NS_IMETHOD GetHasEditingSession(bool *aHasEditingSession) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasEditingSession(aHasEditingSession); } \
71 : NS_SCRIPTABLE NS_IMETHOD MakeEditable(bool inWaitForUriLoad) { return !_to ? NS_ERROR_NULL_POINTER : _to->MakeEditable(inWaitForUriLoad); }
72 :
73 : #if 0
74 : /* Use the code below as a template for the implementation class for this interface. */
75 :
76 : /* Header file */
77 : class nsEditorDocShell : public nsIEditorDocShell
78 : {
79 : public:
80 : NS_DECL_ISUPPORTS
81 : NS_DECL_NSIEDITORDOCSHELL
82 :
83 : nsEditorDocShell();
84 :
85 : private:
86 : ~nsEditorDocShell();
87 :
88 : protected:
89 : /* additional members */
90 : };
91 :
92 : /* Implementation file */
93 : NS_IMPL_ISUPPORTS1(nsEditorDocShell, nsIEditorDocShell)
94 :
95 : nsEditorDocShell::nsEditorDocShell()
96 : {
97 : /* member initializers and constructor code */
98 : }
99 :
100 : nsEditorDocShell::~nsEditorDocShell()
101 : {
102 : /* destructor code */
103 : }
104 :
105 : /* attribute nsIEditor editor; */
106 : NS_IMETHODIMP nsEditorDocShell::GetEditor(nsIEditor * *aEditor)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 : NS_IMETHODIMP nsEditorDocShell::SetEditor(nsIEditor *aEditor)
111 : {
112 : return NS_ERROR_NOT_IMPLEMENTED;
113 : }
114 :
115 : /* readonly attribute boolean editable; */
116 : NS_IMETHODIMP nsEditorDocShell::GetEditable(bool *aEditable)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 :
121 : /* readonly attribute boolean hasEditingSession; */
122 : NS_IMETHODIMP nsEditorDocShell::GetHasEditingSession(bool *aHasEditingSession)
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 :
127 : /* void makeEditable (in boolean inWaitForUriLoad); */
128 : NS_IMETHODIMP nsEditorDocShell::MakeEditable(bool inWaitForUriLoad)
129 : {
130 : return NS_ERROR_NOT_IMPLEMENTED;
131 : }
132 :
133 : /* End of implementation class template. */
134 : #endif
135 :
136 :
137 : #endif /* __gen_nsIEditorDocShell_h__ */
|