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 .
21 module com
{ module sun
{ module star
{ module awt
{
24 /** specifies the standard model of a UnoControlListBox.
26 published service UnoControlListBoxModel
28 service com
::sun
::star
::awt
::UnoControlModel
;
31 /** specifies the horizontal alignment of the text in the control.
39 [optional, property
] short Align
;
42 /** specifies the background color (RGB) of the control.
44 [property
] com
::sun
::star
::util
::Color BackgroundColor
;
47 /** specifies the border style of the control.
55 [property
] short Border
;
58 /** specifies the color of the border, if present
60 <p>Not every border style (see #Border) may support coloring.
61 For instance, usually a border with 3D effect will ignore the BorderColor setting.</p>
65 [optional, property
] long BorderColor
;
68 /** specifies if the control has a drop down button.
70 [property
] boolean Dropdown
;
73 /** determines whether the control is enabled or disabled.
75 [property
] boolean Enabled
;
78 /** specifies the font attributes of the text in the control.
80 [property
] com
::sun
::star
::awt
::FontDescriptor FontDescriptor
;
83 /** specifies the com::sun::star::text::FontEmphasis
84 value of the text in the control.
86 [property
] short FontEmphasisMark
;
89 /** specifies the com::sun::star::text::FontRelief
90 value of the text in the control.
92 [property
] short FontRelief
;
95 /** specifies the help text of the control.
97 [property
] string HelpText
;
100 /** specifies the help URL of the control.
102 [property
] string HelpURL
;
105 /** specifies the maximum line count displayed in the drop down box.
107 [property
] short LineCount
;
110 /** specifies if more than one entry can be selected.
112 [property
] boolean MultiSelection
;
115 /** specifies that the control will be printed with the document.
117 [property
] boolean Printable
;
120 /** specifies that the content of the control cannot be modified by the user.
122 [property
] boolean ReadOnly;
125 /** specifies the sequence of selected items, identified by the position.
127 [property
] sequence
<short> SelectedItems
;
130 /** specifies the list of items.
132 [property
] sequence
<string> StringItemList
;
135 /** specifies that the control can be reached with the TAB key.
137 [property
] boolean Tabstop
;
140 /** specifies the text color (RGB) of the control.
142 [property
] com
::sun
::star
::util
::Color TextColor
;
145 /** specifies the text line color (RGB) of the control.
147 [property
] com
::sun
::star
::util
::Color TextLineColor
;
149 /** denotes the writing mode used in the control, as specified in the
150 com::sun::star::text::WritingMode2 constants group.
152 <p>Only com::sun::star::text::WritingMode2::LR_TB and
153 com::sun::star::text::WritingMode2::RL_TB are supported at the moment.</p>
157 [optional, property
] short WritingMode
;
159 /** defines how the mouse wheel can be used to scroll through the control's content.
161 <p>Usually, the mouse wheel scroll through the control's entry list. Using this property,
162 and one of the MouseWheelBehavior constants, you can control under which circumstances
163 this is possible.</p>
165 [optional, property
] short MouseWheelBehavior
;
167 /** allows manipulating the list of items in the list box more fine-grained than the
168 #StringItemList property.
172 [optional] interface XItemList
;
174 /** specifies where an item separator - a horizontal line - is drawn.
176 <p>If this is not `NULL`, then a horizontal line will be drawn between the item at the given position,
177 and the following item.</p>
181 [optional, property
, maybevoid
] short ItemSeparatorPos
;
183 /** specifies the list of raw typed (not stringized) items.
185 <p>This list corresponds with the StringItemList and if given
186 has to be of the same length, the elements' positions matching
187 those of their string representation in StringItemList.</p>
189 @since LibreOffice 5.4
191 [optional, property
] sequence
<any
> TypedItemList
;
193 /** specifies the background color (RGB) of selected items in the control which are highlighted.
195 @since LibreOffice 7.5
197 [optional, property
] com
::sun
::star
::util
::Color HighlightColor
;
199 /** specifies the text color (RGB) of selected items in the control which are highlighted.
201 @since LibreOffice 7.5
203 [optional, property
] com
::sun
::star
::util
::Color HighlightTextColor
;
209 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */