| 1 | /* SpellingChecker_def.h |
| 2 | * |
| 3 | * Copyright (C) 1999-2007,2011,2015,2016,2018-2020 Paul Boersma |
| 4 | * |
| 5 | * This code is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or (at |
| 8 | * your option) any later version. |
| 9 | * |
| 10 | * This code is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 | * See the GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | |
| 20 | #define ooSTRUCT SpellingChecker |
| 21 | oo_DEFINE_CLASS (SpellingChecker, Daata) // CGN: |
| 22 | |
| 23 | oo_STRING (forbiddenStrings) // : ; " |
| 24 | oo_BOOLEAN (checkMatchingParentheses) // true |
| 25 | oo_STRING (separatingCharacters) // .,:;()!? |
| 26 | oo_BOOLEAN (allowAllParenthesized) // true |
| 27 | oo_BOOLEAN (allowAllNames) // true |
| 28 | oo_STRING (namePrefixes) // 's- d' l' |
| 29 | oo_BOOLEAN (allowAllAbbreviations) // true |
| 30 | oo_BOOLEAN (allowCapsSentenceInitially) // false |
| 31 | oo_BOOLEAN (allowCapsAfterColon) // false |
| 32 | oo_STRING (allowAllWordsContaining) // * xxx |
| 33 | oo_STRING (allowAllWordsStartingWith) |
| 34 | oo_STRING (allowAllWordsEndingIn) // - |
| 35 | #if oo_READING |
| 36 | oo_VERSION_UNTIL (1) |
| 37 | oo_OBJECT (WordList, 0, wordList) |
| 38 | oo_VERSION_ELSE |
| 39 | oo_OBJECT (WordList, 1, wordList) |
| 40 | oo_VERSION_END |
| 41 | #else |
| 42 | oo_OBJECT (WordList, 1, wordList) |
| 43 | #endif |
| 44 | oo_COLLECTION (StringSet, userDictionary, SimpleString, 0) |
| 45 | |
| 46 | #if oo_READING |
| 47 | { |
| 48 | autoStrings strings = WordList_to_Strings (our wordList.get()); |
| 49 | oo_VERSION_UNTIL (1) |
| 50 | Strings_nativize (strings.get()); |
| 51 | oo_VERSION_END |
| 52 | our wordList = Strings_to_WordList (strings.get()); |
| 53 | } |
| 54 | #endif |
| 55 | |
| 56 | oo_END_CLASS (SpellingChecker) |
| 57 | #undef ooSTRUCT |
| 58 | |
| 59 | |
| 60 | /* End of file SpellingChecker_def.h */ |