PageRenderTime 54ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/mozilla/mozilla/dist/include/xuldoc/nsIController.h

http://kmbrasil.codeplex.com
C++ Header | 331 lines | 189 code | 83 blank | 59 comment | 0 complexity | 103e68b5e324a7a92f64c0b229e1a18f MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, GPL-2.0
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM h:/projects/mozilla/mozilla/content/xul/document/public/nsIController.idl
  3. */
  4. #ifndef __gen_nsIController_h__
  5. #define __gen_nsIController_h__
  6. #ifndef __gen_nsISupports_h__
  7. #include "nsISupports.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. /* starting interface: nsIController */
  14. #define NS_ICONTROLLER_IID_STR "d5b61b82-1da4-11d3-bf87-00105a1b0627"
  15. #define NS_ICONTROLLER_IID \
  16. {0xd5b61b82, 0x1da4, 0x11d3, \
  17. { 0xbf, 0x87, 0x00, 0x10, 0x5a, 0x1b, 0x06, 0x27 }}
  18. class NS_NO_VTABLE nsIController : public nsISupports {
  19. public:
  20. NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICONTROLLER_IID)
  21. /* boolean isCommandEnabled (in string command); */
  22. NS_IMETHOD IsCommandEnabled(const char *command, PRBool *_retval) = 0;
  23. /* boolean supportsCommand (in string command); */
  24. NS_IMETHOD SupportsCommand(const char *command, PRBool *_retval) = 0;
  25. /* void doCommand (in string command); */
  26. NS_IMETHOD DoCommand(const char *command) = 0;
  27. /* void onEvent (in string eventName); */
  28. NS_IMETHOD OnEvent(const char *eventName) = 0;
  29. };
  30. /* Use this macro when declaring classes that implement this interface. */
  31. #define NS_DECL_NSICONTROLLER \
  32. NS_IMETHOD IsCommandEnabled(const char *command, PRBool *_retval); \
  33. NS_IMETHOD SupportsCommand(const char *command, PRBool *_retval); \
  34. NS_IMETHOD DoCommand(const char *command); \
  35. NS_IMETHOD OnEvent(const char *eventName);
  36. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  37. #define NS_FORWARD_NSICONTROLLER(_to) \
  38. NS_IMETHOD IsCommandEnabled(const char *command, PRBool *_retval) { return _to IsCommandEnabled(command, _retval); } \
  39. NS_IMETHOD SupportsCommand(const char *command, PRBool *_retval) { return _to SupportsCommand(command, _retval); } \
  40. NS_IMETHOD DoCommand(const char *command) { return _to DoCommand(command); } \
  41. NS_IMETHOD OnEvent(const char *eventName) { return _to OnEvent(eventName); }
  42. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  43. #define NS_FORWARD_SAFE_NSICONTROLLER(_to) \
  44. NS_IMETHOD IsCommandEnabled(const char *command, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCommandEnabled(command, _retval); } \
  45. NS_IMETHOD SupportsCommand(const char *command, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SupportsCommand(command, _retval); } \
  46. NS_IMETHOD DoCommand(const char *command) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommand(command); } \
  47. NS_IMETHOD OnEvent(const char *eventName) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnEvent(eventName); }
  48. #if 0
  49. /* Use the code below as a template for the implementation class for this interface. */
  50. /* Header file */
  51. class nsController : public nsIController
  52. {
  53. public:
  54. NS_DECL_ISUPPORTS
  55. NS_DECL_NSICONTROLLER
  56. nsController();
  57. private:
  58. ~nsController();
  59. protected:
  60. /* additional members */
  61. };
  62. /* Implementation file */
  63. NS_IMPL_ISUPPORTS1(nsController, nsIController)
  64. nsController::nsController()
  65. {
  66. /* member initializers and constructor code */
  67. }
  68. nsController::~nsController()
  69. {
  70. /* destructor code */
  71. }
  72. /* boolean isCommandEnabled (in string command); */
  73. NS_IMETHODIMP nsController::IsCommandEnabled(const char *command, PRBool *_retval)
  74. {
  75. return NS_ERROR_NOT_IMPLEMENTED;
  76. }
  77. /* boolean supportsCommand (in string command); */
  78. NS_IMETHODIMP nsController::SupportsCommand(const char *command, PRBool *_retval)
  79. {
  80. return NS_ERROR_NOT_IMPLEMENTED;
  81. }
  82. /* void doCommand (in string command); */
  83. NS_IMETHODIMP nsController::DoCommand(const char *command)
  84. {
  85. return NS_ERROR_NOT_IMPLEMENTED;
  86. }
  87. /* void onEvent (in string eventName); */
  88. NS_IMETHODIMP nsController::OnEvent(const char *eventName)
  89. {
  90. return NS_ERROR_NOT_IMPLEMENTED;
  91. }
  92. /* End of implementation class template. */
  93. #endif
  94. class nsICommandParams; /* forward declaration */
  95. /* starting interface: nsICommandController */
  96. #define NS_ICOMMANDCONTROLLER_IID_STR "ebe55080-c8a9-11d5-a73c-dd620d6e04bc"
  97. #define NS_ICOMMANDCONTROLLER_IID \
  98. {0xebe55080, 0xc8a9, 0x11d5, \
  99. { 0xa7, 0x3c, 0xdd, 0x62, 0x0d, 0x6e, 0x04, 0xbc }}
  100. class NS_NO_VTABLE nsICommandController : public nsISupports {
  101. public:
  102. NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICOMMANDCONTROLLER_IID)
  103. /* void getCommandStateWithParams (in string command, in nsICommandParams aCommandParams); */
  104. NS_IMETHOD GetCommandStateWithParams(const char *command, nsICommandParams *aCommandParams) = 0;
  105. /* void doCommandWithParams (in string command, in nsICommandParams aCommandParams); */
  106. NS_IMETHOD DoCommandWithParams(const char *command, nsICommandParams *aCommandParams) = 0;
  107. };
  108. /* Use this macro when declaring classes that implement this interface. */
  109. #define NS_DECL_NSICOMMANDCONTROLLER \
  110. NS_IMETHOD GetCommandStateWithParams(const char *command, nsICommandParams *aCommandParams); \
  111. NS_IMETHOD DoCommandWithParams(const char *command, nsICommandParams *aCommandParams);
  112. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  113. #define NS_FORWARD_NSICOMMANDCONTROLLER(_to) \
  114. NS_IMETHOD GetCommandStateWithParams(const char *command, nsICommandParams *aCommandParams) { return _to GetCommandStateWithParams(command, aCommandParams); } \
  115. NS_IMETHOD DoCommandWithParams(const char *command, nsICommandParams *aCommandParams) { return _to DoCommandWithParams(command, aCommandParams); }
  116. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  117. #define NS_FORWARD_SAFE_NSICOMMANDCONTROLLER(_to) \
  118. NS_IMETHOD GetCommandStateWithParams(const char *command, nsICommandParams *aCommandParams) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommandStateWithParams(command, aCommandParams); } \
  119. NS_IMETHOD DoCommandWithParams(const char *command, nsICommandParams *aCommandParams) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommandWithParams(command, aCommandParams); }
  120. #if 0
  121. /* Use the code below as a template for the implementation class for this interface. */
  122. /* Header file */
  123. class nsCommandController : public nsICommandController
  124. {
  125. public:
  126. NS_DECL_ISUPPORTS
  127. NS_DECL_NSICOMMANDCONTROLLER
  128. nsCommandController();
  129. private:
  130. ~nsCommandController();
  131. protected:
  132. /* additional members */
  133. };
  134. /* Implementation file */
  135. NS_IMPL_ISUPPORTS1(nsCommandController, nsICommandController)
  136. nsCommandController::nsCommandController()
  137. {
  138. /* member initializers and constructor code */
  139. }
  140. nsCommandController::~nsCommandController()
  141. {
  142. /* destructor code */
  143. }
  144. /* void getCommandStateWithParams (in string command, in nsICommandParams aCommandParams); */
  145. NS_IMETHODIMP nsCommandController::GetCommandStateWithParams(const char *command, nsICommandParams *aCommandParams)
  146. {
  147. return NS_ERROR_NOT_IMPLEMENTED;
  148. }
  149. /* void doCommandWithParams (in string command, in nsICommandParams aCommandParams); */
  150. NS_IMETHODIMP nsCommandController::DoCommandWithParams(const char *command, nsICommandParams *aCommandParams)
  151. {
  152. return NS_ERROR_NOT_IMPLEMENTED;
  153. }
  154. /* End of implementation class template. */
  155. #endif
  156. class nsISimpleEnumerator; /* forward declaration */
  157. /* starting interface: nsIControllerCommandGroup */
  158. #define NS_ICONTROLLERCOMMANDGROUP_IID_STR "9f82c404-1c7b-11d5-a73c-eca43ca836fc"
  159. #define NS_ICONTROLLERCOMMANDGROUP_IID \
  160. {0x9f82c404, 0x1c7b, 0x11d5, \
  161. { 0xa7, 0x3c, 0xec, 0xa4, 0x3c, 0xa8, 0x36, 0xfc }}
  162. class NS_NO_VTABLE nsIControllerCommandGroup : public nsISupports {
  163. public:
  164. NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICONTROLLERCOMMANDGROUP_IID)
  165. /* void addCommandToGroup (in string aCommand, in string aGroup); */
  166. NS_IMETHOD AddCommandToGroup(const char *aCommand, const char *aGroup) = 0;
  167. /* void removeCommandFromGroup (in string aCommand, in string aGroup); */
  168. NS_IMETHOD RemoveCommandFromGroup(const char *aCommand, const char *aGroup) = 0;
  169. /* boolean isCommandInGroup (in string aCommand, in string aGroup); */
  170. NS_IMETHOD IsCommandInGroup(const char *aCommand, const char *aGroup, PRBool *_retval) = 0;
  171. /* nsISimpleEnumerator getGroupsEnumerator (); */
  172. NS_IMETHOD GetGroupsEnumerator(nsISimpleEnumerator **_retval) = 0;
  173. /* nsISimpleEnumerator getEnumeratorForGroup (in string aGroup); */
  174. NS_IMETHOD GetEnumeratorForGroup(const char *aGroup, nsISimpleEnumerator **_retval) = 0;
  175. };
  176. /* Use this macro when declaring classes that implement this interface. */
  177. #define NS_DECL_NSICONTROLLERCOMMANDGROUP \
  178. NS_IMETHOD AddCommandToGroup(const char *aCommand, const char *aGroup); \
  179. NS_IMETHOD RemoveCommandFromGroup(const char *aCommand, const char *aGroup); \
  180. NS_IMETHOD IsCommandInGroup(const char *aCommand, const char *aGroup, PRBool *_retval); \
  181. NS_IMETHOD GetGroupsEnumerator(nsISimpleEnumerator **_retval); \
  182. NS_IMETHOD GetEnumeratorForGroup(const char *aGroup, nsISimpleEnumerator **_retval);
  183. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  184. #define NS_FORWARD_NSICONTROLLERCOMMANDGROUP(_to) \
  185. NS_IMETHOD AddCommandToGroup(const char *aCommand, const char *aGroup) { return _to AddCommandToGroup(aCommand, aGroup); } \
  186. NS_IMETHOD RemoveCommandFromGroup(const char *aCommand, const char *aGroup) { return _to RemoveCommandFromGroup(aCommand, aGroup); } \
  187. NS_IMETHOD IsCommandInGroup(const char *aCommand, const char *aGroup, PRBool *_retval) { return _to IsCommandInGroup(aCommand, aGroup, _retval); } \
  188. NS_IMETHOD GetGroupsEnumerator(nsISimpleEnumerator **_retval) { return _to GetGroupsEnumerator(_retval); } \
  189. NS_IMETHOD GetEnumeratorForGroup(const char *aGroup, nsISimpleEnumerator **_retval) { return _to GetEnumeratorForGroup(aGroup, _retval); }
  190. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  191. #define NS_FORWARD_SAFE_NSICONTROLLERCOMMANDGROUP(_to) \
  192. NS_IMETHOD AddCommandToGroup(const char *aCommand, const char *aGroup) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCommandToGroup(aCommand, aGroup); } \
  193. NS_IMETHOD RemoveCommandFromGroup(const char *aCommand, const char *aGroup) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveCommandFromGroup(aCommand, aGroup); } \
  194. NS_IMETHOD IsCommandInGroup(const char *aCommand, const char *aGroup, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCommandInGroup(aCommand, aGroup, _retval); } \
  195. NS_IMETHOD GetGroupsEnumerator(nsISimpleEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGroupsEnumerator(_retval); } \
  196. NS_IMETHOD GetEnumeratorForGroup(const char *aGroup, nsISimpleEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnumeratorForGroup(aGroup, _retval); }
  197. #if 0
  198. /* Use the code below as a template for the implementation class for this interface. */
  199. /* Header file */
  200. class nsControllerCommandGroup : public nsIControllerCommandGroup
  201. {
  202. public:
  203. NS_DECL_ISUPPORTS
  204. NS_DECL_NSICONTROLLERCOMMANDGROUP
  205. nsControllerCommandGroup();
  206. private:
  207. ~nsControllerCommandGroup();
  208. protected:
  209. /* additional members */
  210. };
  211. /* Implementation file */
  212. NS_IMPL_ISUPPORTS1(nsControllerCommandGroup, nsIControllerCommandGroup)
  213. nsControllerCommandGroup::nsControllerCommandGroup()
  214. {
  215. /* member initializers and constructor code */
  216. }
  217. nsControllerCommandGroup::~nsControllerCommandGroup()
  218. {
  219. /* destructor code */
  220. }
  221. /* void addCommandToGroup (in string aCommand, in string aGroup); */
  222. NS_IMETHODIMP nsControllerCommandGroup::AddCommandToGroup(const char *aCommand, const char *aGroup)
  223. {
  224. return NS_ERROR_NOT_IMPLEMENTED;
  225. }
  226. /* void removeCommandFromGroup (in string aCommand, in string aGroup); */
  227. NS_IMETHODIMP nsControllerCommandGroup::RemoveCommandFromGroup(const char *aCommand, const char *aGroup)
  228. {
  229. return NS_ERROR_NOT_IMPLEMENTED;
  230. }
  231. /* boolean isCommandInGroup (in string aCommand, in string aGroup); */
  232. NS_IMETHODIMP nsControllerCommandGroup::IsCommandInGroup(const char *aCommand, const char *aGroup, PRBool *_retval)
  233. {
  234. return NS_ERROR_NOT_IMPLEMENTED;
  235. }
  236. /* nsISimpleEnumerator getGroupsEnumerator (); */
  237. NS_IMETHODIMP nsControllerCommandGroup::GetGroupsEnumerator(nsISimpleEnumerator **_retval)
  238. {
  239. return NS_ERROR_NOT_IMPLEMENTED;
  240. }
  241. /* nsISimpleEnumerator getEnumeratorForGroup (in string aGroup); */
  242. NS_IMETHODIMP nsControllerCommandGroup::GetEnumeratorForGroup(const char *aGroup, nsISimpleEnumerator **_retval)
  243. {
  244. return NS_ERROR_NOT_IMPLEMENTED;
  245. }
  246. /* End of implementation class template. */
  247. #endif
  248. #endif /* __gen_nsIController_h__ */