Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
mozSpellCheckerFactory.cpp File Reference
#include "nsIGenericFactory.h"
#include "mozSpellChecker.h"
#include "mozInlineSpellChecker.h"
#include "nsTextServicesCID.h"
#include "mozPersonalDictionary.h"
#include "mozSpellI18NManager.h"

Go to the source code of this file.

Defines

#define NS_SPELLCHECKER_CID
#define MOZ_INLINESPELLCHECKER_CID

Functions

static NS_IMETHODIMP mozInlineSpellCheckerConstructor (nsISupports *aOuter, REFNSIID aIID, void **aResult)

Variables

static nsModuleComponentInfo components []

Define Documentation

Value:
{ /* 9FE5D975-09BD-44aa-A01A-66402EA28657 */    \
0x9fe5d975, 0x9bd, 0x44aa,                      \
{ 0xa0, 0x1a, 0x66, 0x40, 0x2e, 0xa2, 0x86, 0x57} }

Definition at line 52 of file mozSpellCheckerFactory.cpp.

Value:
{ /* 8227f019-afc7-461e-b030-9f185d7a0e29 */    \
0x8227F019, 0xAFC7, 0x461e,                     \
{ 0xB0, 0x30, 0x9F, 0x18, 0x5D, 0x7A, 0x0E, 0x29} }

Definition at line 47 of file mozSpellCheckerFactory.cpp.


Function Documentation

static NS_IMETHODIMP mozInlineSpellCheckerConstructor ( nsISupports *  aOuter,
REFNSIID  aIID,
void **  aResult 
) [static]

Definition at line 74 of file mozSpellCheckerFactory.cpp.

{
  if (! mozInlineSpellChecker::CanEnableInlineSpellChecking())
    return NS_ERROR_FAILURE;

  nsresult rv;

  mozInlineSpellChecker* inst;

  *aResult = NULL;
  if (NULL != aOuter) {
    rv = NS_ERROR_NO_AGGREGATION;
    return rv;
  }

  NS_NEWXPCOM(inst, mozInlineSpellChecker);
  if (NULL == inst) {
    rv = NS_ERROR_OUT_OF_MEMORY;
    return rv;
  }
  NS_ADDREF(inst);
  rv = inst->QueryInterface(aIID, aResult);
  NS_RELEASE(inst);

  return rv;
}

Here is the call graph for this function:


Variable Documentation