nsIDOMBarProp.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/base/nsIDOMBarProp.idl
  3. */
  4. #ifndef __gen_nsIDOMBarProp_h__
  5. #define __gen_nsIDOMBarProp_h__
  6. #ifndef __gen_domstubs_h__
  7. #include "domstubs.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: nsIDOMBarProp */
  14. #define NS_IDOMBARPROP_IID_STR "9eb2c150-1d56-11d3-8221-0060083a0bcf"
  15. #define NS_IDOMBARPROP_IID \
  16. {0x9eb2c150, 0x1d56, 0x11d3, \
  17. { 0x82, 0x21, 0x00, 0x60, 0x08, 0x3a, 0x0b, 0xcf }}
  18. class NS_NO_VTABLE nsIDOMBarProp : public nsISupports {
  19. public:
  20. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMBARPROP_IID)
  21. /**
  22. * The nsIDOMBarProp interface is the interface for controlling and
  23. * accessing the visibility of certain UI items (scrollbars, menubars,
  24. * toolbars, ...) through the DOM.
  25. *
  26. * @status FROZEN
  27. */
  28. /* attribute boolean visible; */
  29. NS_IMETHOD GetVisible(PRBool *aVisible) = 0;
  30. NS_IMETHOD SetVisible(PRBool aVisible) = 0;
  31. };
  32. /* Use this macro when declaring classes that implement this interface. */
  33. #define NS_DECL_NSIDOMBARPROP \
  34. NS_IMETHOD GetVisible(PRBool *aVisible); \
  35. NS_IMETHOD SetVisible(PRBool aVisible);
  36. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  37. #define NS_FORWARD_NSIDOMBARPROP(_to) \
  38. NS_IMETHOD GetVisible(PRBool *aVisible) { return _to GetVisible(aVisible); } \
  39. NS_IMETHOD SetVisible(PRBool aVisible) { return _to SetVisible(aVisible); }
  40. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  41. #define NS_FORWARD_SAFE_NSIDOMBARPROP(_to) \
  42. NS_IMETHOD GetVisible(PRBool *aVisible) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVisible(aVisible); } \
  43. NS_IMETHOD SetVisible(PRBool aVisible) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetVisible(aVisible); }
  44. #if 0
  45. /* Use the code below as a template for the implementation class for this interface. */
  46. /* Header file */
  47. class nsDOMBarProp : public nsIDOMBarProp
  48. {
  49. public:
  50. NS_DECL_ISUPPORTS
  51. NS_DECL_NSIDOMBARPROP
  52. nsDOMBarProp();
  53. private:
  54. ~nsDOMBarProp();
  55. protected:
  56. /* additional members */
  57. };
  58. /* Implementation file */
  59. NS_IMPL_ISUPPORTS1(nsDOMBarProp, nsIDOMBarProp)
  60. nsDOMBarProp::nsDOMBarProp()
  61. {
  62. /* member initializers and constructor code */
  63. }
  64. nsDOMBarProp::~nsDOMBarProp()
  65. {
  66. /* destructor code */
  67. }
  68. /* attribute boolean visible; */
  69. NS_IMETHODIMP nsDOMBarProp::GetVisible(PRBool *aVisible)
  70. {
  71. return NS_ERROR_NOT_IMPLEMENTED;
  72. }
  73. NS_IMETHODIMP nsDOMBarProp::SetVisible(PRBool aVisible)
  74. {
  75. return NS_ERROR_NOT_IMPLEMENTED;
  76. }
  77. /* End of implementation class template. */
  78. #endif
  79. #endif /* __gen_nsIDOMBarProp_h__ */