LibreOffice Module xmloff (master)  1
strings.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 
20 #pragma once
21 
22 #include <rtl/ustring.hxx>
23 
24 namespace xmloff
25 {
26 
27  // properties
28  #define PROPERTY_CLASSID "ClassId"
29  #define PROPERTY_ECHOCHAR "EchoChar"
30  #define PROPERTY_MULTILINE "MultiLine"
31  #define PROPERTY_NAME "Name"
32  #define PROPERTY_GRAPHIC "Graphic"
33  #define PROPERTY_LABEL "Label"
34  #define PROPERTY_TARGETFRAME "TargetFrame"
35  #define PROPERTY_TARGETURL "TargetURL"
36  #define PROPERTY_TITLE "Tag"
37  #define PROPERTY_DROPDOWN "Dropdown"
38  #define PROPERTY_PRINTABLE "Printable"
39  #define PROPERTY_READONLY "ReadOnly"
40  #define PROPERTY_DEFAULT_STATE "DefaultState"
41  #define PROPERTY_TABSTOP "Tabstop"
42  #define PROPERTY_STATE "State"
43  #define PROPERTY_ENABLED "Enabled"
44  #define PROPERTY_ENABLEVISIBLE "EnableVisible"
45  #define PROPERTY_MAXTEXTLENGTH "MaxTextLen"
46  #define PROPERTY_LINECOUNT "LineCount"
47  #define PROPERTY_TABINDEX "TabIndex"
48  #define PROPERTY_COMMAND "Command"
49  #define PROPERTY_DATASOURCENAME "DataSourceName"
50  #define PROPERTY_FILTER "Filter"
51  #define PROPERTY_ORDER "Order"
52  #define PROPERTY_ALLOWDELETES "AllowDeletes"
53  #define PROPERTY_ALLOWINSERTS "AllowInserts"
54  #define PROPERTY_ALLOWUPDATES "AllowUpdates"
55  #define PROPERTY_APPLYFILTER "ApplyFilter"
56  #define PROPERTY_ESCAPEPROCESSING "EscapeProcessing"
57  #define PROPERTY_IGNORERESULT "IgnoreResult"
58  #define PROPERTY_SUBMIT_ENCODING "SubmitEncoding"
59  #define PROPERTY_SUBMIT_METHOD "SubmitMethod"
60  #define PROPERTY_COMMAND_TYPE "CommandType"
61  #define PROPERTY_NAVIGATION "NavigationBarMode"
62  #define PROPERTY_CYCLE "Cycle"
63  #define PROPERTY_BUTTONTYPE "ButtonType"
64  #define PROPERTY_DATAFIELD "DataField"
65  #define PROPERTY_BOUNDCOLUMN "BoundColumn"
66  #define PROPERTY_EMPTY_IS_NULL "ConvertEmptyToNull"
67  #define PROPERTY_INPUT_REQUIRED "InputRequired"
68  #define PROPERTY_LISTSOURCE "ListSource"
69  #define PROPERTY_LISTSOURCETYPE "ListSourceType"
70  #define PROPERTY_ECHO_CHAR "EchoChar"
71  #define PROPERTY_STRICTFORMAT "StrictFormat"
72  #define PROPERTY_AUTOCOMPLETE "Autocomplete"
73  #define PROPERTY_MULTISELECTION "MultiSelection"
74  #define PROPERTY_DEFAULTBUTTON "DefaultButton"
75  #define PROPERTY_TRISTATE "TriState"
76  #define PROPERTY_CONTROLLABEL "LabelControl"
77  #define PROPERTY_STRING_ITEM_LIST "StringItemList"
78  #define PROPERTY_VALUE_SEQ "ValueItemList"
79  #define PROPERTY_DEFAULT_SELECT_SEQ "DefaultSelection"
80  #define PROPERTY_SELECT_SEQ "SelectedItems"
81  #define PROPERTY_DATE_MIN "DateMin"
82  #define PROPERTY_DATE_MAX "DateMax"
83  #define PROPERTY_TIME_MIN "TimeMin"
84  #define PROPERTY_TIME_MAX "TimeMax"
85  #define PROPERTY_VALUE_MIN "ValueMin"
86  #define PROPERTY_VALUE_MAX "ValueMax"
87  #define PROPERTY_EFFECTIVE_MIN "EffectiveMin"
88  #define PROPERTY_EFFECTIVE_MAX "EffectiveMax"
89  #define PROPERTY_DEFAULT_DATE "DefaultDate"
90  #define PROPERTY_DATE "Date"
91  #define PROPERTY_DEFAULT_TIME "DefaultTime"
92  #define PROPERTY_TIME "Time"
93  #define PROPERTY_DEFAULT_VALUE "DefaultValue"
94  #define PROPERTY_VALUE "Value"
95  #define PROPERTY_HIDDEN_VALUE "HiddenValue"
96  #define PROPERTY_DEFAULT_TEXT "DefaultText"
97  #define PROPERTY_TEXT "Text"
98  #define PROPERTY_EFFECTIVE_VALUE "EffectiveValue"
99  #define PROPERTY_EFFECTIVE_DEFAULT "EffectiveDefault"
100  #define PROPERTY_REFVALUE "RefValue"
101  #define PROPERTY_URL "URL"
102  #define PROPERTY_FONT "FontDescriptor"
103  #define PROPERTY_BACKGROUNDCOLOR "BackgroundColor"
104  #define PROPERTY_MASTERFIELDS "MasterFields"
105  #define PROPERTY_DETAILFIELDS "DetailFields"
106  #define PROPERTY_COLUMNSERVICENAME "ColumnServiceName"
107  #define PROPERTY_FORMATKEY "FormatKey"
108  #define PROPERTY_ALIGN "Align"
109  #define PROPERTY_BORDER "Border"
110  #define PROPERTY_AUTOCONTROLFOCUS "AutomaticControlFocus"
111  #define PROPERTY_APPLYDESIGNMODE "ApplyFormDesignMode"
112  #define PROPERTY_FORMATSSUPPLIER "FormatsSupplier"
113  #define PROPERTY_LOCALE "Locale"
114  #define PROPERTY_FORMATSTRING "FormatString"
115  #define PROPERTY_DATEFORMAT "DateFormat"
116  #define PROPERTY_TIMEFORMAT "TimeFormat"
117  #define PROPERTY_PERSISTENCE_MAXTEXTLENGTH "PersistenceMaxTextLength"
118  #define PROPERTY_SCROLLVALUE_MIN "ScrollValueMin"
119  #define PROPERTY_SCROLLVALUE_MAX "ScrollValueMax"
120  #define PROPERTY_SCROLLVALUE "ScrollValue"
121  #define PROPERTY_SCROLLVALUE_DEFAULT "DefaultScrollValue"
122  #define PROPERTY_LINE_INCREMENT "LineIncrement"
123  #define PROPERTY_BLOCK_INCREMENT "BlockIncrement"
124  #define PROPERTY_REPEAT_DELAY "RepeatDelay"
125  #define PROPERTY_SPINVALUE "SpinValue"
126  #define PROPERTY_SPINVALUE_MIN "SpinValueMin"
127  #define PROPERTY_SPINVALUE_MAX "SpinValueMax"
128  #define PROPERTY_DEFAULT_SPINVALUE "DefaultSpinValue"
129  #define PROPERTY_SPIN_INCREMENT "SpinIncrement"
130  #define PROPERTY_ORIENTATION "Orientation"
131  #define PROPERTY_TOGGLE "Toggle"
132  #define PROPERTY_FOCUS_ON_CLICK "FocusOnClick"
133  #define PROPERTY_VISUAL_EFFECT "VisualEffect"
134  #define PROPERTY_IMAGE_POSITION "ImagePosition"
135  #define PROPERTY_IMAGE_ALIGN "ImageAlign"
136  #define PROPERTY_SCALE_IMAGE "ScaleImage"
137  #define PROPERTY_GROUP_NAME "GroupName"
138 
139  #define PROPERTY_BOUND_CELL "BoundCell"
140  #define PROPERTY_LIST_CELL_RANGE "CellRange"
141  #define PROPERTY_ADDRESS "Address"
142  #define PROPERTY_FILE_REPRESENTATION "PersistentRepresentation"
143  #define PROPERTY_RICH_TEXT "RichText"
144 
145  // services
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";
152 
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"
174 
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";
196 
197  // various strings
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";
206 
207 } // namespace xmloff
208 
209 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
constexpr OUStringLiteral SERVICE_CHECKBOX
Definition: strings.hxx:184
constexpr OUStringLiteral SERVICE_FIXEDTEXT
Definition: strings.hxx:182
constexpr OUStringLiteral SERVICE_TIMEFIELD
Definition: strings.hxx:188
constexpr OUStringLiteral SERVICE_RADIOBUTTON
Definition: strings.hxx:180
constexpr OUStringLiteral SERVICE_FORMATTEDFIELD
Definition: strings.hxx:195
constexpr OUStringLiteral SERVICE_SPREADSHEET_DOCUMENT
Definition: strings.hxx:146
constexpr OUStringLiteral SERVICE_COMMANDBUTTON
Definition: strings.hxx:183
constexpr OUStringLiteral SERVICE_GRID
Definition: strings.hxx:185
constexpr OUStringLiteral SERVICE_EDIT
Definition: strings.hxx:177
constexpr OUStringLiteral SERVICE_NUMERICFIELD
Definition: strings.hxx:190
constexpr OUStringLiteral SERVICE_COMBOBOX
Definition: strings.hxx:179
constexpr OUStringLiteral SERVICE_DATEFIELD
Definition: strings.hxx:189
constexpr OUStringLiteral SERVICE_CELLRANGELISTSOURCE
Definition: strings.hxx:149
constexpr OUStringLiteral EVENT_LOCALMACRONAME
Definition: strings.hxx:201
constexpr OUStringLiteral SERVICE_CURRENCYFIELD
Definition: strings.hxx:191
constexpr OUStringLiteral EVENT_SCRIPTURL
Definition: strings.hxx:202
float u
constexpr OUStringLiteral EVENT_STAROFFICE
Definition: strings.hxx:203
constexpr OUStringLiteral SERVICE_FILECONTROL
Definition: strings.hxx:187
constexpr OUStringLiteral EVENT_LIBRARY
Definition: strings.hxx:200
constexpr OUStringLiteral SERVICE_GROUPBOX
Definition: strings.hxx:181
constexpr OUStringLiteral SERVICE_PATTERNFIELD
Definition: strings.hxx:192
constexpr OUStringLiteral SERVICE_ADDRESS_CONVERSION
Definition: strings.hxx:150
constexpr OUStringLiteral SERVICE_LISTBOX
Definition: strings.hxx:178
constexpr OUStringLiteral SERVICE_CELLVALUEBINDING
Definition: strings.hxx:147
constexpr OUStringLiteral SERVICE_RANGEADDRESS_CONVERSION
Definition: strings.hxx:151
constexpr OUStringLiteral SERVICE_FORM
Definition: strings.hxx:176
constexpr OUStringLiteral SERVICE_LISTINDEXCELLBINDING
Definition: strings.hxx:148
constexpr OUStringLiteral SERVICE_IMAGEBUTTON
Definition: strings.hxx:186
constexpr OUStringLiteral SERVICE_HIDDENCONTROL
Definition: strings.hxx:193
constexpr OUStringLiteral EVENT_APPLICATION
Definition: strings.hxx:205
constexpr OUStringLiteral SERVICE_IMAGECONTROL
Definition: strings.hxx:194
constexpr OUStringLiteral EVENT_TYPE
Definition: strings.hxx:199