1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/accessible/public/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 : class nsIEditor; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIAccessibleEditableText */
21 : #define NS_IACCESSIBLEEDITABLETEXT_IID_STR "e242d495-5cde-4b1c-8c84-2525b14939f5"
22 :
23 : #define NS_IACCESSIBLEEDITABLETEXT_IID \
24 : {0xe242d495, 0x5cde, 0x4b1c, \
25 : { 0x8c, 0x84, 0x25, 0x25, 0xb1, 0x49, 0x39, 0xf5 }}
26 :
27 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIAccessibleEditableText : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACCESSIBLEEDITABLETEXT_IID)
31 :
32 : /* void setAttributes (in long startPos, in long endPos, in nsISupports attributes); */
33 : NS_SCRIPTABLE NS_IMETHOD SetAttributes(PRInt32 startPos, PRInt32 endPos, nsISupports *attributes) = 0;
34 :
35 : /* void setTextContents (in AString text); */
36 : NS_SCRIPTABLE NS_IMETHOD SetTextContents(const nsAString & text) = 0;
37 :
38 : /* void insertText (in AString text, in long position); */
39 : NS_SCRIPTABLE NS_IMETHOD InsertText(const nsAString & text, PRInt32 position) = 0;
40 :
41 : /* void copyText (in long startPos, in long endPos); */
42 : NS_SCRIPTABLE NS_IMETHOD CopyText(PRInt32 startPos, PRInt32 endPos) = 0;
43 :
44 : /* void cutText (in long startPos, in long endPos); */
45 : NS_SCRIPTABLE NS_IMETHOD CutText(PRInt32 startPos, PRInt32 endPos) = 0;
46 :
47 : /* void deleteText (in long startPos, in long endPos); */
48 : NS_SCRIPTABLE NS_IMETHOD DeleteText(PRInt32 startPos, PRInt32 endPos) = 0;
49 :
50 : /* void pasteText (in long position); */
51 : NS_SCRIPTABLE NS_IMETHOD PasteText(PRInt32 position) = 0;
52 :
53 : };
54 :
55 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAccessibleEditableText, NS_IACCESSIBLEEDITABLETEXT_IID)
56 :
57 : /* Use this macro when declaring classes that implement this interface. */
58 : #define NS_DECL_NSIACCESSIBLEEDITABLETEXT \
59 : NS_SCRIPTABLE NS_IMETHOD SetAttributes(PRInt32 startPos, PRInt32 endPos, nsISupports *attributes); \
60 : NS_SCRIPTABLE NS_IMETHOD SetTextContents(const nsAString & text); \
61 : NS_SCRIPTABLE NS_IMETHOD InsertText(const nsAString & text, PRInt32 position); \
62 : NS_SCRIPTABLE NS_IMETHOD CopyText(PRInt32 startPos, PRInt32 endPos); \
63 : NS_SCRIPTABLE NS_IMETHOD CutText(PRInt32 startPos, PRInt32 endPos); \
64 : NS_SCRIPTABLE NS_IMETHOD DeleteText(PRInt32 startPos, PRInt32 endPos); \
65 : NS_SCRIPTABLE NS_IMETHOD PasteText(PRInt32 position);
66 :
67 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
68 : #define NS_FORWARD_NSIACCESSIBLEEDITABLETEXT(_to) \
69 : NS_SCRIPTABLE NS_IMETHOD SetAttributes(PRInt32 startPos, PRInt32 endPos, nsISupports *attributes) { return _to SetAttributes(startPos, endPos, attributes); } \
70 : NS_SCRIPTABLE NS_IMETHOD SetTextContents(const nsAString & text) { return _to SetTextContents(text); } \
71 : NS_SCRIPTABLE NS_IMETHOD InsertText(const nsAString & text, PRInt32 position) { return _to InsertText(text, position); } \
72 : NS_SCRIPTABLE NS_IMETHOD CopyText(PRInt32 startPos, PRInt32 endPos) { return _to CopyText(startPos, endPos); } \
73 : NS_SCRIPTABLE NS_IMETHOD CutText(PRInt32 startPos, PRInt32 endPos) { return _to CutText(startPos, endPos); } \
74 : NS_SCRIPTABLE NS_IMETHOD DeleteText(PRInt32 startPos, PRInt32 endPos) { return _to DeleteText(startPos, endPos); } \
75 : NS_SCRIPTABLE NS_IMETHOD PasteText(PRInt32 position) { return _to PasteText(position); }
76 :
77 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
78 : #define NS_FORWARD_SAFE_NSIACCESSIBLEEDITABLETEXT(_to) \
79 : NS_SCRIPTABLE NS_IMETHOD SetAttributes(PRInt32 startPos, PRInt32 endPos, nsISupports *attributes) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAttributes(startPos, endPos, attributes); } \
80 : NS_SCRIPTABLE NS_IMETHOD SetTextContents(const nsAString & text) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTextContents(text); } \
81 : NS_SCRIPTABLE NS_IMETHOD InsertText(const nsAString & text, PRInt32 position) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertText(text, position); } \
82 : NS_SCRIPTABLE NS_IMETHOD CopyText(PRInt32 startPos, PRInt32 endPos) { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyText(startPos, endPos); } \
83 : NS_SCRIPTABLE NS_IMETHOD CutText(PRInt32 startPos, PRInt32 endPos) { return !_to ? NS_ERROR_NULL_POINTER : _to->CutText(startPos, endPos); } \
84 : NS_SCRIPTABLE NS_IMETHOD DeleteText(PRInt32 startPos, PRInt32 endPos) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteText(startPos, endPos); } \
85 : NS_SCRIPTABLE NS_IMETHOD PasteText(PRInt32 position) { return !_to ? NS_ERROR_NULL_POINTER : _to->PasteText(position); }
86 :
87 : #if 0
88 : /* Use the code below as a template for the implementation class for this interface. */
89 :
90 : /* Header file */
91 : class nsAccessibleEditableText : public nsIAccessibleEditableText
92 : {
93 : public:
94 : NS_DECL_ISUPPORTS
95 : NS_DECL_NSIACCESSIBLEEDITABLETEXT
96 :
97 : nsAccessibleEditableText();
98 :
99 : private:
100 : ~nsAccessibleEditableText();
101 :
102 : protected:
103 : /* additional members */
104 : };
105 :
106 : /* Implementation file */
107 : NS_IMPL_ISUPPORTS1(nsAccessibleEditableText, nsIAccessibleEditableText)
108 :
109 : nsAccessibleEditableText::nsAccessibleEditableText()
110 : {
111 : /* member initializers and constructor code */
112 : }
113 :
114 : nsAccessibleEditableText::~nsAccessibleEditableText()
115 : {
116 : /* destructor code */
117 : }
118 :
119 : /* void setAttributes (in long startPos, in long endPos, in nsISupports attributes); */
120 : NS_IMETHODIMP nsAccessibleEditableText::SetAttributes(PRInt32 startPos, PRInt32 endPos, nsISupports *attributes)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 :
125 : /* void setTextContents (in AString text); */
126 : NS_IMETHODIMP nsAccessibleEditableText::SetTextContents(const nsAString & text)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 :
131 : /* void insertText (in AString text, in long position); */
132 : NS_IMETHODIMP nsAccessibleEditableText::InsertText(const nsAString & text, PRInt32 position)
133 : {
134 : return NS_ERROR_NOT_IMPLEMENTED;
135 : }
136 :
137 : /* void copyText (in long startPos, in long endPos); */
138 : NS_IMETHODIMP nsAccessibleEditableText::CopyText(PRInt32 startPos, PRInt32 endPos)
139 : {
140 : return NS_ERROR_NOT_IMPLEMENTED;
141 : }
142 :
143 : /* void cutText (in long startPos, in long endPos); */
144 : NS_IMETHODIMP nsAccessibleEditableText::CutText(PRInt32 startPos, PRInt32 endPos)
145 : {
146 : return NS_ERROR_NOT_IMPLEMENTED;
147 : }
148 :
149 : /* void deleteText (in long startPos, in long endPos); */
150 : NS_IMETHODIMP nsAccessibleEditableText::DeleteText(PRInt32 startPos, PRInt32 endPos)
151 : {
152 : return NS_ERROR_NOT_IMPLEMENTED;
153 : }
154 :
155 : /* void pasteText (in long position); */
156 : NS_IMETHODIMP nsAccessibleEditableText::PasteText(PRInt32 position)
157 : {
158 : return NS_ERROR_NOT_IMPLEMENTED;
159 : }
160 :
161 : /* End of implementation class template. */
162 : #endif
163 :
164 :
165 : #endif /* __gen_nsIAccessibleEditableText_h__ */
|