Line data Source code
1 : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 : /* This Source Code Form is subject to the terms of the Mozilla Public
3 : * License, v. 2.0. If a copy of the MPL was not distributed with this
4 : * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 :
6 : #include "mozSpellI18NManager.h"
7 : #include "mozEnglishWordUtils.h"
8 : #include "nsString.h"
9 : #include "mozilla/RefPtr.h"
10 :
11 0 : NS_IMPL_ISUPPORTS(mozSpellI18NManager, mozISpellI18NManager)
12 :
13 0 : mozSpellI18NManager::mozSpellI18NManager()
14 : {
15 0 : }
16 :
17 0 : mozSpellI18NManager::~mozSpellI18NManager()
18 : {
19 0 : }
20 :
21 0 : NS_IMETHODIMP mozSpellI18NManager::GetUtil(const char16_t *aLanguage, mozISpellI18NUtil **_retval)
22 : {
23 0 : if (!_retval) {
24 0 : return NS_ERROR_NULL_POINTER;
25 : }
26 :
27 : // XXX TODO Actually handle multiple languages.
28 0 : RefPtr<mozEnglishWordUtils> utils = new mozEnglishWordUtils;
29 0 : utils.forget(_retval);
30 :
31 0 : return NS_OK;
32 9 : }
|