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.

     1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
     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/. */
     6 #include "nsISupports.idl"
     8 [scriptable, uuid(B075D5DC-1DF1-441A-BEBF-680D8CAAA19C)]
    10 /**
    11  * This interface contains various I18N related code used in various places by the spell checker.
    12  */
    14 interface mozISpellI18NUtil : nsISupports {
    16     const uint32_t kCheck=0;
    17     const uint32_t kSuggest=1;
    19    /**
    20     * The language being used to check spelling
    21     */
    22     readonly attribute wstring language;
    24    /**
    25     * Given a word return a list of possible root forms of that word
    26     */
    27     void getRootForm(in wstring word,
    28                      in uint32_t type,
    29                      [array, size_is(count)] out wstring words,
    30                      out uint32_t count);
    32    /**
    33     * Given a word return a list of possible root forms of that word
    34     */
    35     void fromRootForm(in wstring word,
    36                       [array, size_is(icount)] in wstring iwords,
    37                       in uint32_t icount,
    38                       [array, size_is(ocount)] out wstring owords,
    39                       out uint32_t ocount);
    41     /**
    42      * Given a unicode string and an offset, find the beginning and end of the
    43      * next word. begin and end are -1 if there are no words remaining in the 
    44      * string. This should really be folded into the Line/WordBreaker.
    45      */
    46     void findNextWord(in wstring word, in uint32_t length, in uint32_t offset, out int32_t begin, out int32_t end); 
    47 };

mercurial