LibreOffice Module unotools (master) 1
linguprops.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
21#include <rtl/ustring.hxx>
22
23#ifdef __GNUC__
24#pragma GCC diagnostic push
25#pragma GCC diagnostic ignored "-Wunused-variable"
26#endif
27
28// UNO property names for general options
29inline constexpr OUStringLiteral UPN_IS_GERMAN_PRE_REFORM = u"IsGermanPreReform";
30inline constexpr OUStringLiteral UPN_IS_USE_DICTIONARY_LIST = u"IsUseDictionaryList";
31inline constexpr OUStringLiteral UPN_IS_IGNORE_CONTROL_CHARACTERS = u"IsIgnoreControlCharacters";
32inline constexpr OUStringLiteral UPN_ACTIVE_DICTIONARIES = u"ActiveDictionaries";
33
34// UNO property names for SpellChecker
35inline constexpr OUStringLiteral UPN_IS_SPELL_UPPER_CASE = u"IsSpellUpperCase";
36inline constexpr OUStringLiteral UPN_IS_SPELL_WITH_DIGITS = u"IsSpellWithDigits";
37inline constexpr OUStringLiteral UPN_IS_SPELL_CAPITALIZATION = u"IsSpellCapitalization";
38
39// UNO property names for Hyphenator
40inline constexpr OUStringLiteral UPN_HYPH_MIN_LEADING = u"HyphMinLeading";
41inline constexpr OUStringLiteral UPN_HYPH_MIN_TRAILING = u"HyphMinTrailing";
42inline constexpr OUStringLiteral UPN_HYPH_MIN_WORD_LENGTH = u"HyphMinWordLength";
43inline constexpr OUStringLiteral UPN_HYPH_NO_CAPS = u"HyphNoCaps";
44inline constexpr OUStringLiteral UPN_HYPH_NO_LAST_WORD = u"HyphNoLastWord";
45inline constexpr OUStringLiteral UPN_HYPH_ZONE = u"HyphZone";
46
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)
50inline constexpr OUStringLiteral UPN_DEFAULT_LANGUAGE = u"DefaultLanguage";
51inline constexpr OUStringLiteral UPN_DEFAULT_LOCALE = u"DefaultLocale";
52inline constexpr OUStringLiteral UPN_DEFAULT_LOCALE_CJK = u"DefaultLocale_CJK";
53inline constexpr OUStringLiteral UPN_DEFAULT_LOCALE_CTL = u"DefaultLocale_CTL";
54inline constexpr OUStringLiteral UPN_IS_HYPH_AUTO = u"IsHyphAuto";
55inline constexpr OUStringLiteral UPN_IS_HYPH_SPECIAL = u"IsHyphSpecial";
56inline constexpr OUStringLiteral UPN_IS_SPELL_AUTO = u"IsSpellAuto";
57inline constexpr OUStringLiteral UPN_IS_SPELL_CLOSED_COMPOUND = u"IsSpellClosedCompound";
58inline constexpr OUStringLiteral UPN_IS_SPELL_HYPHENATED_COMPOUND = u"IsSpellHyphenatedCompound";
59inline constexpr OUStringLiteral UPN_IS_SPELL_SPECIAL = u"IsSpellSpecial";
60inline constexpr OUStringLiteral UPN_IS_WRAP_REVERSE = u"IsWrapReverse";
61inline constexpr OUStringLiteral UPN_DATA_FILES_CHANGED_CHECK_VALUE = u"DataFilesChangedCheckValue";
62
63// UNO property names for text conversion options
64inline constexpr OUStringLiteral UPN_ACTIVE_CONVERSION_DICTIONARIES = u"ActiveConversionDictionaries";
65inline constexpr OUStringLiteral UPN_IS_IGNORE_POST_POSITIONAL_WORD = u"IsIgnorePostPositionalWord";
66inline constexpr OUStringLiteral UPN_IS_AUTO_CLOSE_DIALOG = u"IsAutoCloseDialog";
67inline constexpr OUStringLiteral UPN_IS_SHOW_ENTRIES_RECENTLY_USED_FIRST = u"IsShowEntriesRecentlyUsedFirst";
68inline constexpr OUStringLiteral UPN_IS_AUTO_REPLACE_UNIQUE_ENTRIES = u"IsAutoReplaceUniqueEntries";
69inline constexpr OUStringLiteral UPN_IS_DIRECTION_TO_SIMPLIFIED = u"IsDirectionToSimplified";
70inline constexpr OUStringLiteral UPN_IS_USE_CHARACTER_VARIANTS = u"IsUseCharacterVariants";
71inline constexpr OUStringLiteral UPN_IS_TRANSLATE_COMMON_TERMS = u"IsTranslateCommonTerms";
72inline constexpr OUStringLiteral UPN_IS_REVERSE_MAPPING = u"IsReverseMapping";
73
74inline constexpr OUStringLiteral UPN_IS_GRAMMAR_AUTO = u"IsAutoGrammarCheck";
75inline constexpr OUStringLiteral UPN_IS_GRAMMAR_INTERACTIVE = u"IsInteractiveGrammarCheck";
76
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
114
115#ifdef __GNUC__
116#pragma GCC diagnostic pop
117#endif
118
119/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
float u
constexpr OUStringLiteral UPN_IS_GRAMMAR_AUTO
Definition: linguprops.hxx:74
constexpr OUStringLiteral UPN_IS_GERMAN_PRE_REFORM
Definition: linguprops.hxx:29
constexpr OUStringLiteral UPN_IS_DIRECTION_TO_SIMPLIFIED
Definition: linguprops.hxx:69
constexpr OUStringLiteral UPN_DATA_FILES_CHANGED_CHECK_VALUE
Definition: linguprops.hxx:61
constexpr OUStringLiteral UPN_IS_TRANSLATE_COMMON_TERMS
Definition: linguprops.hxx:71
constexpr OUStringLiteral UPN_IS_USE_CHARACTER_VARIANTS
Definition: linguprops.hxx:70
constexpr OUStringLiteral UPN_IS_SPELL_AUTO
Definition: linguprops.hxx:56
constexpr OUStringLiteral UPN_IS_HYPH_AUTO
Definition: linguprops.hxx:54
constexpr OUStringLiteral UPN_IS_SPELL_UPPER_CASE
Definition: linguprops.hxx:35
constexpr OUStringLiteral UPN_IS_WRAP_REVERSE
Definition: linguprops.hxx:60
constexpr OUStringLiteral UPN_IS_REVERSE_MAPPING
Definition: linguprops.hxx:72
constexpr OUStringLiteral UPN_IS_SPELL_CLOSED_COMPOUND
Definition: linguprops.hxx:57
constexpr OUStringLiteral UPN_HYPH_ZONE
Definition: linguprops.hxx:45
constexpr OUStringLiteral UPN_IS_IGNORE_POST_POSITIONAL_WORD
Definition: linguprops.hxx:65
constexpr OUStringLiteral UPN_HYPH_NO_CAPS
Definition: linguprops.hxx:43
constexpr OUStringLiteral UPN_ACTIVE_CONVERSION_DICTIONARIES
Definition: linguprops.hxx:64
constexpr OUStringLiteral UPN_IS_USE_DICTIONARY_LIST
Definition: linguprops.hxx:30
constexpr OUStringLiteral UPN_HYPH_MIN_WORD_LENGTH
Definition: linguprops.hxx:42
constexpr OUStringLiteral UPN_HYPH_NO_LAST_WORD
Definition: linguprops.hxx:44
constexpr OUStringLiteral UPN_IS_GRAMMAR_INTERACTIVE
Definition: linguprops.hxx:75
constexpr OUStringLiteral UPN_HYPH_MIN_LEADING
Definition: linguprops.hxx:40
constexpr OUStringLiteral UPN_IS_SHOW_ENTRIES_RECENTLY_USED_FIRST
Definition: linguprops.hxx:67
constexpr OUStringLiteral UPN_IS_SPELL_WITH_DIGITS
Definition: linguprops.hxx:36
constexpr OUStringLiteral UPN_IS_SPELL_HYPHENATED_COMPOUND
Definition: linguprops.hxx:58
constexpr OUStringLiteral UPN_IS_IGNORE_CONTROL_CHARACTERS
Definition: linguprops.hxx:31
constexpr OUStringLiteral UPN_DEFAULT_LANGUAGE
Definition: linguprops.hxx:50
constexpr OUStringLiteral UPN_ACTIVE_DICTIONARIES
Definition: linguprops.hxx:32
constexpr OUStringLiteral UPN_IS_HYPH_SPECIAL
Definition: linguprops.hxx:55
constexpr OUStringLiteral UPN_DEFAULT_LOCALE
Definition: linguprops.hxx:51
constexpr OUStringLiteral UPN_IS_AUTO_CLOSE_DIALOG
Definition: linguprops.hxx:66
constexpr OUStringLiteral UPN_DEFAULT_LOCALE_CTL
Definition: linguprops.hxx:53
constexpr OUStringLiteral UPN_HYPH_MIN_TRAILING
Definition: linguprops.hxx:41
constexpr OUStringLiteral UPN_DEFAULT_LOCALE_CJK
Definition: linguprops.hxx:52
constexpr OUStringLiteral UPN_IS_SPELL_CAPITALIZATION
Definition: linguprops.hxx:37
constexpr OUStringLiteral UPN_IS_AUTO_REPLACE_UNIQUE_ENTRIES
Definition: linguprops.hxx:68
constexpr OUStringLiteral UPN_IS_SPELL_SPECIAL
Definition: linguprops.hxx:59