Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsISelectionListener.idl
3 : */
4 :
5 : #ifndef __gen_nsISelectionListener_h__
6 : #define __gen_nsISelectionListener_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 nsIDOMDocument; /* forward declaration */
18 :
19 : class nsISelection; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsISelectionListener */
23 : #define NS_ISELECTIONLISTENER_IID_STR "45686299-ae2b-46bc-9502-c56c35691ab9"
24 :
25 : #define NS_ISELECTIONLISTENER_IID \
26 : {0x45686299, 0xae2b, 0x46bc, \
27 : { 0x95, 0x02, 0xc5, 0x6c, 0x35, 0x69, 0x1a, 0xb9 }}
28 :
29 94 : class NS_NO_VTABLE nsISelectionListener : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISELECTIONLISTENER_IID)
33 :
34 : enum {
35 : NO_REASON = 0,
36 : DRAG_REASON = 1,
37 : MOUSEDOWN_REASON = 2,
38 : MOUSEUP_REASON = 4,
39 : KEYPRESS_REASON = 8,
40 : SELECTALL_REASON = 16,
41 : COLLAPSETOSTART_REASON = 32,
42 : COLLAPSETOEND_REASON = 64,
43 : IME_REASON = 128
44 : };
45 :
46 : /* void notifySelectionChanged (in nsIDOMDocument doc, in nsISelection sel, in short reason); */
47 : NS_IMETHOD NotifySelectionChanged(nsIDOMDocument *doc, nsISelection *sel, int16_t reason) = 0;
48 :
49 : };
50 :
51 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISelectionListener, NS_ISELECTIONLISTENER_IID)
52 :
53 : /* Use this macro when declaring classes that implement this interface. */
54 : #define NS_DECL_NSISELECTIONLISTENER \
55 : NS_IMETHOD NotifySelectionChanged(nsIDOMDocument *doc, nsISelection *sel, int16_t reason) override;
56 :
57 : /* Use this macro when declaring the members of this interface when the
58 : class doesn't implement the interface. This is useful for forwarding. */
59 : #define NS_DECL_NON_VIRTUAL_NSISELECTIONLISTENER \
60 : nsresult NotifySelectionChanged(nsIDOMDocument *doc, nsISelection *sel, int16_t reason);
61 :
62 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
63 : #define NS_FORWARD_NSISELECTIONLISTENER(_to) \
64 : NS_IMETHOD NotifySelectionChanged(nsIDOMDocument *doc, nsISelection *sel, int16_t reason) override { return _to NotifySelectionChanged(doc, sel, reason); }
65 :
66 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
67 : #define NS_FORWARD_SAFE_NSISELECTIONLISTENER(_to) \
68 : NS_IMETHOD NotifySelectionChanged(nsIDOMDocument *doc, nsISelection *sel, int16_t reason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifySelectionChanged(doc, sel, reason); }
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 nsSelectionListener : public nsISelectionListener
75 : {
76 : public:
77 : NS_DECL_ISUPPORTS
78 : NS_DECL_NSISELECTIONLISTENER
79 :
80 : nsSelectionListener();
81 :
82 : private:
83 : ~nsSelectionListener();
84 :
85 : protected:
86 : /* additional members */
87 : };
88 :
89 : /* Implementation file */
90 : NS_IMPL_ISUPPORTS(nsSelectionListener, nsISelectionListener)
91 :
92 : nsSelectionListener::nsSelectionListener()
93 : {
94 : /* member initializers and constructor code */
95 : }
96 :
97 : nsSelectionListener::~nsSelectionListener()
98 : {
99 : /* destructor code */
100 : }
101 :
102 : /* void notifySelectionChanged (in nsIDOMDocument doc, in nsISelection sel, in short reason); */
103 : NS_IMETHODIMP nsSelectionListener::NotifySelectionChanged(nsIDOMDocument *doc, nsISelection *sel, int16_t reason)
104 : {
105 : return NS_ERROR_NOT_IMPLEMENTED;
106 : }
107 :
108 : /* End of implementation class template. */
109 : #endif
110 :
111 :
112 : #endif /* __gen_nsISelectionListener_h__ */
|