1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: linguprops.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _SVTOOLS_LINGUPROPS_HXX_
32 #define _SVTOOLS_LINGUPROPS_HXX_
35 // UNO property names for general options
36 #define UPN_IS_GERMAN_PRE_REFORM "IsGermanPreReform" /*! deprecated #i91949 !*/
37 #define UPN_IS_USE_DICTIONARY_LIST "IsUseDictionaryList"
38 #define UPN_IS_IGNORE_CONTROL_CHARACTERS "IsIgnoreControlCharacters"
39 #define UPN_ACTIVE_DICTIONARIES "ActiveDictionaries"
41 // UNO property names for SpellChecker
42 #define UPN_IS_SPELL_UPPER_CASE "IsSpellUpperCase"
43 #define UPN_IS_SPELL_WITH_DIGITS "IsSpellWithDigits"
44 #define UPN_IS_SPELL_CAPITALIZATION "IsSpellCapitalization"
46 // UNO property names for Hyphenator
47 #define UPN_HYPH_MIN_LEADING "HyphMinLeading"
48 #define UPN_HYPH_MIN_TRAILING "HyphMinTrailing"
49 #define UPN_HYPH_MIN_WORD_LENGTH "HyphMinWordLength"
51 // UNO property names for Lingu
52 // (those not covered by the SpellChecker and Hyphenator
53 // properties and more likely to be used in other modules only)
54 #define UPN_DEFAULT_LANGUAGE "DefaultLanguage"
55 #define UPN_DEFAULT_LOCALE "DefaultLocale"
56 #define UPN_DEFAULT_LOCALE_CJK "DefaultLocale_CJK"
57 #define UPN_DEFAULT_LOCALE_CTL "DefaultLocale_CTL"
58 #define UPN_IS_HYPH_AUTO "IsHyphAuto"
59 #define UPN_IS_HYPH_SPECIAL "IsHyphSpecial"
60 #define UPN_IS_SPELL_AUTO "IsSpellAuto"
61 #define UPN_IS_SPELL_HIDE "IsSpellHide" /*! deprecated #i91949 !*/
62 #define UPN_IS_SPELL_IN_ALL_LANGUAGES "IsSpellInAllLanguages" /*! deprecated #i91949 !*/
63 #define UPN_IS_SPELL_SPECIAL "IsSpellSpecial"
64 #define UPN_IS_WRAP_REVERSE "IsWrapReverse"
65 #define UPN_DATA_FILES_CHANGED_CHECK_VALUE "DataFilesChangedCheckValue"
67 // UNO property names for text conversion options
68 #define UPN_ACTIVE_CONVERSION_DICTIONARIES "ActiveConversionDictionaries"
69 #define UPN_IS_IGNORE_POST_POSITIONAL_WORD "IsIgnorePostPositionalWord"
70 #define UPN_IS_AUTO_CLOSE_DIALOG "IsAutoCloseDialog"
71 #define UPN_IS_SHOW_ENTRIES_RECENTLY_USED_FIRST "IsShowEntriesRecentlyUsedFirst"
72 #define UPN_IS_AUTO_REPLACE_UNIQUE_ENTRIES "IsAutoReplaceUniqueEntries"
73 #define UPN_IS_DIRECTION_TO_SIMPLIFIED "IsDirectionToSimplified"
74 #define UPN_IS_USE_CHARACTER_VARIANTS "IsUseCharacterVariants"
75 #define UPN_IS_TRANSLATE_COMMON_TERMS "IsTranslateCommonTerms"
76 #define UPN_IS_REVERSE_MAPPING "IsReverseMapping"
78 // new UNO propertynames to be used with 'dictionaries as extensions'
79 #define UPN_DICTIONARIES "Dictionaries"
80 #define UPN_SPELL_CHECKERS "SpellCheckers"
81 #define UPN_HYPHENATORS "Hyphenators"
82 #define UPN_THESAURI "Thesauri"
83 #define UPN_CURRENT_ACTIVE_DICTIONARIES "CurrentActiveDictionaries"
84 #define UPN_LAST_ACTIVE_DICTIONARIES "LastActiveDictionaries"
86 #define UPN_IS_GRAMMAR_AUTO "IsAutoGrammarCheck"
87 #define UPN_IS_GRAMMAR_INTERACTIVE "IsInteractiveGrammarCheck"
89 // uno property handles
90 #define UPH_IS_GERMAN_PRE_REFORM 0
91 #define UPH_IS_USE_DICTIONARY_LIST 1
92 #define UPH_IS_IGNORE_CONTROL_CHARACTERS 2
93 #define UPH_IS_SPELL_UPPER_CASE 3
94 #define UPH_IS_SPELL_WITH_DIGITS 4
95 #define UPH_IS_SPELL_CAPITALIZATION 5
96 #define UPH_HYPH_MIN_LEADING 6
97 #define UPH_HYPH_MIN_TRAILING 7
98 #define UPH_HYPH_MIN_WORD_LENGTH 8
99 #define UPH_DEFAULT_LOCALE 9
100 #define UPH_IS_SPELL_AUTO 10
101 #define UPH_IS_SPELL_HIDE 11
102 #define UPH_IS_SPELL_IN_ALL_LANGUAGES 12
103 #define UPH_IS_SPELL_SPECIAL 13
104 #define UPH_IS_HYPH_AUTO 14
105 #define UPH_IS_HYPH_SPECIAL 15
106 #define UPH_IS_WRAP_REVERSE 16
107 #define UPH_DATA_FILES_CHANGED_CHECK_VALUE 17
108 #define UPH_DEFAULT_LANGUAGE 21
109 #define UPH_DEFAULT_LOCALE_CJK 22
110 #define UPH_DEFAULT_LOCALE_CTL 23
111 #define UPH_ACTIVE_DICTIONARIES 24
112 #define UPH_ACTIVE_CONVERSION_DICTIONARIES 25
113 #define UPH_IS_IGNORE_POST_POSITIONAL_WORD 26
114 #define UPH_IS_AUTO_CLOSE_DIALOG 27
115 #define UPH_IS_SHOW_ENTRIES_RECENTLY_USED_FIRST 28
116 #define UPH_IS_AUTO_REPLACE_UNIQUE_ENTRIES 29
117 #define UPH_IS_DIRECTION_TO_SIMPLIFIED 30
118 #define UPH_IS_USE_CHARACTER_VARIANTS 31
119 #define UPH_IS_TRANSLATE_COMMON_TERMS 32
120 #define UPH_IS_REVERSE_MAPPING 33
121 #define UPH_IS_GRAMMAR_AUTO 34
122 #define UPH_IS_GRAMMAR_INTERACTIVE 35