|
|
|
|
| 36 |
|
36 |
|
| 37 |
#include "mozSpellChecker.h" |
37 |
#include "mozSpellChecker.h" |
| 38 |
#include "nsIServiceManager.h" |
38 |
#include "nsIServiceManager.h" |
| 39 |
#include "mozISpellI18NManager.h" |
39 |
#include "mozISpellI18NManager.h" |
| 40 |
#include "nsIStringEnumerator.h" |
40 |
#include "nsIStringEnumerator.h" |
| 41 |
#include "nsICategoryManager.h" |
41 |
#include "nsICategoryManager.h" |
| 42 |
#include "nsISupportsPrimitives.h" |
42 |
#include "nsISupportsPrimitives.h" |
| 43 |
|
43 |
|
| 44 |
#define UNREASONABLE_WORD_LENGTH 64 |
44 |
// The number 130 more or less comes out of thin air. |
|
|
45 |
// See https://bugzilla.mozilla.org/show_bug.cgi?id=355178#c78 for a pseudo-rationale. |
| 46 |
#define UNREASONABLE_WORD_LENGTH 130 |
| 45 |
|
47 |
|
| 46 |
#define DEFAULT_SPELL_CHECKER "@mozilla.org/spellchecker/engine;1" |
48 |
#define DEFAULT_SPELL_CHECKER "@mozilla.org/spellchecker/engine;1" |
| 47 |
|
49 |
|
| 48 |
NS_IMPL_CYCLE_COLLECTING_ADDREF(mozSpellChecker) |
50 |
NS_IMPL_CYCLE_COLLECTING_ADDREF(mozSpellChecker) |
| 49 |
NS_IMPL_CYCLE_COLLECTING_RELEASE(mozSpellChecker) |
51 |
NS_IMPL_CYCLE_COLLECTING_RELEASE(mozSpellChecker) |
| 50 |
|
52 |
|
| 51 |
NS_INTERFACE_MAP_BEGIN(mozSpellChecker) |
53 |
NS_INTERFACE_MAP_BEGIN(mozSpellChecker) |
| 52 |
NS_INTERFACE_MAP_ENTRY(nsISpellChecker) |
54 |
NS_INTERFACE_MAP_ENTRY(nsISpellChecker) |