Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIEditorObserver.idl
3 : */
4 :
5 : #ifndef __gen_nsIEditorObserver_h__
6 : #define __gen_nsIEditorObserver_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 :
18 : /* starting interface: nsIEditorObserver */
19 : #define NS_IEDITOROBSERVER_IID_STR "f3ee57a6-890c-4ce0-a584-8a84bba0292e"
20 :
21 : #define NS_IEDITOROBSERVER_IID \
22 : {0xf3ee57a6, 0x890c, 0x4ce0, \
23 : { 0xa5, 0x84, 0x8a, 0x84, 0xbb, 0xa0, 0x29, 0x2e }}
24 :
25 4 : class NS_NO_VTABLE nsIEditorObserver : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEDITOROBSERVER_IID)
29 :
30 : /* void EditAction (); */
31 : NS_IMETHOD EditAction(void) = 0;
32 :
33 : /* void BeforeEditAction (); */
34 : NS_IMETHOD BeforeEditAction(void) = 0;
35 :
36 : /* void CancelEditAction (); */
37 : NS_IMETHOD CancelEditAction(void) = 0;
38 :
39 : };
40 :
41 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIEditorObserver, NS_IEDITOROBSERVER_IID)
42 :
43 : /* Use this macro when declaring classes that implement this interface. */
44 : #define NS_DECL_NSIEDITOROBSERVER \
45 : NS_IMETHOD EditAction(void) override; \
46 : NS_IMETHOD BeforeEditAction(void) override; \
47 : NS_IMETHOD CancelEditAction(void) override;
48 :
49 : /* Use this macro when declaring the members of this interface when the
50 : class doesn't implement the interface. This is useful for forwarding. */
51 : #define NS_DECL_NON_VIRTUAL_NSIEDITOROBSERVER \
52 : nsresult EditAction(void); \
53 : nsresult BeforeEditAction(void); \
54 : nsresult CancelEditAction(void);
55 :
56 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
57 : #define NS_FORWARD_NSIEDITOROBSERVER(_to) \
58 : NS_IMETHOD EditAction(void) override { return _to EditAction(); } \
59 : NS_IMETHOD BeforeEditAction(void) override { return _to BeforeEditAction(); } \
60 : NS_IMETHOD CancelEditAction(void) override { return _to CancelEditAction(); }
61 :
62 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
63 : #define NS_FORWARD_SAFE_NSIEDITOROBSERVER(_to) \
64 : NS_IMETHOD EditAction(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EditAction(); } \
65 : NS_IMETHOD BeforeEditAction(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->BeforeEditAction(); } \
66 : NS_IMETHOD CancelEditAction(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CancelEditAction(); }
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 nsEditorObserver : public nsIEditorObserver
73 : {
74 : public:
75 : NS_DECL_ISUPPORTS
76 : NS_DECL_NSIEDITOROBSERVER
77 :
78 : nsEditorObserver();
79 :
80 : private:
81 : ~nsEditorObserver();
82 :
83 : protected:
84 : /* additional members */
85 : };
86 :
87 : /* Implementation file */
88 : NS_IMPL_ISUPPORTS(nsEditorObserver, nsIEditorObserver)
89 :
90 : nsEditorObserver::nsEditorObserver()
91 : {
92 : /* member initializers and constructor code */
93 : }
94 :
95 : nsEditorObserver::~nsEditorObserver()
96 : {
97 : /* destructor code */
98 : }
99 :
100 : /* void EditAction (); */
101 : NS_IMETHODIMP nsEditorObserver::EditAction()
102 : {
103 : return NS_ERROR_NOT_IMPLEMENTED;
104 : }
105 :
106 : /* void BeforeEditAction (); */
107 : NS_IMETHODIMP nsEditorObserver::BeforeEditAction()
108 : {
109 : return NS_ERROR_NOT_IMPLEMENTED;
110 : }
111 :
112 : /* void CancelEditAction (); */
113 : NS_IMETHODIMP nsEditorObserver::CancelEditAction()
114 : {
115 : return NS_ERROR_NOT_IMPLEMENTED;
116 : }
117 :
118 : /* End of implementation class template. */
119 : #endif
120 :
121 :
122 : #endif /* __gen_nsIEditorObserver_h__ */
|