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 .
22 #include <rtl/ustring.hxx>
28 inline constexpr OUStringLiteral PROPERTY_CLASSID
= u
"ClassId";
29 inline constexpr OUStringLiteral PROPERTY_ECHOCHAR
= u
"EchoChar";
30 inline constexpr OUStringLiteral PROPERTY_MULTILINE
= u
"MultiLine";
31 inline constexpr OUStringLiteral PROPERTY_NAME
= u
"Name";
32 inline constexpr OUStringLiteral PROPERTY_GRAPHIC
= u
"Graphic";
33 inline constexpr OUStringLiteral PROPERTY_LABEL
= u
"Label";
34 inline constexpr OUStringLiteral PROPERTY_TARGETFRAME
= u
"TargetFrame";
35 inline constexpr OUStringLiteral PROPERTY_TARGETURL
= u
"TargetURL";
36 inline constexpr OUStringLiteral PROPERTY_TITLE
= u
"Tag";
37 inline constexpr OUStringLiteral PROPERTY_DROPDOWN
= u
"Dropdown";
38 inline constexpr OUStringLiteral PROPERTY_PRINTABLE
= u
"Printable";
39 inline constexpr OUStringLiteral PROPERTY_READONLY
= u
"ReadOnly";
40 inline constexpr OUStringLiteral PROPERTY_DEFAULT_STATE
= u
"DefaultState";
41 inline constexpr OUStringLiteral PROPERTY_TABSTOP
= u
"Tabstop";
42 inline constexpr OUStringLiteral PROPERTY_STATE
= u
"State";
43 inline constexpr OUStringLiteral PROPERTY_ENABLED
= u
"Enabled";
44 inline constexpr OUStringLiteral PROPERTY_ENABLEVISIBLE
= u
"EnableVisible";
45 inline constexpr OUStringLiteral PROPERTY_MAXTEXTLENGTH
= u
"MaxTextLen";
46 inline constexpr OUStringLiteral PROPERTY_LINECOUNT
= u
"LineCount";
47 inline constexpr OUStringLiteral PROPERTY_TABINDEX
= u
"TabIndex";
48 inline constexpr OUStringLiteral PROPERTY_COMMAND
= u
"Command";
49 inline constexpr OUStringLiteral PROPERTY_DATASOURCENAME
= u
"DataSourceName";
50 inline constexpr OUStringLiteral PROPERTY_FILTER
= u
"Filter";
51 inline constexpr OUStringLiteral PROPERTY_ORDER
= u
"Order";
52 inline constexpr OUStringLiteral PROPERTY_ALLOWDELETES
= u
"AllowDeletes";
53 inline constexpr OUStringLiteral PROPERTY_ALLOWINSERTS
= u
"AllowInserts";
54 inline constexpr OUStringLiteral PROPERTY_ALLOWUPDATES
= u
"AllowUpdates";
55 inline constexpr OUStringLiteral PROPERTY_APPLYFILTER
= u
"ApplyFilter";
56 inline constexpr OUStringLiteral PROPERTY_ESCAPEPROCESSING
= u
"EscapeProcessing";
57 inline constexpr OUStringLiteral PROPERTY_IGNORERESULT
= u
"IgnoreResult";
58 inline constexpr OUStringLiteral PROPERTY_SUBMIT_ENCODING
= u
"SubmitEncoding";
59 inline constexpr OUStringLiteral PROPERTY_SUBMIT_METHOD
= u
"SubmitMethod";
60 inline constexpr OUStringLiteral PROPERTY_COMMAND_TYPE
= u
"CommandType";
61 inline constexpr OUStringLiteral PROPERTY_NAVIGATION
= u
"NavigationBarMode";
62 inline constexpr OUStringLiteral PROPERTY_CYCLE
= u
"Cycle";
63 inline constexpr OUStringLiteral PROPERTY_BUTTONTYPE
= u
"ButtonType";
64 inline constexpr OUStringLiteral PROPERTY_DATAFIELD
= u
"DataField";
65 inline constexpr OUStringLiteral PROPERTY_BOUNDCOLUMN
= u
"BoundColumn";
66 inline constexpr OUStringLiteral PROPERTY_EMPTY_IS_NULL
= u
"ConvertEmptyToNull";
67 inline constexpr OUStringLiteral PROPERTY_INPUT_REQUIRED
= u
"InputRequired";
68 inline constexpr OUStringLiteral PROPERTY_LISTSOURCE
= u
"ListSource";
69 inline constexpr OUStringLiteral PROPERTY_LISTSOURCETYPE
= u
"ListSourceType";
70 inline constexpr OUStringLiteral PROPERTY_ECHO_CHAR
= u
"EchoChar";
71 inline constexpr OUStringLiteral PROPERTY_STRICTFORMAT
= u
"StrictFormat";
72 inline constexpr OUStringLiteral PROPERTY_AUTOCOMPLETE
= u
"Autocomplete";
73 inline constexpr OUStringLiteral PROPERTY_MULTISELECTION
= u
"MultiSelection";
74 inline constexpr OUStringLiteral PROPERTY_DEFAULTBUTTON
= u
"DefaultButton";
75 inline constexpr OUStringLiteral PROPERTY_TRISTATE
= u
"TriState";
76 inline constexpr OUStringLiteral PROPERTY_CONTROLLABEL
= u
"LabelControl";
77 inline constexpr OUStringLiteral PROPERTY_STRING_ITEM_LIST
= u
"StringItemList";
78 inline constexpr OUStringLiteral PROPERTY_VALUE_SEQ
= u
"ValueItemList";
79 inline constexpr OUStringLiteral PROPERTY_DEFAULT_SELECT_SEQ
= u
"DefaultSelection";
80 inline constexpr OUStringLiteral PROPERTY_SELECT_SEQ
= u
"SelectedItems";
81 inline constexpr OUStringLiteral PROPERTY_DATE_MIN
= u
"DateMin";
82 inline constexpr OUStringLiteral PROPERTY_DATE_MAX
= u
"DateMax";
83 inline constexpr OUStringLiteral PROPERTY_TIME_MIN
= u
"TimeMin";
84 inline constexpr OUStringLiteral PROPERTY_TIME_MAX
= u
"TimeMax";
85 inline constexpr OUStringLiteral PROPERTY_VALUE_MIN
= u
"ValueMin";
86 inline constexpr OUStringLiteral PROPERTY_VALUE_MAX
= u
"ValueMax";
87 inline constexpr OUStringLiteral PROPERTY_EFFECTIVE_MIN
= u
"EffectiveMin";
88 inline constexpr OUStringLiteral PROPERTY_EFFECTIVE_MAX
= u
"EffectiveMax";
89 inline constexpr OUStringLiteral PROPERTY_DEFAULT_DATE
= u
"DefaultDate";
90 inline constexpr OUStringLiteral PROPERTY_DATE
= u
"Date";
91 inline constexpr OUStringLiteral PROPERTY_DEFAULT_TIME
= u
"DefaultTime";
92 inline constexpr OUStringLiteral PROPERTY_TIME
= u
"Time";
93 inline constexpr OUStringLiteral PROPERTY_DEFAULT_VALUE
= u
"DefaultValue";
94 inline constexpr OUStringLiteral PROPERTY_VALUE
= u
"Value";
95 inline constexpr OUStringLiteral PROPERTY_HIDDEN_VALUE
= u
"HiddenValue";
96 inline constexpr OUStringLiteral PROPERTY_DEFAULT_TEXT
= u
"DefaultText";
97 inline constexpr OUStringLiteral PROPERTY_TEXT
= u
"Text";
98 inline constexpr OUStringLiteral PROPERTY_EFFECTIVE_VALUE
= u
"EffectiveValue";
99 inline constexpr OUStringLiteral PROPERTY_EFFECTIVE_DEFAULT
= u
"EffectiveDefault";
100 inline constexpr OUStringLiteral PROPERTY_REFVALUE
= u
"RefValue";
101 inline constexpr OUStringLiteral PROPERTY_URL
= u
"URL";
102 inline constexpr OUStringLiteral PROPERTY_FONT
= u
"FontDescriptor";
103 inline constexpr OUStringLiteral PROPERTY_BACKGROUNDCOLOR
= u
"BackgroundColor";
104 inline constexpr OUStringLiteral PROPERTY_MASTERFIELDS
= u
"MasterFields";
105 inline constexpr OUStringLiteral PROPERTY_DETAILFIELDS
= u
"DetailFields";
106 inline constexpr OUStringLiteral PROPERTY_COLUMNSERVICENAME
= u
"ColumnServiceName";
107 inline constexpr OUStringLiteral PROPERTY_FORMATKEY
= u
"FormatKey";
108 inline constexpr OUStringLiteral PROPERTY_ALIGN
= u
"Align";
109 inline constexpr OUStringLiteral PROPERTY_BORDER
= u
"Border";
110 inline constexpr OUStringLiteral PROPERTY_AUTOCONTROLFOCUS
= u
"AutomaticControlFocus";
111 inline constexpr OUStringLiteral PROPERTY_APPLYDESIGNMODE
= u
"ApplyFormDesignMode";
112 inline constexpr OUStringLiteral PROPERTY_FORMATSSUPPLIER
= u
"FormatsSupplier";
113 inline constexpr OUStringLiteral PROPERTY_LOCALE
= u
"Locale";
114 inline constexpr OUStringLiteral PROPERTY_FORMATSTRING
= u
"FormatString";
115 inline constexpr OUStringLiteral PROPERTY_DATEFORMAT
= u
"DateFormat";
116 inline constexpr OUStringLiteral PROPERTY_TIMEFORMAT
= u
"TimeFormat";
117 inline constexpr OUStringLiteral PROPERTY_PERSISTENCE_MAXTEXTLENGTH
= u
"PersistenceMaxTextLength";
118 inline constexpr OUStringLiteral PROPERTY_SCROLLVALUE_MIN
= u
"ScrollValueMin";
119 inline constexpr OUStringLiteral PROPERTY_SCROLLVALUE_MAX
= u
"ScrollValueMax";
120 inline constexpr OUStringLiteral PROPERTY_SCROLLVALUE
= u
"ScrollValue";
121 inline constexpr OUStringLiteral PROPERTY_SCROLLVALUE_DEFAULT
= u
"DefaultScrollValue";
122 inline constexpr OUStringLiteral PROPERTY_LINE_INCREMENT
= u
"LineIncrement";
123 inline constexpr OUStringLiteral PROPERTY_BLOCK_INCREMENT
= u
"BlockIncrement";
124 inline constexpr OUStringLiteral PROPERTY_REPEAT_DELAY
= u
"RepeatDelay";
125 inline constexpr OUStringLiteral PROPERTY_SPINVALUE
= u
"SpinValue";
126 inline constexpr OUStringLiteral PROPERTY_SPINVALUE_MIN
= u
"SpinValueMin";
127 inline constexpr OUStringLiteral PROPERTY_SPINVALUE_MAX
= u
"SpinValueMax";
128 inline constexpr OUStringLiteral PROPERTY_DEFAULT_SPINVALUE
= u
"DefaultSpinValue";
129 inline constexpr OUStringLiteral PROPERTY_SPIN_INCREMENT
= u
"SpinIncrement";
130 inline constexpr OUStringLiteral PROPERTY_ORIENTATION
= u
"Orientation";
131 inline constexpr OUStringLiteral PROPERTY_TOGGLE
= u
"Toggle";
132 inline constexpr OUStringLiteral PROPERTY_FOCUS_ON_CLICK
= u
"FocusOnClick";
133 inline constexpr OUStringLiteral PROPERTY_VISUAL_EFFECT
= u
"VisualEffect";
134 inline constexpr OUStringLiteral PROPERTY_IMAGE_POSITION
= u
"ImagePosition";
135 inline constexpr OUStringLiteral PROPERTY_IMAGE_ALIGN
= u
"ImageAlign";
136 inline constexpr OUStringLiteral PROPERTY_SCALE_IMAGE
= u
"ScaleImage";
137 inline constexpr OUStringLiteral PROPERTY_GROUP_NAME
= u
"GroupName";
139 inline constexpr OUStringLiteral PROPERTY_BOUND_CELL
= u
"BoundCell";
140 inline constexpr OUStringLiteral PROPERTY_LIST_CELL_RANGE
= u
"CellRange";
141 inline constexpr OUStringLiteral PROPERTY_ADDRESS
= u
"Address";
142 inline constexpr OUStringLiteral PROPERTY_FILE_REPRESENTATION
= u
"PersistentRepresentation";
143 inline constexpr OUStringLiteral PROPERTY_RICH_TEXT
= u
"RichText";
146 inline constexpr OUStringLiteral SERVICE_SPREADSHEET_DOCUMENT
= u
"com.sun.star.sheet.SpreadsheetDocument";
147 inline constexpr OUStringLiteral SERVICE_CELLVALUEBINDING
= u
"com.sun.star.table.CellValueBinding";
148 inline constexpr OUStringLiteral SERVICE_LISTINDEXCELLBINDING
= u
"com.sun.star.table.ListPositionCellBinding";
149 inline constexpr OUStringLiteral SERVICE_CELLRANGELISTSOURCE
= u
"com.sun.star.table.CellRangeListSource";
150 inline constexpr OUStringLiteral SERVICE_ADDRESS_CONVERSION
= u
"com.sun.star.table.CellAddressConversion";
151 inline constexpr OUStringLiteral SERVICE_RANGEADDRESS_CONVERSION
= u
"com.sun.star.table.CellRangeAddressConversion";
153 // old service names (compatibility)
154 #define SERVICE_PERSISTENT_COMPONENT_FORM "stardiv.one.form.component.Form"
155 #define SERVICE_PERSISTENT_COMPONENT_EDIT "stardiv.one.form.component.Edit"
156 #define SERVICE_PERSISTENT_COMPONENT_LISTBOX "stardiv.one.form.component.ListBox"
157 #define SERVICE_PERSISTENT_COMPONENT_COMBOBOX "stardiv.one.form.component.ComboBox"
158 #define SERVICE_PERSISTENT_COMPONENT_RADIOBUTTON "stardiv.one.form.component.RadioButton"
159 #define SERVICE_PERSISTENT_COMPONENT_GROUPBOX "stardiv.one.form.component.GroupBox"
160 #define SERVICE_PERSISTENT_COMPONENT_FIXEDTEXT "stardiv.one.form.component.FixedText"
161 #define SERVICE_PERSISTENT_COMPONENT_COMMANDBUTTON "stardiv.one.form.component.CommandButton"
162 #define SERVICE_PERSISTENT_COMPONENT_CHECKBOX "stardiv.one.form.component.CheckBox"
163 #define SERVICE_PERSISTENT_COMPONENT_GRID "stardiv.one.form.component.Grid"
164 #define SERVICE_PERSISTENT_COMPONENT_IMAGEBUTTON "stardiv.one.form.component.ImageButton"
165 #define SERVICE_PERSISTENT_COMPONENT_FILECONTROL "stardiv.one.form.component.FileControl"
166 #define SERVICE_PERSISTENT_COMPONENT_TIMEFIELD "stardiv.one.form.component.TimeField"
167 #define SERVICE_PERSISTENT_COMPONENT_DATEFIELD "stardiv.one.form.component.DateField"
168 #define SERVICE_PERSISTENT_COMPONENT_NUMERICFIELD "stardiv.one.form.component.NumericField"
169 #define SERVICE_PERSISTENT_COMPONENT_CURRENCYFIELD "stardiv.one.form.component.CurrencyField"
170 #define SERVICE_PERSISTENT_COMPONENT_PATTERNFIELD "stardiv.one.form.component.PatternField"
171 #define SERVICE_PERSISTENT_COMPONENT_HIDDENCONTROL "stardiv.one.form.component.Hidden"
172 #define SERVICE_PERSISTENT_COMPONENT_IMAGECONTROL "stardiv.one.form.component.ImageControl"
173 #define SERVICE_PERSISTENT_COMPONENT_FORMATTEDFIELD "stardiv.one.form.component.FormattedField"
175 // new service names, the old ones are translated into this new ones
176 inline constexpr OUStringLiteral SERVICE_FORM
= u
"com.sun.star.form.component.Form";
177 inline constexpr OUStringLiteral SERVICE_EDIT
= u
"com.sun.star.form.component.TextField";
178 inline constexpr OUStringLiteral SERVICE_LISTBOX
= u
"com.sun.star.form.component.ListBox";
179 inline constexpr OUStringLiteral SERVICE_COMBOBOX
= u
"com.sun.star.form.component.ComboBox";
180 inline constexpr OUStringLiteral SERVICE_RADIOBUTTON
= u
"com.sun.star.form.component.RadioButton";
181 inline constexpr OUStringLiteral SERVICE_GROUPBOX
= u
"com.sun.star.form.component.GroupBox";
182 inline constexpr OUStringLiteral SERVICE_FIXEDTEXT
= u
"com.sun.star.form.component.FixedText";
183 inline constexpr OUStringLiteral SERVICE_COMMANDBUTTON
= u
"com.sun.star.form.component.CommandButton";
184 inline constexpr OUStringLiteral SERVICE_CHECKBOX
= u
"com.sun.star.form.component.CheckBox";
185 inline constexpr OUStringLiteral SERVICE_GRID
= u
"com.sun.star.form.component.GridControl";
186 inline constexpr OUStringLiteral SERVICE_IMAGEBUTTON
= u
"com.sun.star.form.component.ImageButton";
187 inline constexpr OUStringLiteral SERVICE_FILECONTROL
= u
"com.sun.star.form.component.FileControl";
188 inline constexpr OUStringLiteral SERVICE_TIMEFIELD
= u
"com.sun.star.form.component.TimeField";
189 inline constexpr OUStringLiteral SERVICE_DATEFIELD
= u
"com.sun.star.form.component.DateField";
190 inline constexpr OUStringLiteral SERVICE_NUMERICFIELD
= u
"com.sun.star.form.component.NumericField";
191 inline constexpr OUStringLiteral SERVICE_CURRENCYFIELD
= u
"com.sun.star.form.component.CurrencyField";
192 inline constexpr OUStringLiteral SERVICE_PATTERNFIELD
= u
"com.sun.star.form.component.PatternField";
193 inline constexpr OUStringLiteral SERVICE_HIDDENCONTROL
= u
"com.sun.star.form.component.HiddenControl";
194 inline constexpr OUStringLiteral SERVICE_IMAGECONTROL
= u
"com.sun.star.form.component.DatabaseImageControl";
195 inline constexpr OUStringLiteral SERVICE_FORMATTEDFIELD
= u
"com.sun.star.form.component.FormattedField";
198 #define EVENT_NAME_SEPARATOR "::"
199 inline constexpr OUStringLiteral EVENT_TYPE
= u
"EventType";
200 inline constexpr OUStringLiteral EVENT_LIBRARY
= u
"Library";
201 inline constexpr OUStringLiteral EVENT_LOCALMACRONAME
= u
"MacroName";
202 inline constexpr OUStringLiteral EVENT_SCRIPTURL
= u
"Script";
203 inline constexpr OUStringLiteral EVENT_STAROFFICE
= u
"StarOffice";
204 #define EVENT_STARBASIC "StarBasic"
205 inline constexpr OUStringLiteral EVENT_APPLICATION
= u
"application";
207 } // namespace xmloff
209 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */