Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIClipboard.idl
3 : */
4 :
5 : #ifndef __gen_nsIClipboard_h__
6 : #define __gen_nsIClipboard_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsITransferable_h__
14 : #include "nsITransferable.h"
15 : #endif
16 :
17 : #ifndef __gen_nsIClipboardOwner_h__
18 : #include "nsIClipboardOwner.h"
19 : #endif
20 :
21 : /* For IDL files that don't want to include root IDL files. */
22 : #ifndef NS_NO_VTABLE
23 : #define NS_NO_VTABLE
24 : #endif
25 : class nsIArray; /* forward declaration */
26 :
27 :
28 : /* starting interface: nsIClipboard */
29 : #define NS_ICLIPBOARD_IID_STR "ceaa0047-647f-4b8e-ad1c-aff9fa62aa51"
30 :
31 : #define NS_ICLIPBOARD_IID \
32 : {0xceaa0047, 0x647f, 0x4b8e, \
33 : { 0xad, 0x1c, 0xaf, 0xf9, 0xfa, 0x62, 0xaa, 0x51 }}
34 :
35 3 : class NS_NO_VTABLE nsIClipboard : public nsISupports {
36 : public:
37 :
38 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICLIPBOARD_IID)
39 :
40 : enum {
41 : kSelectionClipboard = 0,
42 : kGlobalClipboard = 1,
43 : kFindClipboard = 2,
44 : kSelectionCache = 3
45 : };
46 :
47 : /* void setData (in nsITransferable aTransferable, in nsIClipboardOwner anOwner, in long aWhichClipboard); */
48 : NS_IMETHOD SetData(nsITransferable *aTransferable, nsIClipboardOwner *anOwner, int32_t aWhichClipboard) = 0;
49 :
50 : /* void getData (in nsITransferable aTransferable, in long aWhichClipboard); */
51 : NS_IMETHOD GetData(nsITransferable *aTransferable, int32_t aWhichClipboard) = 0;
52 :
53 : /* void emptyClipboard (in long aWhichClipboard); */
54 : NS_IMETHOD EmptyClipboard(int32_t aWhichClipboard) = 0;
55 :
56 : /* boolean hasDataMatchingFlavors ([array, size_is (aLength)] in string aFlavorList, in unsigned long aLength, in long aWhichClipboard); */
57 : NS_IMETHOD HasDataMatchingFlavors(const char * *aFlavorList, uint32_t aLength, int32_t aWhichClipboard, bool *_retval) = 0;
58 :
59 : /* boolean supportsSelectionClipboard (); */
60 : NS_IMETHOD SupportsSelectionClipboard(bool *_retval) = 0;
61 :
62 : /* boolean supportsFindClipboard (); */
63 : NS_IMETHOD SupportsFindClipboard(bool *_retval) = 0;
64 :
65 : };
66 :
67 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIClipboard, NS_ICLIPBOARD_IID)
68 :
69 : /* Use this macro when declaring classes that implement this interface. */
70 : #define NS_DECL_NSICLIPBOARD \
71 : NS_IMETHOD SetData(nsITransferable *aTransferable, nsIClipboardOwner *anOwner, int32_t aWhichClipboard) override; \
72 : NS_IMETHOD GetData(nsITransferable *aTransferable, int32_t aWhichClipboard) override; \
73 : NS_IMETHOD EmptyClipboard(int32_t aWhichClipboard) override; \
74 : NS_IMETHOD HasDataMatchingFlavors(const char * *aFlavorList, uint32_t aLength, int32_t aWhichClipboard, bool *_retval) override; \
75 : NS_IMETHOD SupportsSelectionClipboard(bool *_retval) override; \
76 : NS_IMETHOD SupportsFindClipboard(bool *_retval) override;
77 :
78 : /* Use this macro when declaring the members of this interface when the
79 : class doesn't implement the interface. This is useful for forwarding. */
80 : #define NS_DECL_NON_VIRTUAL_NSICLIPBOARD \
81 : nsresult SetData(nsITransferable *aTransferable, nsIClipboardOwner *anOwner, int32_t aWhichClipboard); \
82 : nsresult GetData(nsITransferable *aTransferable, int32_t aWhichClipboard); \
83 : nsresult EmptyClipboard(int32_t aWhichClipboard); \
84 : nsresult HasDataMatchingFlavors(const char * *aFlavorList, uint32_t aLength, int32_t aWhichClipboard, bool *_retval); \
85 : nsresult SupportsSelectionClipboard(bool *_retval); \
86 : nsresult SupportsFindClipboard(bool *_retval);
87 :
88 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
89 : #define NS_FORWARD_NSICLIPBOARD(_to) \
90 : NS_IMETHOD SetData(nsITransferable *aTransferable, nsIClipboardOwner *anOwner, int32_t aWhichClipboard) override { return _to SetData(aTransferable, anOwner, aWhichClipboard); } \
91 : NS_IMETHOD GetData(nsITransferable *aTransferable, int32_t aWhichClipboard) override { return _to GetData(aTransferable, aWhichClipboard); } \
92 : NS_IMETHOD EmptyClipboard(int32_t aWhichClipboard) override { return _to EmptyClipboard(aWhichClipboard); } \
93 : NS_IMETHOD HasDataMatchingFlavors(const char * *aFlavorList, uint32_t aLength, int32_t aWhichClipboard, bool *_retval) override { return _to HasDataMatchingFlavors(aFlavorList, aLength, aWhichClipboard, _retval); } \
94 : NS_IMETHOD SupportsSelectionClipboard(bool *_retval) override { return _to SupportsSelectionClipboard(_retval); } \
95 : NS_IMETHOD SupportsFindClipboard(bool *_retval) override { return _to SupportsFindClipboard(_retval); }
96 :
97 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
98 : #define NS_FORWARD_SAFE_NSICLIPBOARD(_to) \
99 : NS_IMETHOD SetData(nsITransferable *aTransferable, nsIClipboardOwner *anOwner, int32_t aWhichClipboard) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aTransferable, anOwner, aWhichClipboard); } \
100 : NS_IMETHOD GetData(nsITransferable *aTransferable, int32_t aWhichClipboard) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aTransferable, aWhichClipboard); } \
101 : NS_IMETHOD EmptyClipboard(int32_t aWhichClipboard) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EmptyClipboard(aWhichClipboard); } \
102 : NS_IMETHOD HasDataMatchingFlavors(const char * *aFlavorList, uint32_t aLength, int32_t aWhichClipboard, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasDataMatchingFlavors(aFlavorList, aLength, aWhichClipboard, _retval); } \
103 : NS_IMETHOD SupportsSelectionClipboard(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SupportsSelectionClipboard(_retval); } \
104 : NS_IMETHOD SupportsFindClipboard(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SupportsFindClipboard(_retval); }
105 :
106 : #if 0
107 : /* Use the code below as a template for the implementation class for this interface. */
108 :
109 : /* Header file */
110 : class nsClipboard : public nsIClipboard
111 : {
112 : public:
113 : NS_DECL_ISUPPORTS
114 : NS_DECL_NSICLIPBOARD
115 :
116 : nsClipboard();
117 :
118 : private:
119 : ~nsClipboard();
120 :
121 : protected:
122 : /* additional members */
123 : };
124 :
125 : /* Implementation file */
126 : NS_IMPL_ISUPPORTS(nsClipboard, nsIClipboard)
127 :
128 : nsClipboard::nsClipboard()
129 : {
130 : /* member initializers and constructor code */
131 : }
132 :
133 : nsClipboard::~nsClipboard()
134 : {
135 : /* destructor code */
136 : }
137 :
138 : /* void setData (in nsITransferable aTransferable, in nsIClipboardOwner anOwner, in long aWhichClipboard); */
139 : NS_IMETHODIMP nsClipboard::SetData(nsITransferable *aTransferable, nsIClipboardOwner *anOwner, int32_t aWhichClipboard)
140 : {
141 : return NS_ERROR_NOT_IMPLEMENTED;
142 : }
143 :
144 : /* void getData (in nsITransferable aTransferable, in long aWhichClipboard); */
145 : NS_IMETHODIMP nsClipboard::GetData(nsITransferable *aTransferable, int32_t aWhichClipboard)
146 : {
147 : return NS_ERROR_NOT_IMPLEMENTED;
148 : }
149 :
150 : /* void emptyClipboard (in long aWhichClipboard); */
151 : NS_IMETHODIMP nsClipboard::EmptyClipboard(int32_t aWhichClipboard)
152 : {
153 : return NS_ERROR_NOT_IMPLEMENTED;
154 : }
155 :
156 : /* boolean hasDataMatchingFlavors ([array, size_is (aLength)] in string aFlavorList, in unsigned long aLength, in long aWhichClipboard); */
157 : NS_IMETHODIMP nsClipboard::HasDataMatchingFlavors(const char * *aFlavorList, uint32_t aLength, int32_t aWhichClipboard, bool *_retval)
158 : {
159 : return NS_ERROR_NOT_IMPLEMENTED;
160 : }
161 :
162 : /* boolean supportsSelectionClipboard (); */
163 : NS_IMETHODIMP nsClipboard::SupportsSelectionClipboard(bool *_retval)
164 : {
165 : return NS_ERROR_NOT_IMPLEMENTED;
166 : }
167 :
168 : /* boolean supportsFindClipboard (); */
169 : NS_IMETHODIMP nsClipboard::SupportsFindClipboard(bool *_retval)
170 : {
171 : return NS_ERROR_NOT_IMPLEMENTED;
172 : }
173 :
174 : /* End of implementation class template. */
175 : #endif
176 :
177 :
178 :
179 : #endif /* __gen_nsIClipboard_h__ */
|