/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIClipboardCommands.idl
 */

#ifndef __gen_nsIClipboardCommands_h__
#define __gen_nsIClipboardCommands_h__

#include "nsISupports.h"


/* starting interface:    nsIClipboardCommands */
#define NS_ICLIPBOARDCOMMANDS_IID_STR "b8100c90-73be-11d2-92a5-00105a1b0d64"

#define NS_ICLIPBOARDCOMMANDS_IID \
  {0xb8100c90, 0x73be, 0x11d2, \
    { 0x92, 0xa5, 0x00, 0x10, 0x5a, 0x1b, 0x0d, 0x64 }}

class NS_NO_VTABLE nsIClipboardCommands : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICLIPBOARDCOMMANDS_IID)

  /**
	 * Returns whether there is a selection and it is not read-only.
	 */
  /* boolean canCutSelection (); */
  NS_IMETHOD CanCutSelection(PRBool *_retval) = 0;

  /**
	 * Returns whether there is a selection and it is copyable.
	 */
  /* boolean canCopySelection (); */
  NS_IMETHOD CanCopySelection(PRBool *_retval) = 0;

  /**
	 * Returns whether the current contents of the clipboard can be
	 * pasted and if the current selection is not read-only.
	 */
  /* boolean canPasteSelection (); */
  NS_IMETHOD CanPasteSelection(PRBool *_retval) = 0;

  /**
	 * Cut the current selection onto the clipboard.
	 */
  /* void cutSelection (); */
  NS_IMETHOD CutSelection(void) = 0;

  /**
	 * Copy the current selection onto the clipboard.
	 */
  /* void copySelection (); */
  NS_IMETHOD CopySelection(void) = 0;

  /**
	 * Paste the contents of the clipboard into the current selection.
	 */
  /* void pasteSelection (); */
  NS_IMETHOD PasteSelection(void) = 0;

  /**
	 * Select the entire contents.
	 */
  /* void selectAll (); */
  NS_IMETHOD SelectAll(void) = 0;

  /**
	 * Clear the current selection (if any).
	 */
  /* void selectNone (); */
  NS_IMETHOD SelectNone(void) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICLIPBOARDCOMMANDS \
  NS_IMETHOD CanCutSelection(PRBool *_retval); \
  NS_IMETHOD CanCopySelection(PRBool *_retval); \
  NS_IMETHOD CanPasteSelection(PRBool *_retval); \
  NS_IMETHOD CutSelection(void); \
  NS_IMETHOD CopySelection(void); \
  NS_IMETHOD PasteSelection(void); \
  NS_IMETHOD SelectAll(void); \
  NS_IMETHOD SelectNone(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICLIPBOARDCOMMANDS(_to) \
  NS_IMETHOD CanCutSelection(PRBool *_retval) { return _to ## CanCutSelection(_retval); } \
  NS_IMETHOD CanCopySelection(PRBool *_retval) { return _to ## CanCopySelection(_retval); } \
  NS_IMETHOD CanPasteSelection(PRBool *_retval) { return _to ## CanPasteSelection(_retval); } \
  NS_IMETHOD CutSelection(void) { return _to ## CutSelection(); } \
  NS_IMETHOD CopySelection(void) { return _to ## CopySelection(); } \
  NS_IMETHOD PasteSelection(void) { return _to ## PasteSelection(); } \
  NS_IMETHOD SelectAll(void) { return _to ## SelectAll(); } \
  NS_IMETHOD SelectNone(void) { return _to ## SelectNone(); } 

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

/* Header file */
class nsClipboardCommands : public nsIClipboardCommands
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICLIPBOARDCOMMANDS

  nsClipboardCommands();
  virtual ~nsClipboardCommands();
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsClipboardCommands, nsIClipboardCommands)

nsClipboardCommands::nsClipboardCommands()
{
  NS_INIT_ISUPPORTS();
  /* member initializers and constructor code */
}

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

/* boolean canCutSelection (); */
NS_IMETHODIMP nsClipboardCommands::CanCutSelection(PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean canCopySelection (); */
NS_IMETHODIMP nsClipboardCommands::CanCopySelection(PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean canPasteSelection (); */
NS_IMETHODIMP nsClipboardCommands::CanPasteSelection(PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void cutSelection (); */
NS_IMETHODIMP nsClipboardCommands::CutSelection()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void copySelection (); */
NS_IMETHODIMP nsClipboardCommands::CopySelection()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void pasteSelection (); */
NS_IMETHODIMP nsClipboardCommands::PasteSelection()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void selectAll (); */
NS_IMETHODIMP nsClipboardCommands::SelectAll()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void selectNone (); */
NS_IMETHODIMP nsClipboardCommands::SelectNone()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIClipboardCommands_h__ */
