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 .
19 #ifndef __com_sun_star_awt_UnoControlComboBoxModel_idl__
20 #define __com_sun_star_awt_UnoControlComboBoxModel_idl__
22 #include
<com
/sun
/star
/awt
/FontDescriptor.idl
>
23 #include
<com
/sun
/star
/awt
/UnoControlModel.idl
>
25 #include
<com
/sun
/star
/util
/Color.idl
>
27 #include
<com
/sun
/star
/awt
/XItemList.idl
>
30 module com
{ module sun
{ module star
{ module awt
{
33 /** specifies the standard model of an <type>UnoControlComboBox</type>.
35 published service UnoControlComboBoxModel
37 service com
::sun
::star
::awt
::UnoControlModel
;
40 /** specifies the horizontal alignment of the text in the control.
48 [optional, property
] short Align
;
51 /** specifies whether automatic completion of text is enabled.
53 [property
] boolean Autocomplete
;
56 /** specifies the background color (RGB) of the control.
58 [property
] com
::sun
::star
::util
::Color BackgroundColor
;
61 /** specifies the border style of the control.
69 [property
] short Border
;
72 /** specifies the color of the border, if present
74 <p>Not every border style (see <member>Border</member>) may support coloring.
75 For instance, usually a border with 3D effect will ignore the BorderColor setting.</p>
79 [optional, property
] long BorderColor
;
82 /** specifies if the control has a drop down button.
84 [property
] boolean Dropdown
;
87 /** determines whether the control is enabled or disabled.
89 [property
] boolean Enabled
;
92 /** specifies the font attributes of the text in the control.
94 [property
] com
::sun
::star
::awt
::FontDescriptor FontDescriptor
;
97 /** specifies the <type scope="com::sun::star::text">FontEmphasis</type>
98 value of the text in the control.
100 [property
] short FontEmphasisMark
;
103 /** specifies the <type scope="com::sun::star::text">FontRelief</type>
104 value of the text in the control.
106 [property
] short FontRelief
;
109 /** specifies the help text of the control.
111 [property
] string HelpText
;
114 /** specifies the help URL of the control.
116 [property
] string HelpURL
;
119 /** specifies whether the selection in the control should be hidden when
120 the control is not active (focused).
124 [optional, property
] boolean HideInactiveSelection
;
127 /** specifies the maximum line count displayed in the drop down box.
129 [property
] short LineCount
;
132 /** specifies the maximum character count.
134 <p>There's no limitation, if set to 0.</p>
136 [property
] short MaxTextLen
;
139 /** specifies that the control will be printed with the document.
141 [property
] boolean Printable
;
144 /** specifies that the content of the control cannot be modified by the user.
146 [property
] boolean ReadOnly;
149 /** specifies the list of items.
151 [property
] sequence
<string> StringItemList
;
154 /** specifies that the control can be reached with the TAB key.
156 [property
] boolean Tabstop
;
159 /** specifies the text displayed in the control.
161 [property
] string Text
;
164 /** specifies the text color (RGB) of the control.
166 [property
] com
::sun
::star
::util
::Color TextColor
;
169 /** specifies the text line color (RGB) of the control.
171 [property
] com
::sun
::star
::util
::Color TextLineColor
;
173 /** denotes the writing mode used in the control, as specified in the
174 <type scope="com::sun::star::text">WritingMode2</type> constants group.
176 <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and
177 <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p>
181 [optional, property
] short WritingMode
;
183 /** defines how the mouse wheel can be used to scroll through the control's content.
185 <p>Usually, the mouse wheel scroll through the control's entry list. Using this property,
186 and one of the <type>MouseWheelBehavior</type> constants, you can control under which circumstances
187 this is possible.</p>
189 [optional, property
] short MouseWheelBehavior
;
191 /** allows manipulating the list of items in the combo box more fine-grained than the
192 <member>StringItemList</member> property.
194 [optional] interface XItemList
;
202 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */