1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef __com_sun_star_awt_UnoControlListBoxModel_idl__
29 #define __com_sun_star_awt_UnoControlListBoxModel_idl__
31 #include
<com
/sun
/star
/awt
/FontDescriptor.idl
>
32 #include
<com
/sun
/star
/awt
/UnoControlModel.idl
>
33 #include
<com
/sun
/star
/util
/Color.idl
>
34 #include
<com
/sun
/star
/awt
/XItemList.idl
>
36 //=============================================================================
38 module com
{ module sun
{ module star
{ module awt
{
40 //=============================================================================
42 /** specifies the standard model of an <type>UnoControlListBox</type>.
44 published service UnoControlListBoxModel
46 service com
::sun
::star
::awt
::UnoControlModel
;
48 //-------------------------------------------------------------------------
50 /** specifies the horizontal alignment of the text in the control.
58 [optional, property
] short Align
;
60 //-------------------------------------------------------------------------
62 /** specifies the background color (RGB) of the control.
64 [property
] com
::sun
::star
::util
::Color BackgroundColor
;
66 //-------------------------------------------------------------------------
68 /** specifies the border style of the control.
76 [property
] short Border
;
78 //-------------------------------------------------------------------------
80 /** specifies the color of the border, if present
82 <p>Not every border style (see <member>Border</member>) may support coloring.
83 For instance, usually a border with 3D effect will ignore the BorderColor setting.</p>
87 [optional, property
] long BorderColor
;
89 //-------------------------------------------------------------------------
91 /** specifies if the control has a drop down button.
93 [property
] boolean Dropdown
;
95 //-------------------------------------------------------------------------
97 /** determines whether the control is enabled or disabled.
99 [property
] boolean Enabled
;
101 //-------------------------------------------------------------------------
103 /** specifies the font attributes of the text in the control.
105 [property
] com
::sun
::star
::awt
::FontDescriptor FontDescriptor
;
107 //-------------------------------------------------------------------------
109 /** specifies the <type scope="com::sun::star::text">FontEmphasis</type>
110 value of the text in the control.
112 [property
] short FontEmphasisMark
;
114 //-------------------------------------------------------------------------
116 /** specifies the <type scope="com::sun::star::text">FontRelief</type>
117 value of the text in the control.
119 [property
] short FontRelief
;
121 //-------------------------------------------------------------------------
123 /** specifies the help text of the control.
125 [property
] string HelpText
;
127 //-------------------------------------------------------------------------
129 /** specifies the help URL of the control.
131 [property
] string HelpURL
;
133 //-------------------------------------------------------------------------
135 /** specifies the maximum line count displayed in the drop down box.
137 [property
] short LineCount
;
139 //-------------------------------------------------------------------------
141 /** specifies if more than one entry can be selected.
143 [property
] boolean MultiSelection
;
145 //-------------------------------------------------------------------------
147 /** specifies that the control will be printed with the document.
149 [property
] boolean Printable
;
151 //-------------------------------------------------------------------------
153 /** specifies that the content of the control cannot be modified by the user.
155 [property
] boolean ReadOnly;
157 //-------------------------------------------------------------------------
159 /** specifies the sequence of selected items, identified by the position.
161 [property
] sequence
<short> SelectedItems
;
163 //-------------------------------------------------------------------------
165 /** specifies the list of items.
167 [property
] sequence
<string> StringItemList
;
169 //-------------------------------------------------------------------------
171 /** specifies that the control can be reached with the TAB key.
173 [property
] boolean Tabstop
;
175 //-------------------------------------------------------------------------
177 /** specifies the text color (RGB) of the control.
179 [property
] com
::sun
::star
::util
::Color TextColor
;
181 //-------------------------------------------------------------------------
183 /** specifies the text line color (RGB) of the control.
185 [property
] com
::sun
::star
::util
::Color TextLineColor
;
187 /** denotes the writing mode used in the control, as specified in the
188 <type scope="com::sun::star::text">WritingMode2</type> constants group.
190 <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and
191 <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p>
195 [optional, property
] short WritingMode
;
197 /** defines how the mouse wheel can be used to scroll through the control's content.
199 <p>Usually, the mouse wheel scroll through the control's entry list. Using this property,
200 and one of the <type>MouseWheelBehavior</type> constants, you can control under which circumstances
201 this is possible.</p>
203 [optional, property
] short MouseWheelBehavior
;
205 /** allows manipulating the list of items in the list box more fine-grained than the
206 <member>StringItemList</member> property.
210 [optional] interface XItemList
;
212 /** specifies where an item separator - a horizontal line - is drawn.
214 <p>If this is not <NULL/>, then a horizontal line will be drawn between the item at the given position,
215 and the following item.</p>
219 [optional, property
, maybevoid
] short ItemSeparatorPos
;
222 //=============================================================================
228 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */