1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/content/base/public/nsISelectionDisplay.idl
3 : */
4 :
5 : #ifndef __gen_nsISelectionDisplay_h__
6 : #define __gen_nsISelectionDisplay_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: nsISelectionDisplay */
19 : #define NS_ISELECTIONDISPLAY_IID_STR "0ddf9e1c-1dd2-11b2-a183-908a08aa75ae"
20 :
21 : #define NS_ISELECTIONDISPLAY_IID \
22 : {0x0ddf9e1c, 0x1dd2, 0x11b2, \
23 : { 0xa1, 0x83, 0x90, 0x8a, 0x08, 0xaa, 0x75, 0xae }}
24 :
25 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsISelectionDisplay : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISELECTIONDISPLAY_IID)
29 :
30 : enum {
31 : DISPLAY_TEXT = 1,
32 : DISPLAY_IMAGES = 2,
33 : DISPLAY_FRAMES = 4,
34 : DISPLAY_ALL = 7
35 : };
36 :
37 : /* void setSelectionFlags (in short toggle); */
38 : NS_SCRIPTABLE NS_IMETHOD SetSelectionFlags(PRInt16 toggle) = 0;
39 :
40 : /* short getSelectionFlags (); */
41 : NS_SCRIPTABLE NS_IMETHOD GetSelectionFlags(PRInt16 *_retval NS_OUTPARAM) = 0;
42 :
43 : };
44 :
45 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISelectionDisplay, NS_ISELECTIONDISPLAY_IID)
46 :
47 : /* Use this macro when declaring classes that implement this interface. */
48 : #define NS_DECL_NSISELECTIONDISPLAY \
49 : NS_SCRIPTABLE NS_IMETHOD SetSelectionFlags(PRInt16 toggle); \
50 : NS_SCRIPTABLE NS_IMETHOD GetSelectionFlags(PRInt16 *_retval NS_OUTPARAM);
51 :
52 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
53 : #define NS_FORWARD_NSISELECTIONDISPLAY(_to) \
54 : NS_SCRIPTABLE NS_IMETHOD SetSelectionFlags(PRInt16 toggle) { return _to SetSelectionFlags(toggle); } \
55 : NS_SCRIPTABLE NS_IMETHOD GetSelectionFlags(PRInt16 *_retval NS_OUTPARAM) { return _to GetSelectionFlags(_retval); }
56 :
57 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
58 : #define NS_FORWARD_SAFE_NSISELECTIONDISPLAY(_to) \
59 : NS_SCRIPTABLE NS_IMETHOD SetSelectionFlags(PRInt16 toggle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectionFlags(toggle); } \
60 : NS_SCRIPTABLE NS_IMETHOD GetSelectionFlags(PRInt16 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionFlags(_retval); }
61 :
62 : #if 0
63 : /* Use the code below as a template for the implementation class for this interface. */
64 :
65 : /* Header file */
66 : class nsSelectionDisplay : public nsISelectionDisplay
67 : {
68 : public:
69 : NS_DECL_ISUPPORTS
70 : NS_DECL_NSISELECTIONDISPLAY
71 :
72 : nsSelectionDisplay();
73 :
74 : private:
75 : ~nsSelectionDisplay();
76 :
77 : protected:
78 : /* additional members */
79 : };
80 :
81 : /* Implementation file */
82 : NS_IMPL_ISUPPORTS1(nsSelectionDisplay, nsISelectionDisplay)
83 :
84 : nsSelectionDisplay::nsSelectionDisplay()
85 : {
86 : /* member initializers and constructor code */
87 : }
88 :
89 : nsSelectionDisplay::~nsSelectionDisplay()
90 : {
91 : /* destructor code */
92 : }
93 :
94 : /* void setSelectionFlags (in short toggle); */
95 : NS_IMETHODIMP nsSelectionDisplay::SetSelectionFlags(PRInt16 toggle)
96 : {
97 : return NS_ERROR_NOT_IMPLEMENTED;
98 : }
99 :
100 : /* short getSelectionFlags (); */
101 : NS_IMETHODIMP nsSelectionDisplay::GetSelectionFlags(PRInt16 *_retval NS_OUTPARAM)
102 : {
103 : return NS_ERROR_NOT_IMPLEMENTED;
104 : }
105 :
106 : /* End of implementation class template. */
107 : #endif
108 :
109 :
110 : #endif /* __gen_nsISelectionDisplay_h__ */
|