tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / offapi / com / sun / star / awt / UnoControlComboBoxModel.idl
blob929586f5f5fcc520f47fd88125b77d5847617a37
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 .
21 module com { module sun { module star { module awt {
24 /** specifies the standard model of a UnoControlComboBox.
26 published service UnoControlComboBoxModel
28 service com::sun::star::awt::UnoControlModel;
31 /** specifies the horizontal alignment of the text in the control.
33 <pre>
34 0: left
35 1: center
36 2: right
37 </pre>
39 [optional, property] short Align;
42 /** specifies whether automatic completion of text is enabled.
44 [property] boolean Autocomplete;
47 /** specifies the background color (RGB) of the control.
49 [property] com::sun::star::util::Color BackgroundColor;
52 /** specifies the border style of the control.
54 <pre>
55 0: No border
56 1: 3D border
57 2: simple border
58 </pre>
60 [property] short Border;
63 /** specifies the color of the border, if present
65 <p>Not every border style (see #Border) may support coloring.
66 For instance, usually a border with 3D effect will ignore the BorderColor setting.</p>
68 @since OOo 2.0
70 [optional, property] long BorderColor;
73 /** specifies if the control has a drop down button.
75 [property] boolean Dropdown;
78 /** determines whether the control is enabled or disabled.
80 [property] boolean Enabled;
83 /** specifies the font attributes of the text in the control.
85 [property] com::sun::star::awt::FontDescriptor FontDescriptor;
88 /** specifies the com::sun::star::text::FontEmphasis
89 value of the text in the control.
91 [property] short FontEmphasisMark;
94 /** specifies the com::sun::star::text::FontRelief
95 value of the text in the control.
97 [property] short FontRelief;
100 /** specifies the help text of the control.
102 [property] string HelpText;
105 /** specifies the help URL of the control.
107 [property] string HelpURL;
110 /** specifies whether the selection in the control should be hidden when
111 the control is not active (focused).
113 @since OOo 2.0
115 [optional, property] boolean HideInactiveSelection;
118 /** specifies the maximum line count displayed in the drop down box.
120 [property] short LineCount;
123 /** specifies the maximum character count.
125 <p>There's no limitation, if set to 0.</p>
127 [property] short MaxTextLen;
130 /** specifies that the control will be printed with the document.
132 [property] boolean Printable;
135 /** specifies that the content of the control cannot be modified by the user.
137 [property] boolean ReadOnly;
140 /** specifies the list of items.
142 [property] sequence<string> StringItemList;
145 /** specifies that the control can be reached with the TAB key.
147 [property] boolean Tabstop;
150 /** specifies the text displayed in the control.
152 [property] string Text;
155 /** specifies the text color (RGB) of the control.
157 [property] com::sun::star::util::Color TextColor;
160 /** specifies the text line color (RGB) of the control.
162 [property] com::sun::star::util::Color TextLineColor;
164 /** denotes the writing mode used in the control, as specified in the
165 com::sun::star::text::WritingMode2 constants group.
167 <p>Only com::sun::star::text::WritingMode2::LR_TB and
168 com::sun::star::text::WritingMode2::RL_TB are supported at the moment.</p>
170 @since OOo 3.1
172 [optional, property] short WritingMode;
174 /** defines how the mouse wheel can be used to scroll through the control's content.
176 <p>Usually, the mouse wheel scroll through the control's entry list. Using this property,
177 and one of the MouseWheelBehavior constants, you can control under which circumstances
178 this is possible.</p>
180 [optional, property] short MouseWheelBehavior;
182 /** allows manipulating the list of items in the combo box more fine-grained than the
183 #StringItemList property.
185 [optional] interface XItemList;
187 /** specifies the list of raw typed (not stringized) items.
189 <p>This list corresponds with the StringItemList and if given
190 has to be of the same length, the elements' positions matching
191 those of their string representation in StringItemList.</p>
193 <p>If a new value is entered via the ComboBox edit then this
194 list will be invalidated.</p>
196 @since LibreOffice 5.4
198 [optional, property] sequence<any> TypedItemList;
200 /** specifies the background color (RGB) of selected items in the control which are highlighted.
202 @since LibreOffice 7.5
204 [optional, property] com::sun::star::util::Color HighlightColor;
206 /** specifies the text color (RGB) of selected items in the control which are highlighted.
208 @since LibreOffice 7.5
210 [optional, property] com::sun::star::util::Color HighlightTextColor;
214 }; }; }; };
216 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */