extensions/spellcheck/idl/mozISpellI18NUtil.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #include "nsISupports.idl"
michael@0 7
michael@0 8 [scriptable, uuid(B075D5DC-1DF1-441A-BEBF-680D8CAAA19C)]
michael@0 9
michael@0 10 /**
michael@0 11 * This interface contains various I18N related code used in various places by the spell checker.
michael@0 12 */
michael@0 13
michael@0 14 interface mozISpellI18NUtil : nsISupports {
michael@0 15
michael@0 16 const uint32_t kCheck=0;
michael@0 17 const uint32_t kSuggest=1;
michael@0 18
michael@0 19 /**
michael@0 20 * The language being used to check spelling
michael@0 21 */
michael@0 22 readonly attribute wstring language;
michael@0 23
michael@0 24 /**
michael@0 25 * Given a word return a list of possible root forms of that word
michael@0 26 */
michael@0 27 void getRootForm(in wstring word,
michael@0 28 in uint32_t type,
michael@0 29 [array, size_is(count)] out wstring words,
michael@0 30 out uint32_t count);
michael@0 31
michael@0 32 /**
michael@0 33 * Given a word return a list of possible root forms of that word
michael@0 34 */
michael@0 35 void fromRootForm(in wstring word,
michael@0 36 [array, size_is(icount)] in wstring iwords,
michael@0 37 in uint32_t icount,
michael@0 38 [array, size_is(ocount)] out wstring owords,
michael@0 39 out uint32_t ocount);
michael@0 40
michael@0 41 /**
michael@0 42 * Given a unicode string and an offset, find the beginning and end of the
michael@0 43 * next word. begin and end are -1 if there are no words remaining in the
michael@0 44 * string. This should really be folded into the Line/WordBreaker.
michael@0 45 */
michael@0 46 void findNextWord(in wstring word, in uint32_t length, in uint32_t offset, out int32_t begin, out int32_t end);
michael@0 47 };

mercurial