1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: UnoControlCheckBoxModel.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_awt_UnoControlCheckBoxModel_idl__
31 #define __com_sun_star_awt_UnoControlCheckBoxModel_idl__
33 #ifndef __com_sun_star_awt_FontDescriptor_idl__
34 #include
<com
/sun
/star
/awt
/FontDescriptor.idl
>
36 #ifndef __com_sun_star_awt_UnoControlModel_idl__
37 #include
<com
/sun
/star
/awt
/UnoControlModel.idl
>
39 #ifndef __com_sun_star_style_VerticalAlignment_idl__
40 #include
<com
/sun
/star
/style
/VerticalAlignment.idl
>
42 #ifndef __com_sun_star_util_Color_idl__
43 #include
<com
/sun
/star
/util
/Color.idl
>
45 #ifndef com_sun_star_graphic_XGraphic_idl
46 #include
<com
/sun
/star
/graphic
/XGraphic.idl
>
49 //=============================================================================
51 module com
{ module sun
{ module star
{ module awt
{
53 //=============================================================================
55 /** specifies the standard model of an <type>UnoControlCheckBox</type>.
57 published service UnoControlCheckBoxModel
59 service com
::sun
::star
::awt
::UnoControlModel
;
61 //-------------------------------------------------------------------------
63 /** specifies the horizontal alignment of the text in the control.
73 [optional, property
] short Align
;
75 //-------------------------------------------------------------------------
77 /** specifies the background color (RGB) of the control.
79 [optional, property
] long BackgroundColor
;
81 //-------------------------------------------------------------------------
83 /** determines whether the control is enabled or disabled.
85 [property
] boolean Enabled
;
87 //-------------------------------------------------------------------------
89 /** specifies the font attributes of the text in the control.
91 [property
] com
::sun
::star
::awt
::FontDescriptor FontDescriptor
;
93 //-------------------------------------------------------------------------
95 /** specifies the <type scope="com::sun::star::text">FontEmphasis</type>
96 value of the text in the control.
98 [property
] short FontEmphasisMark
;
100 //-------------------------------------------------------------------------
102 /** specifies the <type scope="com::sun::star::text">FontRelief</type>
103 value of the text in the control.
105 [property
] short FontRelief
;
107 //-------------------------------------------------------------------------
109 /** specifies the help text of the control.
111 [property
] string HelpText
;
113 //-------------------------------------------------------------------------
115 /** specifies the help URL of the control.
117 [property
] string HelpURL
;
119 //-------------------------------------------------------------------------
121 /** specifies the position of the image, if any, relative to the text, if any
123 <p>Valid values of this property are specified with <type>ImagePosition</type>.</p>
125 [optional, property
] short ImagePosition
;
127 //-------------------------------------------------------------------------
129 /** specifies an URL to an image to display besides the label of the control
132 [optional, property
] string ImageURL
;
134 //-------------------------------------------------------------------------
136 /** specifies a graphic to be displayed besides the label of the control
138 <p>If this property is present, it interacts with the <member>ImageURL</member>in the
140 <ul><li>If <member>ImageURL</member> is set, <member>Graphic</member> will be reset
141 to an object as loaded from the given image URL, or <NULL/> if <member>ImageURL</member>
142 does not point to a valid image file.</li>
143 <li>If <member>Graphic</member> is set, <member>ImageURL</member> will be reset
144 to an empty string.</li>
149 [optional, property
, transient
] com
::sun
::star
::graphic
::XGraphic Graphic
;
151 //-------------------------------------------------------------------------
153 /** specifies the label of the control.
155 [property
] string Label
;
157 //-------------------------------------------------------------------------
159 /** specifies that the text may be displayed on more than one line.
163 [optional, property
] boolean MultiLine
;
165 //-------------------------------------------------------------------------
167 /** specifies that the control will be printed with the document.
169 [property
] boolean Printable
;
171 //-------------------------------------------------------------------------
173 /** specifies the state of the control.
181 [property
] short State
;
183 //-------------------------------------------------------------------------
185 /** specifies that the control can be reached with the TAB key.
187 [property
] boolean Tabstop
;
189 //-------------------------------------------------------------------------
191 /** specifies the text color (RGB) of the control.
193 [property
] com
::sun
::star
::util
::Color TextColor
;
195 //-------------------------------------------------------------------------
197 /** specifies the text line color (RGB) of the control.
199 [property
] com
::sun
::star
::util
::Color TextLineColor
;
201 //-------------------------------------------------------------------------
203 /** specifies that the control may have the state "don't know".
205 [property
] boolean TriState
;
207 //-------------------------------------------------------------------------
209 /** specifies the vertical alignment of the text in the control.
213 [optional, property
] com
::sun
::star
::style
::VerticalAlignment VerticalAlign
;
215 //-------------------------------------------------------------------------
217 /** specifies a visual effect to apply to the check box control
219 <p>Possible values for this property are <type>VisualEffect</type>::FLAT and
220 <type>VisualEffect</type>::LOOK3D.</p>
222 @see com::sun::star::awt::VisualEffect
226 [optional, property
] short VisualEffect
;
228 /** denotes the writing mode used in the control, as specified in the
229 <type scope="com::sun::star::text">WritingMode2</type> constants group.
231 <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and
232 <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p>
236 [optional, property
] short WritingMode
;
239 //=============================================================================