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 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/extensions/spellcheck/idl/mozISpellCheckingEngine.idl
 */

#ifndef __gen_mozISpellCheckingEngine_h__
#define __gen_mozISpellCheckingEngine_h__


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

#include "js/GCAnnotations.h"

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

class nsIURI; /* forward declaration */

class mozIPersonalDictionary; /* forward declaration */


/* starting interface:    mozISpellCheckingEngine */
#define MOZISPELLCHECKINGENGINE_IID_STR "8ba643a4-7ddc-4662-b976-7ec123843f10"

#define MOZISPELLCHECKINGENGINE_IID \
  {0x8ba643a4, 0x7ddc, 0x4662, \
    { 0xb9, 0x76, 0x7e, 0xc1, 0x23, 0x84, 0x3f, 0x10 }}

class NS_NO_VTABLE mozISpellCheckingEngine : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(MOZISPELLCHECKINGENGINE_IID)

  /* attribute AString dictionary; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDictionary(nsAString& aDictionary) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDictionary(const nsAString& aDictionary) = 0;

  /* attribute mozIPersonalDictionary personalDictionary; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPersonalDictionary(mozIPersonalDictionary **aPersonalDictionary) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetPersonalDictionary(mozIPersonalDictionary *aPersonalDictionary) = 0;

  /* void getDictionaryList ([array, size_is (count)] out wstring dictionaries, out uint32_t count); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDictionaryList(char16_t * **dictionaries, uint32_t *count) = 0;

  /* boolean check (in AString word); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Check(const nsAString& word, bool *_retval) = 0;

  /* void suggest (in AString word, [array, size_is (count)] out wstring suggestions, out uint32_t count); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Suggest(const nsAString& word, char16_t * **suggestions, uint32_t *count) = 0;

  /* void loadDictionariesFromDir (in nsIFile dir); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD LoadDictionariesFromDir(nsIFile *dir) = 0;

  /* void addDirectory (in nsIFile dir); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddDirectory(nsIFile *dir) = 0;

  /* void removeDirectory (in nsIFile dir); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveDirectory(nsIFile *dir) = 0;

  /* void addDictionary (in AString lang, in nsIURI file); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddDictionary(const nsAString& lang, nsIURI *file) = 0;

  /* bool removeDictionary (in AString lang, in nsIURI file); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveDictionary(const nsAString& lang, nsIURI *file, bool *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(mozISpellCheckingEngine, MOZISPELLCHECKINGENGINE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_MOZISPELLCHECKINGENGINE \
  NS_IMETHOD GetDictionary(nsAString& aDictionary) override; \
  NS_IMETHOD SetDictionary(const nsAString& aDictionary) override; \
  NS_IMETHOD GetPersonalDictionary(mozIPersonalDictionary **aPersonalDictionary) override; \
  NS_IMETHOD SetPersonalDictionary(mozIPersonalDictionary *aPersonalDictionary) override; \
  NS_IMETHOD GetDictionaryList(char16_t * **dictionaries, uint32_t *count) override; \
  NS_IMETHOD Check(const nsAString& word, bool *_retval) override; \
  NS_IMETHOD Suggest(const nsAString& word, char16_t * **suggestions, uint32_t *count) override; \
  NS_IMETHOD LoadDictionariesFromDir(nsIFile *dir) override; \
  NS_IMETHOD AddDirectory(nsIFile *dir) override; \
  NS_IMETHOD RemoveDirectory(nsIFile *dir) override; \
  NS_IMETHOD AddDictionary(const nsAString& lang, nsIURI *file) override; \
  NS_IMETHOD RemoveDictionary(const nsAString& lang, nsIURI *file, bool *_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_MOZISPELLCHECKINGENGINE \
  nsresult GetDictionary(nsAString& aDictionary); \
  nsresult SetDictionary(const nsAString& aDictionary); \
  nsresult GetPersonalDictionary(mozIPersonalDictionary **aPersonalDictionary); \
  nsresult SetPersonalDictionary(mozIPersonalDictionary *aPersonalDictionary); \
  nsresult GetDictionaryList(char16_t * **dictionaries, uint32_t *count); \
  nsresult Check(const nsAString& word, bool *_retval); \
  nsresult Suggest(const nsAString& word, char16_t * **suggestions, uint32_t *count); \
  nsresult LoadDictionariesFromDir(nsIFile *dir); \
  nsresult AddDirectory(nsIFile *dir); \
  nsresult RemoveDirectory(nsIFile *dir); \
  nsresult AddDictionary(const nsAString& lang, nsIURI *file); \
  nsresult RemoveDictionary(const nsAString& lang, nsIURI *file, bool *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_MOZISPELLCHECKINGENGINE(_to) \
  NS_IMETHOD GetDictionary(nsAString& aDictionary) override { return _to GetDictionary(aDictionary); } \
  NS_IMETHOD SetDictionary(const nsAString& aDictionary) override { return _to SetDictionary(aDictionary); } \
  NS_IMETHOD GetPersonalDictionary(mozIPersonalDictionary **aPersonalDictionary) override { return _to GetPersonalDictionary(aPersonalDictionary); } \
  NS_IMETHOD SetPersonalDictionary(mozIPersonalDictionary *aPersonalDictionary) override { return _to SetPersonalDictionary(aPersonalDictionary); } \
  NS_IMETHOD GetDictionaryList(char16_t * **dictionaries, uint32_t *count) override { return _to GetDictionaryList(dictionaries, count); } \
  NS_IMETHOD Check(const nsAString& word, bool *_retval) override { return _to Check(word, _retval); } \
  NS_IMETHOD Suggest(const nsAString& word, char16_t * **suggestions, uint32_t *count) override { return _to Suggest(word, suggestions, count); } \
  NS_IMETHOD LoadDictionariesFromDir(nsIFile *dir) override { return _to LoadDictionariesFromDir(dir); } \
  NS_IMETHOD AddDirectory(nsIFile *dir) override { return _to AddDirectory(dir); } \
  NS_IMETHOD RemoveDirectory(nsIFile *dir) override { return _to RemoveDirectory(dir); } \
  NS_IMETHOD AddDictionary(const nsAString& lang, nsIURI *file) override { return _to AddDictionary(lang, file); } \
  NS_IMETHOD RemoveDictionary(const nsAString& lang, nsIURI *file, bool *_retval) override { return _to RemoveDictionary(lang, file, _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_MOZISPELLCHECKINGENGINE(_to) \
  NS_IMETHOD GetDictionary(nsAString& aDictionary) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDictionary(aDictionary); } \
  NS_IMETHOD SetDictionary(const nsAString& aDictionary) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDictionary(aDictionary); } \
  NS_IMETHOD GetPersonalDictionary(mozIPersonalDictionary **aPersonalDictionary) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPersonalDictionary(aPersonalDictionary); } \
  NS_IMETHOD SetPersonalDictionary(mozIPersonalDictionary *aPersonalDictionary) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPersonalDictionary(aPersonalDictionary); } \
  NS_IMETHOD GetDictionaryList(char16_t * **dictionaries, uint32_t *count) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDictionaryList(dictionaries, count); } \
  NS_IMETHOD Check(const nsAString& word, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Check(word, _retval); } \
  NS_IMETHOD Suggest(const nsAString& word, char16_t * **suggestions, uint32_t *count) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Suggest(word, suggestions, count); } \
  NS_IMETHOD LoadDictionariesFromDir(nsIFile *dir) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadDictionariesFromDir(dir); } \
  NS_IMETHOD AddDirectory(nsIFile *dir) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddDirectory(dir); } \
  NS_IMETHOD RemoveDirectory(nsIFile *dir) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveDirectory(dir); } \
  NS_IMETHOD AddDictionary(const nsAString& lang, nsIURI *file) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddDictionary(lang, file); } \
  NS_IMETHOD RemoveDictionary(const nsAString& lang, nsIURI *file, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveDictionary(lang, file, _retval); } 

#define SPELLCHECK_DICTIONARY_REMOVE_NOTIFICATION \
  "spellcheck-dictionary-remove"

#endif /* __gen_mozISpellCheckingEngine_h__ */