1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _unotools_LINGUPROPS_HXX_
25 #define _unotools_LINGUPROPS_HXX_
26 
27 
28 // UNO property names for general options
29 #define UPN_IS_GERMAN_PRE_REFORM			"IsGermanPreReform"		/*! deprecated #i91949 !*/
30 #define	UPN_IS_USE_DICTIONARY_LIST      	"IsUseDictionaryList"
31 #define UPN_IS_IGNORE_CONTROL_CHARACTERS	"IsIgnoreControlCharacters"
32 #define UPN_ACTIVE_DICTIONARIES				"ActiveDictionaries"
33 
34 // UNO property names for SpellChecker
35 #define UPN_IS_SPELL_UPPER_CASE				"IsSpellUpperCase"
36 #define UPN_IS_SPELL_WITH_DIGITS			"IsSpellWithDigits"
37 #define UPN_IS_SPELL_CAPITALIZATION			"IsSpellCapitalization"
38 
39 // UNO property names for Hyphenator
40 #define UPN_HYPH_MIN_LEADING				"HyphMinLeading"
41 #define UPN_HYPH_MIN_TRAILING				"HyphMinTrailing"
42 #define UPN_HYPH_MIN_WORD_LENGTH			"HyphMinWordLength"
43 
44 // UNO property names for Lingu
45 // (those not covered by the SpellChecker and Hyphenator
46 // properties and more likely to be used in other modules only)
47 #define UPN_DEFAULT_LANGUAGE				"DefaultLanguage"
48 #define UPN_DEFAULT_LOCALE					"DefaultLocale"
49 #define UPN_DEFAULT_LOCALE_CJK				"DefaultLocale_CJK"
50 #define UPN_DEFAULT_LOCALE_CTL				"DefaultLocale_CTL"
51 #define UPN_IS_HYPH_AUTO					"IsHyphAuto"
52 #define UPN_IS_HYPH_SPECIAL					"IsHyphSpecial"
53 #define UPN_IS_SPELL_AUTO					"IsSpellAuto"
54 #define UPN_IS_SPELL_HIDE					"IsSpellHide"			/*! deprecated #i91949 !*/
55 #define UPN_IS_SPELL_IN_ALL_LANGUAGES		"IsSpellInAllLanguages"	/*! deprecated #i91949 !*/
56 #define UPN_IS_SPELL_SPECIAL				"IsSpellSpecial"
57 #define UPN_IS_WRAP_REVERSE					"IsWrapReverse"
58 #define UPN_DATA_FILES_CHANGED_CHECK_VALUE  "DataFilesChangedCheckValue"
59 
60 // UNO property names for text conversion options
61 #define UPN_ACTIVE_CONVERSION_DICTIONARIES  "ActiveConversionDictionaries"
62 #define UPN_IS_IGNORE_POST_POSITIONAL_WORD  "IsIgnorePostPositionalWord"
63 #define UPN_IS_AUTO_CLOSE_DIALOG            "IsAutoCloseDialog"
64 #define UPN_IS_SHOW_ENTRIES_RECENTLY_USED_FIRST     "IsShowEntriesRecentlyUsedFirst"
65 #define UPN_IS_AUTO_REPLACE_UNIQUE_ENTRIES  "IsAutoReplaceUniqueEntries"
66 #define UPN_IS_DIRECTION_TO_SIMPLIFIED      "IsDirectionToSimplified"
67 #define UPN_IS_USE_CHARACTER_VARIANTS       "IsUseCharacterVariants"
68 #define UPN_IS_TRANSLATE_COMMON_TERMS       "IsTranslateCommonTerms"
69 #define UPN_IS_REVERSE_MAPPING              "IsReverseMapping"
70 
71 // new UNO propertynames to be used with 'dictionaries as extensions'
72 #define UPN_DICTIONARIES                    "Dictionaries"
73 #define UPN_SPELL_CHECKERS                  "SpellCheckers"
74 #define UPN_HYPHENATORS                     "Hyphenators"
75 #define UPN_THESAURI                        "Thesauri"
76 #define UPN_CURRENT_ACTIVE_DICTIONARIES     "CurrentActiveDictionaries"
77 #define UPN_LAST_ACTIVE_DICTIONARIES        "LastActiveDictionaries"
78 
79 #define UPN_IS_GRAMMAR_AUTO                 "IsAutoGrammarCheck"
80 #define UPN_IS_GRAMMAR_INTERACTIVE          "IsInteractiveGrammarCheck"
81 
82 // uno property handles
83 #define UPH_IS_GERMAN_PRE_REFORM			 0
84 #define	UPH_IS_USE_DICTIONARY_LIST			 1
85 #define UPH_IS_IGNORE_CONTROL_CHARACTERS	 2
86 #define UPH_IS_SPELL_UPPER_CASE				 3
87 #define UPH_IS_SPELL_WITH_DIGITS			 4
88 #define UPH_IS_SPELL_CAPITALIZATION			 5
89 #define UPH_HYPH_MIN_LEADING				 6
90 #define UPH_HYPH_MIN_TRAILING				 7
91 #define UPH_HYPH_MIN_WORD_LENGTH			 8
92 #define UPH_DEFAULT_LOCALE					 9
93 #define UPH_IS_SPELL_AUTO					10
94 #define UPH_IS_SPELL_HIDE					11
95 #define UPH_IS_SPELL_IN_ALL_LANGUAGES		12
96 #define UPH_IS_SPELL_SPECIAL				13
97 #define UPH_IS_HYPH_AUTO					14
98 #define UPH_IS_HYPH_SPECIAL					15
99 #define UPH_IS_WRAP_REVERSE					16
100 #define UPH_DATA_FILES_CHANGED_CHECK_VALUE  17
101 #define UPH_DEFAULT_LANGUAGE				21
102 #define UPH_DEFAULT_LOCALE_CJK				22
103 #define UPH_DEFAULT_LOCALE_CTL				23
104 #define UPH_ACTIVE_DICTIONARIES				24
105 #define UPH_ACTIVE_CONVERSION_DICTIONARIES  25
106 #define UPH_IS_IGNORE_POST_POSITIONAL_WORD  26
107 #define UPH_IS_AUTO_CLOSE_DIALOG            27
108 #define UPH_IS_SHOW_ENTRIES_RECENTLY_USED_FIRST     28
109 #define UPH_IS_AUTO_REPLACE_UNIQUE_ENTRIES  29
110 #define UPH_IS_DIRECTION_TO_SIMPLIFIED      30
111 #define UPH_IS_USE_CHARACTER_VARIANTS       31
112 #define UPH_IS_TRANSLATE_COMMON_TERMS       32
113 #define UPH_IS_REVERSE_MAPPING              33
114 #define UPH_IS_GRAMMAR_AUTO                 34
115 #define UPH_IS_GRAMMAR_INTERACTIVE          35
116 #endif
117 
118