DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/comm-central/editor/nsIEditorMailSupport.idl
 */

#ifndef __gen_nsIEditorMailSupport_h__
#define __gen_nsIEditorMailSupport_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIArray; /* forward declaration */

class nsINode; /* webidl Node */


/* starting interface:    nsIEditorMailSupport */
#define NS_IEDITORMAILSUPPORT_IID_STR "fdf23301-4a94-11d3-9ce4-9960496c41bc"

#define NS_IEDITORMAILSUPPORT_IID \
  {0xfdf23301, 0x4a94, 0x11d3, \
    { 0x9c, 0xe4, 0x99, 0x60, 0x49, 0x6c, 0x41, 0xbc }}

class NS_NO_VTABLE nsIEditorMailSupport : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEDITORMAILSUPPORT_IID)

  /* void pasteAsQuotation (in long aSelectionType); */
  NS_IMETHOD PasteAsQuotation(int32_t aSelectionType) = 0;

  /* Node insertAsQuotation (in AString aQuotedText); */
  NS_IMETHOD InsertAsQuotation(const nsAString& aQuotedText, nsINode **_retval) = 0;

  /* void insertTextWithQuotations (in DOMString aStringToInsert); */
  NS_IMETHOD InsertTextWithQuotations(const nsAString& aStringToInsert) = 0;

  /* Node insertAsCitedQuotation (in AString aQuotedText, in AString aCitation, in boolean aInsertHTML); */
  NS_IMETHOD InsertAsCitedQuotation(const nsAString& aQuotedText, const nsAString& aCitation, bool aInsertHTML, nsINode **_retval) = 0;

  /* void rewrap (in boolean aRespectNewlines); */
  NS_IMETHOD Rewrap(bool aRespectNewlines) = 0;

  /* nsIArray getEmbeddedObjects (); */
  NS_IMETHOD GetEmbeddedObjects(nsIArray **_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIEditorMailSupport, NS_IEDITORMAILSUPPORT_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIEDITORMAILSUPPORT \
  NS_IMETHOD PasteAsQuotation(int32_t aSelectionType) override; \
  NS_IMETHOD InsertAsQuotation(const nsAString& aQuotedText, nsINode **_retval) override; \
  NS_IMETHOD InsertTextWithQuotations(const nsAString& aStringToInsert) override; \
  NS_IMETHOD InsertAsCitedQuotation(const nsAString& aQuotedText, const nsAString& aCitation, bool aInsertHTML, nsINode **_retval) override; \
  NS_IMETHOD Rewrap(bool aRespectNewlines) override; \
  NS_IMETHOD GetEmbeddedObjects(nsIArray **_retval) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIEDITORMAILSUPPORT \
  nsresult PasteAsQuotation(int32_t aSelectionType); \
  nsresult InsertAsQuotation(const nsAString& aQuotedText, nsINode **_retval); \
  nsresult InsertTextWithQuotations(const nsAString& aStringToInsert); \
  nsresult InsertAsCitedQuotation(const nsAString& aQuotedText, const nsAString& aCitation, bool aInsertHTML, nsINode **_retval); \
  nsresult Rewrap(bool aRespectNewlines); \
  nsresult GetEmbeddedObjects(nsIArray **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIEDITORMAILSUPPORT(_to) \
  NS_IMETHOD PasteAsQuotation(int32_t aSelectionType) override { return _to PasteAsQuotation(aSelectionType); } \
  NS_IMETHOD InsertAsQuotation(const nsAString& aQuotedText, nsINode **_retval) override { return _to InsertAsQuotation(aQuotedText, _retval); } \
  NS_IMETHOD InsertTextWithQuotations(const nsAString& aStringToInsert) override { return _to InsertTextWithQuotations(aStringToInsert); } \
  NS_IMETHOD InsertAsCitedQuotation(const nsAString& aQuotedText, const nsAString& aCitation, bool aInsertHTML, nsINode **_retval) override { return _to InsertAsCitedQuotation(aQuotedText, aCitation, aInsertHTML, _retval); } \
  NS_IMETHOD Rewrap(bool aRespectNewlines) override { return _to Rewrap(aRespectNewlines); } \
  NS_IMETHOD GetEmbeddedObjects(nsIArray **_retval) override { return _to GetEmbeddedObjects(_retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIEDITORMAILSUPPORT(_to) \
  NS_IMETHOD PasteAsQuotation(int32_t aSelectionType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PasteAsQuotation(aSelectionType); } \
  NS_IMETHOD InsertAsQuotation(const nsAString& aQuotedText, nsINode **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertAsQuotation(aQuotedText, _retval); } \
  NS_IMETHOD InsertTextWithQuotations(const nsAString& aStringToInsert) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertTextWithQuotations(aStringToInsert); } \
  NS_IMETHOD InsertAsCitedQuotation(const nsAString& aQuotedText, const nsAString& aCitation, bool aInsertHTML, nsINode **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertAsCitedQuotation(aQuotedText, aCitation, aInsertHTML, _retval); } \
  NS_IMETHOD Rewrap(bool aRespectNewlines) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Rewrap(aRespectNewlines); } \
  NS_IMETHOD GetEmbeddedObjects(nsIArray **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEmbeddedObjects(_retval); } 


#endif /* __gen_nsIEditorMailSupport_h__ */