1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 #include <rtl/ustring.hxx>
24 #pragma GCC diagnostic push
25 #pragma GCC diagnostic ignored "-Wunused-variable"
28 // UNO property names for general options
29 inline constexpr OUStringLiteral UPN_IS_GERMAN_PRE_REFORM
= u
"IsGermanPreReform"; /*! deprecated #i91949 !*/
30 inline constexpr OUStringLiteral UPN_IS_USE_DICTIONARY_LIST
= u
"IsUseDictionaryList";
31 inline constexpr OUStringLiteral UPN_IS_IGNORE_CONTROL_CHARACTERS
= u
"IsIgnoreControlCharacters";
32 inline constexpr OUStringLiteral UPN_ACTIVE_DICTIONARIES
= u
"ActiveDictionaries";
34 // UNO property names for SpellChecker
35 inline constexpr OUStringLiteral UPN_IS_SPELL_UPPER_CASE
= u
"IsSpellUpperCase";
36 inline constexpr OUStringLiteral UPN_IS_SPELL_WITH_DIGITS
= u
"IsSpellWithDigits";
37 inline constexpr OUStringLiteral UPN_IS_SPELL_CAPITALIZATION
= u
"IsSpellCapitalization";
39 // UNO property names for Hyphenator
40 inline constexpr OUStringLiteral UPN_HYPH_MIN_LEADING
= u
"HyphMinLeading";
41 inline constexpr OUStringLiteral UPN_HYPH_MIN_TRAILING
= u
"HyphMinTrailing";
42 inline constexpr OUStringLiteral UPN_HYPH_MIN_WORD_LENGTH
= u
"HyphMinWordLength";
43 inline constexpr OUStringLiteral UPN_HYPH_NO_CAPS
= u
"HyphNoCaps";
44 inline constexpr OUStringLiteral UPN_HYPH_NO_LAST_WORD
= u
"HyphNoLastWord";
45 inline constexpr OUStringLiteral UPN_HYPH_ZONE
= u
"HyphZone";
47 // UNO property names for Lingu
48 // (those not covered by the SpellChecker and Hyphenator
49 // properties and more likely to be used in other modules only)
50 inline constexpr OUStringLiteral UPN_DEFAULT_LANGUAGE
= u
"DefaultLanguage";
51 inline constexpr OUStringLiteral UPN_DEFAULT_LOCALE
= u
"DefaultLocale";
52 inline constexpr OUStringLiteral UPN_DEFAULT_LOCALE_CJK
= u
"DefaultLocale_CJK";
53 inline constexpr OUStringLiteral UPN_DEFAULT_LOCALE_CTL
= u
"DefaultLocale_CTL";
54 inline constexpr OUStringLiteral UPN_IS_HYPH_AUTO
= u
"IsHyphAuto";
55 inline constexpr OUStringLiteral UPN_IS_HYPH_SPECIAL
= u
"IsHyphSpecial";
56 inline constexpr OUStringLiteral UPN_IS_SPELL_AUTO
= u
"IsSpellAuto";
57 inline constexpr OUStringLiteral UPN_IS_SPELL_CLOSED_COMPOUND
= u
"IsSpellClosedCompound";
58 inline constexpr OUStringLiteral UPN_IS_SPELL_HYPHENATED_COMPOUND
= u
"IsSpellHyphenatedCompound";
59 inline constexpr OUStringLiteral UPN_IS_SPELL_SPECIAL
= u
"IsSpellSpecial";
60 inline constexpr OUStringLiteral UPN_IS_WRAP_REVERSE
= u
"IsWrapReverse";
61 inline constexpr OUStringLiteral UPN_DATA_FILES_CHANGED_CHECK_VALUE
= u
"DataFilesChangedCheckValue";
63 // UNO property names for text conversion options
64 inline constexpr OUStringLiteral UPN_ACTIVE_CONVERSION_DICTIONARIES
= u
"ActiveConversionDictionaries";
65 inline constexpr OUStringLiteral UPN_IS_IGNORE_POST_POSITIONAL_WORD
= u
"IsIgnorePostPositionalWord";
66 inline constexpr OUStringLiteral UPN_IS_AUTO_CLOSE_DIALOG
= u
"IsAutoCloseDialog";
67 inline constexpr OUStringLiteral UPN_IS_SHOW_ENTRIES_RECENTLY_USED_FIRST
= u
"IsShowEntriesRecentlyUsedFirst";
68 inline constexpr OUStringLiteral UPN_IS_AUTO_REPLACE_UNIQUE_ENTRIES
= u
"IsAutoReplaceUniqueEntries";
69 inline constexpr OUStringLiteral UPN_IS_DIRECTION_TO_SIMPLIFIED
= u
"IsDirectionToSimplified";
70 inline constexpr OUStringLiteral UPN_IS_USE_CHARACTER_VARIANTS
= u
"IsUseCharacterVariants";
71 inline constexpr OUStringLiteral UPN_IS_TRANSLATE_COMMON_TERMS
= u
"IsTranslateCommonTerms";
72 inline constexpr OUStringLiteral UPN_IS_REVERSE_MAPPING
= u
"IsReverseMapping";
74 inline constexpr OUStringLiteral UPN_IS_GRAMMAR_AUTO
= u
"IsAutoGrammarCheck";
75 inline constexpr OUStringLiteral UPN_IS_GRAMMAR_INTERACTIVE
= u
"IsInteractiveGrammarCheck";
77 // uno property handles
78 #define UPH_IS_GERMAN_PRE_REFORM 0
79 #define UPH_IS_USE_DICTIONARY_LIST 1
80 #define UPH_IS_IGNORE_CONTROL_CHARACTERS 2
81 #define UPH_IS_SPELL_UPPER_CASE 3
82 #define UPH_IS_SPELL_WITH_DIGITS 4
83 #define UPH_IS_SPELL_CAPITALIZATION 5
84 #define UPH_HYPH_MIN_LEADING 6
85 #define UPH_HYPH_MIN_TRAILING 7
86 #define UPH_HYPH_MIN_WORD_LENGTH 8
87 #define UPH_DEFAULT_LOCALE 9
88 #define UPH_IS_SPELL_AUTO 10
89 #define UPH_IS_SPELL_CLOSED_COMPOUND 11
90 #define UPH_IS_SPELL_HYPHENATED_COMPOUND 12
91 #define UPH_IS_SPELL_SPECIAL 13
92 #define UPH_IS_HYPH_AUTO 14
93 #define UPH_IS_HYPH_SPECIAL 15
94 #define UPH_IS_WRAP_REVERSE 16
95 #define UPH_DATA_FILES_CHANGED_CHECK_VALUE 17
96 #define UPH_DEFAULT_LANGUAGE 21
97 #define UPH_DEFAULT_LOCALE_CJK 22
98 #define UPH_DEFAULT_LOCALE_CTL 23
99 #define UPH_ACTIVE_DICTIONARIES 24
100 #define UPH_ACTIVE_CONVERSION_DICTIONARIES 25
101 #define UPH_IS_IGNORE_POST_POSITIONAL_WORD 26
102 #define UPH_IS_AUTO_CLOSE_DIALOG 27
103 #define UPH_IS_SHOW_ENTRIES_RECENTLY_USED_FIRST 28
104 #define UPH_IS_AUTO_REPLACE_UNIQUE_ENTRIES 29
105 #define UPH_IS_DIRECTION_TO_SIMPLIFIED 30
106 #define UPH_IS_USE_CHARACTER_VARIANTS 31
107 #define UPH_IS_TRANSLATE_COMMON_TERMS 32
108 #define UPH_IS_REVERSE_MAPPING 33
109 #define UPH_IS_GRAMMAR_AUTO 34
110 #define UPH_IS_GRAMMAR_INTERACTIVE 35
111 #define UPH_HYPH_NO_CAPS 36
112 #define UPH_HYPH_NO_LAST_WORD 37
113 #define UPH_HYPH_ZONE 38
116 #pragma GCC diagnostic pop
119 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */