Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIClipboardHelper.idl
3 : */
4 :
5 : #ifndef __gen_nsIClipboardHelper_h__
6 : #define __gen_nsIClipboardHelper_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIClipboard_h__
14 : #include "nsIClipboard.h"
15 : #endif
16 :
17 : /* For IDL files that don't want to include root IDL files. */
18 : #ifndef NS_NO_VTABLE
19 : #define NS_NO_VTABLE
20 : #endif
21 : #include "nsString.h" // needed for AString -> nsAString, unfortunately
22 : class nsIDOMDocument; /* forward declaration */
23 :
24 :
25 : /* starting interface: nsIClipboardHelper */
26 : #define NS_ICLIPBOARDHELPER_IID_STR "438307fd-0c68-4d79-922a-f6cc9550cd02"
27 :
28 : #define NS_ICLIPBOARDHELPER_IID \
29 : {0x438307fd, 0x0c68, 0x4d79, \
30 : { 0x92, 0x2a, 0xf6, 0xcc, 0x95, 0x50, 0xcd, 0x02 }}
31 :
32 0 : class NS_NO_VTABLE nsIClipboardHelper : public nsISupports {
33 : public:
34 :
35 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICLIPBOARDHELPER_IID)
36 :
37 : /* void copyStringToClipboard (in AString aString, in long aClipboardID); */
38 : NS_IMETHOD CopyStringToClipboard(const nsAString & aString, int32_t aClipboardID) = 0;
39 :
40 : /* void copyString (in AString aString); */
41 : NS_IMETHOD CopyString(const nsAString & aString) = 0;
42 :
43 : };
44 :
45 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIClipboardHelper, NS_ICLIPBOARDHELPER_IID)
46 :
47 : /* Use this macro when declaring classes that implement this interface. */
48 : #define NS_DECL_NSICLIPBOARDHELPER \
49 : NS_IMETHOD CopyStringToClipboard(const nsAString & aString, int32_t aClipboardID) override; \
50 : NS_IMETHOD CopyString(const nsAString & aString) override;
51 :
52 : /* Use this macro when declaring the members of this interface when the
53 : class doesn't implement the interface. This is useful for forwarding. */
54 : #define NS_DECL_NON_VIRTUAL_NSICLIPBOARDHELPER \
55 : nsresult CopyStringToClipboard(const nsAString & aString, int32_t aClipboardID); \
56 : nsresult CopyString(const nsAString & aString);
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
59 : #define NS_FORWARD_NSICLIPBOARDHELPER(_to) \
60 : NS_IMETHOD CopyStringToClipboard(const nsAString & aString, int32_t aClipboardID) override { return _to CopyStringToClipboard(aString, aClipboardID); } \
61 : NS_IMETHOD CopyString(const nsAString & aString) override { return _to CopyString(aString); }
62 :
63 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
64 : #define NS_FORWARD_SAFE_NSICLIPBOARDHELPER(_to) \
65 : NS_IMETHOD CopyStringToClipboard(const nsAString & aString, int32_t aClipboardID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyStringToClipboard(aString, aClipboardID); } \
66 : NS_IMETHOD CopyString(const nsAString & aString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyString(aString); }
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 nsClipboardHelper : public nsIClipboardHelper
73 : {
74 : public:
75 : NS_DECL_ISUPPORTS
76 : NS_DECL_NSICLIPBOARDHELPER
77 :
78 : nsClipboardHelper();
79 :
80 : private:
81 : ~nsClipboardHelper();
82 :
83 : protected:
84 : /* additional members */
85 : };
86 :
87 : /* Implementation file */
88 : NS_IMPL_ISUPPORTS(nsClipboardHelper, nsIClipboardHelper)
89 :
90 : nsClipboardHelper::nsClipboardHelper()
91 : {
92 : /* member initializers and constructor code */
93 : }
94 :
95 : nsClipboardHelper::~nsClipboardHelper()
96 : {
97 : /* destructor code */
98 : }
99 :
100 : /* void copyStringToClipboard (in AString aString, in long aClipboardID); */
101 : NS_IMETHODIMP nsClipboardHelper::CopyStringToClipboard(const nsAString & aString, int32_t aClipboardID)
102 : {
103 : return NS_ERROR_NOT_IMPLEMENTED;
104 : }
105 :
106 : /* void copyString (in AString aString); */
107 : NS_IMETHODIMP nsClipboardHelper::CopyString(const nsAString & aString)
108 : {
109 : return NS_ERROR_NOT_IMPLEMENTED;
110 : }
111 :
112 : /* End of implementation class template. */
113 : #endif
114 :
115 :
116 : #endif /* __gen_nsIClipboardHelper_h__ */
|