/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM e:/builds/moz2_slave/m-cen-w32-xr/build/dom/interfaces/core/nsIDOMCaretPosition.idl
 */

#ifndef __gen_nsIDOMCaretPosition_h__
#define __gen_nsIDOMCaretPosition_h__


#ifndef __gen_nsIDOMNode_h__
#include "nsIDOMNode.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    nsIDOMCaretPosition */
#define NS_IDOMCARETPOSITION_IID_STR "cf5ad6cf-6f49-4ca7-9b50-590d7bb27a13"

#define NS_IDOMCARETPOSITION_IID \
  {0xcf5ad6cf, 0x6f49, 0x4ca7, \
    { 0x9b, 0x50, 0x59, 0x0d, 0x7b, 0xb2, 0x7a, 0x13 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMCaretPosition : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCARETPOSITION_IID)

  /* readonly attribute nsIDOMNode offsetNode; */
  NS_SCRIPTABLE NS_IMETHOD GetOffsetNode(nsIDOMNode * *aOffsetNode) = 0;

  /* readonly attribute unsigned long offset; */
  NS_SCRIPTABLE NS_IMETHOD GetOffset(PRUint32 *aOffset) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCaretPosition, NS_IDOMCARETPOSITION_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMCARETPOSITION \
  NS_SCRIPTABLE NS_IMETHOD GetOffsetNode(nsIDOMNode * *aOffsetNode); \
  NS_SCRIPTABLE NS_IMETHOD GetOffset(PRUint32 *aOffset); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMCARETPOSITION(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetOffsetNode(nsIDOMNode * *aOffsetNode) { return _to GetOffsetNode(aOffsetNode); } \
  NS_SCRIPTABLE NS_IMETHOD GetOffset(PRUint32 *aOffset) { return _to GetOffset(aOffset); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMCARETPOSITION(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetOffsetNode(nsIDOMNode * *aOffsetNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOffsetNode(aOffsetNode); } \
  NS_SCRIPTABLE NS_IMETHOD GetOffset(PRUint32 *aOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOffset(aOffset); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsDOMCaretPosition : public nsIDOMCaretPosition
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIDOMCARETPOSITION

  nsDOMCaretPosition();

private:
  ~nsDOMCaretPosition();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMCaretPosition, nsIDOMCaretPosition)

nsDOMCaretPosition::nsDOMCaretPosition()
{
  /* member initializers and constructor code */
}

nsDOMCaretPosition::~nsDOMCaretPosition()
{
  /* destructor code */
}

/* readonly attribute nsIDOMNode offsetNode; */
NS_IMETHODIMP nsDOMCaretPosition::GetOffsetNode(nsIDOMNode * *aOffsetNode)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long offset; */
NS_IMETHODIMP nsDOMCaretPosition::GetOffset(PRUint32 *aOffset)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIDOMCaretPosition_h__ */
