Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAccessibleEditableText.idl
3 : */
4 :
5 : #ifndef __gen_nsIAccessibleEditableText_h__
6 : #define __gen_nsIAccessibleEditableText_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: nsIAccessibleEditableText */
19 : #define NS_IACCESSIBLEEDITABLETEXT_IID_STR "28915cca-3366-4034-ba1d-b7afb9b37639"
20 :
21 : #define NS_IACCESSIBLEEDITABLETEXT_IID \
22 : {0x28915cca, 0x3366, 0x4034, \
23 : { 0xba, 0x1d, 0xb7, 0xaf, 0xb9, 0xb3, 0x76, 0x39 }}
24 :
25 0 : class NS_NO_VTABLE nsIAccessibleEditableText : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACCESSIBLEEDITABLETEXT_IID)
29 :
30 : /* void setTextContents (in AString text); */
31 : NS_IMETHOD SetTextContents(const nsAString & text) = 0;
32 :
33 : /* void insertText (in AString text, in long position); */
34 : NS_IMETHOD InsertText(const nsAString & text, int32_t position) = 0;
35 :
36 : /* void copyText (in long startPos, in long endPos); */
37 : NS_IMETHOD CopyText(int32_t startPos, int32_t endPos) = 0;
38 :
39 : /* void cutText (in long startPos, in long endPos); */
40 : NS_IMETHOD CutText(int32_t startPos, int32_t endPos) = 0;
41 :
42 : /* void deleteText (in long startPos, in long endPos); */
43 : NS_IMETHOD DeleteText(int32_t startPos, int32_t endPos) = 0;
44 :
45 : /* void pasteText (in long position); */
46 : NS_IMETHOD PasteText(int32_t position) = 0;
47 :
48 : };
49 :
50 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAccessibleEditableText, NS_IACCESSIBLEEDITABLETEXT_IID)
51 :
52 : /* Use this macro when declaring classes that implement this interface. */
53 : #define NS_DECL_NSIACCESSIBLEEDITABLETEXT \
54 : NS_IMETHOD SetTextContents(const nsAString & text) override; \
55 : NS_IMETHOD InsertText(const nsAString & text, int32_t position) override; \
56 : NS_IMETHOD CopyText(int32_t startPos, int32_t endPos) override; \
57 : NS_IMETHOD CutText(int32_t startPos, int32_t endPos) override; \
58 : NS_IMETHOD DeleteText(int32_t startPos, int32_t endPos) override; \
59 : NS_IMETHOD PasteText(int32_t position) override;
60 :
61 : /* Use this macro when declaring the members of this interface when the
62 : class doesn't implement the interface. This is useful for forwarding. */
63 : #define NS_DECL_NON_VIRTUAL_NSIACCESSIBLEEDITABLETEXT \
64 : nsresult SetTextContents(const nsAString & text); \
65 : nsresult InsertText(const nsAString & text, int32_t position); \
66 : nsresult CopyText(int32_t startPos, int32_t endPos); \
67 : nsresult CutText(int32_t startPos, int32_t endPos); \
68 : nsresult DeleteText(int32_t startPos, int32_t endPos); \
69 : nsresult PasteText(int32_t position);
70 :
71 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
72 : #define NS_FORWARD_NSIACCESSIBLEEDITABLETEXT(_to) \
73 : NS_IMETHOD SetTextContents(const nsAString & text) override { return _to SetTextContents(text); } \
74 : NS_IMETHOD InsertText(const nsAString & text, int32_t position) override { return _to InsertText(text, position); } \
75 : NS_IMETHOD CopyText(int32_t startPos, int32_t endPos) override { return _to CopyText(startPos, endPos); } \
76 : NS_IMETHOD CutText(int32_t startPos, int32_t endPos) override { return _to CutText(startPos, endPos); } \
77 : NS_IMETHOD DeleteText(int32_t startPos, int32_t endPos) override { return _to DeleteText(startPos, endPos); } \
78 : NS_IMETHOD PasteText(int32_t position) override { return _to PasteText(position); }
79 :
80 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
81 : #define NS_FORWARD_SAFE_NSIACCESSIBLEEDITABLETEXT(_to) \
82 : NS_IMETHOD SetTextContents(const nsAString & text) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTextContents(text); } \
83 : NS_IMETHOD InsertText(const nsAString & text, int32_t position) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertText(text, position); } \
84 : NS_IMETHOD CopyText(int32_t startPos, int32_t endPos) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyText(startPos, endPos); } \
85 : NS_IMETHOD CutText(int32_t startPos, int32_t endPos) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CutText(startPos, endPos); } \
86 : NS_IMETHOD DeleteText(int32_t startPos, int32_t endPos) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteText(startPos, endPos); } \
87 : NS_IMETHOD PasteText(int32_t position) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PasteText(position); }
88 :
89 : #if 0
90 : /* Use the code below as a template for the implementation class for this interface. */
91 :
92 : /* Header file */
93 : class nsAccessibleEditableText : public nsIAccessibleEditableText
94 : {
95 : public:
96 : NS_DECL_ISUPPORTS
97 : NS_DECL_NSIACCESSIBLEEDITABLETEXT
98 :
99 : nsAccessibleEditableText();
100 :
101 : private:
102 : ~nsAccessibleEditableText();
103 :
104 : protected:
105 : /* additional members */
106 : };
107 :
108 : /* Implementation file */
109 : NS_IMPL_ISUPPORTS(nsAccessibleEditableText, nsIAccessibleEditableText)
110 :
111 : nsAccessibleEditableText::nsAccessibleEditableText()
112 : {
113 : /* member initializers and constructor code */
114 : }
115 :
116 : nsAccessibleEditableText::~nsAccessibleEditableText()
117 : {
118 : /* destructor code */
119 : }
120 :
121 : /* void setTextContents (in AString text); */
122 : NS_IMETHODIMP nsAccessibleEditableText::SetTextContents(const nsAString & text)
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 :
127 : /* void insertText (in AString text, in long position); */
128 : NS_IMETHODIMP nsAccessibleEditableText::InsertText(const nsAString & text, int32_t position)
129 : {
130 : return NS_ERROR_NOT_IMPLEMENTED;
131 : }
132 :
133 : /* void copyText (in long startPos, in long endPos); */
134 : NS_IMETHODIMP nsAccessibleEditableText::CopyText(int32_t startPos, int32_t endPos)
135 : {
136 : return NS_ERROR_NOT_IMPLEMENTED;
137 : }
138 :
139 : /* void cutText (in long startPos, in long endPos); */
140 : NS_IMETHODIMP nsAccessibleEditableText::CutText(int32_t startPos, int32_t endPos)
141 : {
142 : return NS_ERROR_NOT_IMPLEMENTED;
143 : }
144 :
145 : /* void deleteText (in long startPos, in long endPos); */
146 : NS_IMETHODIMP nsAccessibleEditableText::DeleteText(int32_t startPos, int32_t endPos)
147 : {
148 : return NS_ERROR_NOT_IMPLEMENTED;
149 : }
150 :
151 : /* void pasteText (in long position); */
152 : NS_IMETHODIMP nsAccessibleEditableText::PasteText(int32_t position)
153 : {
154 : return NS_ERROR_NOT_IMPLEMENTED;
155 : }
156 :
157 : /* End of implementation class template. */
158 : #endif
159 :
160 :
161 : #endif /* __gen_nsIAccessibleEditableText_h__ */
|