Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / awt / UnoControlCheckBoxModel.idl
blobfd669005dbbac1966103e6530cf6b0021f3a89c7
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: UnoControlCheckBoxModel.idl,v $
10 * $Revision: 1.13 $
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>
35 #endif
36 #ifndef __com_sun_star_awt_UnoControlModel_idl__
37 #include <com/sun/star/awt/UnoControlModel.idl>
38 #endif
39 #ifndef __com_sun_star_style_VerticalAlignment_idl__
40 #include <com/sun/star/style/VerticalAlignment.idl>
41 #endif
42 #ifndef __com_sun_star_util_Color_idl__
43 #include <com/sun/star/util/Color.idl>
44 #endif
45 #ifndef com_sun_star_graphic_XGraphic_idl
46 #include <com/sun/star/graphic/XGraphic.idl>
47 #endif
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.
65 <pre>
66 0: left
67 1: center
68 2: right
69 </pre>
71 @since OOo 2.0.0
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
130 @see Graphic
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
139 following way:
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>
145 </ul></p>
147 @since OOo 2.1
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.
161 @since OOo 2.0.0
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.
175 <pre>
176 0: not checked
177 1: checked
178 2: don't know
179 </pre>
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.
211 @since OOo 2.0.0
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
224 @since OOo 2.0.0
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>
234 @since OOo 3.1
236 [optional, property] short WritingMode;
239 //=============================================================================
241 }; }; }; };
243 #endif