nss: upgrade to release 3.73
[LibreOffice.git] / forms / source / misc / property.cxx
blob11c3ad7d20228cc8ebb848c058a3f91db39c3e8d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 #include <frm_strings.hxx>
21 #include <property.hxx>
23 namespace frm
26 //= PropertyInfoService
28 PropertyInfoService::PropertyMap PropertyInfoService::s_AllKnownProperties;
30 sal_Int32 PropertyInfoService::getPropertyId(const OUString& _rName)
32 initialize();
34 sal_Int32 nHandle = -1;
35 const auto foundProperty = s_AllKnownProperties.find(_rName);
36 if (foundProperty != s_AllKnownProperties.end())
37 nHandle = foundProperty->second;
38 return nHandle;
42 sal_Int32 ConcreteInfoService::getPreferredPropertyId(const OUString& _rName)
44 return PropertyInfoService::getPropertyId(_rName);
48 #define EXPAND_PROP_INIT(varname) \
49 { PROPERTY_##varname, PROPERTY_ID_##varname }
51 void PropertyInfoService::initialize()
53 if (!s_AllKnownProperties.empty())
54 return;
56 s_AllKnownProperties.insert({
57 EXPAND_PROP_INIT(NAME),
58 EXPAND_PROP_INIT(TAG),
59 EXPAND_PROP_INIT(TABINDEX),
60 EXPAND_PROP_INIT(CLASSID),
61 EXPAND_PROP_INIT(ALIGN),
62 EXPAND_PROP_INIT(FETCHSIZE),
63 EXPAND_PROP_INIT(VALUE),
64 EXPAND_PROP_INIT(VALUEMIN),
65 EXPAND_PROP_INIT(VALUEMAX),
66 EXPAND_PROP_INIT(VALUESTEP),
67 EXPAND_PROP_INIT(TEXT),
68 EXPAND_PROP_INIT(LABEL),
69 EXPAND_PROP_INIT(NAVIGATION),
70 EXPAND_PROP_INIT(CYCLE),
71 EXPAND_PROP_INIT(CONTROLSOURCE),
72 EXPAND_PROP_INIT(ENABLED),
73 EXPAND_PROP_INIT(ENABLEVISIBLE),
74 EXPAND_PROP_INIT(SPIN),
75 EXPAND_PROP_INIT(READONLY),
76 EXPAND_PROP_INIT(FILTER),
77 EXPAND_PROP_INIT(WIDTH),
78 EXPAND_PROP_INIT(SEARCHABLE),
79 EXPAND_PROP_INIT(MULTILINE),
80 EXPAND_PROP_INIT(TARGET_URL),
81 EXPAND_PROP_INIT(DEFAULTCONTROL),
82 EXPAND_PROP_INIT(MAXTEXTLEN),
83 EXPAND_PROP_INIT(SIZE),
84 EXPAND_PROP_INIT(DATE),
85 EXPAND_PROP_INIT(TIME),
86 EXPAND_PROP_INIT(STATE),
87 EXPAND_PROP_INIT(TRISTATE),
88 EXPAND_PROP_INIT(HIDDEN_VALUE),
89 EXPAND_PROP_INIT(TARGET_FRAME),
90 EXPAND_PROP_INIT(BUTTONTYPE),
91 EXPAND_PROP_INIT(STRINGITEMLIST),
92 EXPAND_PROP_INIT(TYPEDITEMLIST),
93 EXPAND_PROP_INIT(DEFAULT_TEXT),
94 EXPAND_PROP_INIT(DEFAULT_STATE),
95 EXPAND_PROP_INIT(DEFAULT_DATE),
96 EXPAND_PROP_INIT(DEFAULT_TIME),
97 EXPAND_PROP_INIT(DEFAULT_VALUE),
98 EXPAND_PROP_INIT(FORMATKEY),
99 EXPAND_PROP_INIT(FORMATSSUPPLIER),
100 EXPAND_PROP_INIT(SUBMIT_ACTION),
101 EXPAND_PROP_INIT(SUBMIT_TARGET),
102 EXPAND_PROP_INIT(SUBMIT_METHOD),
103 EXPAND_PROP_INIT(SUBMIT_ENCODING),
104 EXPAND_PROP_INIT(IMAGE_URL),
105 EXPAND_PROP_INIT(GRAPHIC),
106 EXPAND_PROP_INIT(EMPTY_IS_NULL),
107 EXPAND_PROP_INIT(LISTSOURCETYPE),
108 EXPAND_PROP_INIT(LISTSOURCE),
109 EXPAND_PROP_INIT(SELECT_SEQ),
110 EXPAND_PROP_INIT(VALUE_SEQ),
111 EXPAND_PROP_INIT(SELECT_VALUE),
112 EXPAND_PROP_INIT(SELECT_VALUE_SEQ),
113 EXPAND_PROP_INIT(DEFAULT_SELECT_SEQ),
114 EXPAND_PROP_INIT(MULTISELECTION),
115 EXPAND_PROP_INIT(DECIMAL_ACCURACY),
116 EXPAND_PROP_INIT(EDITMASK),
117 EXPAND_PROP_INIT(ISREADONLY),
118 EXPAND_PROP_INIT(FIELDTYPE),
119 EXPAND_PROP_INIT(DECIMALS),
120 EXPAND_PROP_INIT(REFVALUE),
121 EXPAND_PROP_INIT(STRICTFORMAT),
122 EXPAND_PROP_INIT(DATASOURCE),
123 EXPAND_PROP_INIT(ALLOWADDITIONS),
124 EXPAND_PROP_INIT(ALLOWEDITS),
125 EXPAND_PROP_INIT(ALLOWDELETIONS),
126 EXPAND_PROP_INIT(MASTERFIELDS),
127 EXPAND_PROP_INIT(ISPASSTHROUGH),
128 EXPAND_PROP_INIT(QUERY),
129 EXPAND_PROP_INIT(LITERALMASK),
130 EXPAND_PROP_INIT(SHOWTHOUSANDSEP),
131 EXPAND_PROP_INIT(CURRENCYSYMBOL),
132 EXPAND_PROP_INIT(DATEFORMAT),
133 EXPAND_PROP_INIT(DATEMIN),
134 EXPAND_PROP_INIT(DATEMAX),
135 EXPAND_PROP_INIT(DATE_SHOW_CENTURY),
136 EXPAND_PROP_INIT(TIMEFORMAT),
137 EXPAND_PROP_INIT(TIMEMIN),
138 EXPAND_PROP_INIT(TIMEMAX),
139 EXPAND_PROP_INIT(LINECOUNT),
140 EXPAND_PROP_INIT(BOUNDCOLUMN),
141 EXPAND_PROP_INIT(HASNAVIGATION),
142 EXPAND_PROP_INIT(FONT),
143 EXPAND_PROP_INIT(BACKGROUNDCOLOR),
144 EXPAND_PROP_INIT(FILLCOLOR),
145 EXPAND_PROP_INIT(TEXTCOLOR),
146 EXPAND_PROP_INIT(LINECOLOR),
147 EXPAND_PROP_INIT(BORDER),
148 EXPAND_PROP_INIT(DROPDOWN),
149 EXPAND_PROP_INIT(HSCROLL),
150 EXPAND_PROP_INIT(VSCROLL),
151 EXPAND_PROP_INIT(TABSTOP),
152 EXPAND_PROP_INIT(AUTOCOMPLETE),
153 EXPAND_PROP_INIT(HARDLINEBREAKS),
154 EXPAND_PROP_INIT(PRINTABLE),
155 EXPAND_PROP_INIT(ECHO_CHAR),
156 EXPAND_PROP_INIT(ROWHEIGHT),
157 EXPAND_PROP_INIT(HELPTEXT),
158 EXPAND_PROP_INIT(FONT_NAME),
159 EXPAND_PROP_INIT(FONT_STYLENAME),
160 EXPAND_PROP_INIT(FONT_FAMILY),
161 EXPAND_PROP_INIT(FONT_CHARSET),
162 EXPAND_PROP_INIT(FONT_HEIGHT),
163 EXPAND_PROP_INIT(FONT_WEIGHT),
164 EXPAND_PROP_INIT(FONT_SLANT),
165 EXPAND_PROP_INIT(FONT_UNDERLINE),
166 EXPAND_PROP_INIT(FONT_WORDLINEMODE),
167 EXPAND_PROP_INIT(FONT_STRIKEOUT),
168 EXPAND_PROP_INIT(TEXTLINECOLOR),
169 EXPAND_PROP_INIT(FONTEMPHASISMARK),
170 EXPAND_PROP_INIT(FONTRELIEF),
171 EXPAND_PROP_INIT(HELPURL),
172 EXPAND_PROP_INIT(RECORDMARKER),
173 EXPAND_PROP_INIT(BOUNDFIELD),
174 EXPAND_PROP_INIT(INPUT_REQUIRED),
175 EXPAND_PROP_INIT(TREATASNUMERIC),
176 EXPAND_PROP_INIT(EFFECTIVE_VALUE),
177 EXPAND_PROP_INIT(EFFECTIVE_DEFAULT),
178 EXPAND_PROP_INIT(EFFECTIVE_MIN),
179 EXPAND_PROP_INIT(EFFECTIVE_MAX),
180 EXPAND_PROP_INIT(HIDDEN),
181 EXPAND_PROP_INIT(FILTERPROPOSAL),
182 EXPAND_PROP_INIT(FIELDSOURCE),
183 EXPAND_PROP_INIT(TABLENAME),
184 EXPAND_PROP_INIT(CONTROLLABEL),
185 EXPAND_PROP_INIT(CURRSYM_POSITION),
186 EXPAND_PROP_INIT(CURSORCOLOR),
187 EXPAND_PROP_INIT(ALWAYSSHOWCURSOR),
188 EXPAND_PROP_INIT(DISPLAYSYNCHRON),
189 EXPAND_PROP_INIT(ISMODIFIED),
190 EXPAND_PROP_INIT(ISNEW),
191 EXPAND_PROP_INIT(PRIVILEGES),
192 EXPAND_PROP_INIT(DETAILFIELDS),
193 EXPAND_PROP_INIT(COMMAND),
194 EXPAND_PROP_INIT(COMMANDTYPE),
195 EXPAND_PROP_INIT(RESULTSET_CONCURRENCY),
196 EXPAND_PROP_INIT(INSERTONLY),
197 EXPAND_PROP_INIT(RESULTSET_TYPE),
198 EXPAND_PROP_INIT(ESCAPE_PROCESSING),
199 EXPAND_PROP_INIT(APPLYFILTER),
200 EXPAND_PROP_INIT(ISNULLABLE),
201 EXPAND_PROP_INIT(ACTIVECOMMAND),
202 EXPAND_PROP_INIT(ISCURRENCY),
203 EXPAND_PROP_INIT(URL),
204 EXPAND_PROP_INIT(TITLE),
205 EXPAND_PROP_INIT(ACTIVE_CONNECTION),
206 EXPAND_PROP_INIT(SCALE),
207 EXPAND_PROP_INIT(SORT),
208 EXPAND_PROP_INIT(PERSISTENCE_MAXTEXTLENGTH),
209 EXPAND_PROP_INIT(SCROLL_VALUE),
210 EXPAND_PROP_INIT(SPIN_VALUE),
211 EXPAND_PROP_INIT(DEFAULT_SCROLL_VALUE),
212 EXPAND_PROP_INIT(DEFAULT_SPIN_VALUE),
213 EXPAND_PROP_INIT( WRITING_MODE ),
214 EXPAND_PROP_INIT( CONTEXT_WRITING_MODE ),
215 EXPAND_PROP_INIT( GENERATEVBAEVENTS )
221 //... namespace frm .......................................................
223 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */