Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / awt / UnoControlCheckBoxModel.idl
blobdbec16726396f1129ae9ae5df9f20b28adab1422
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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_UnoControlCheckBoxModel_idl__
20 #define __com_sun_star_awt_UnoControlCheckBoxModel_idl__
22 #include <com/sun/star/awt/FontDescriptor.idl>
23 #include <com/sun/star/awt/UnoControlModel.idl>
24 #include <com/sun/star/style/VerticalAlignment.idl>
25 #include <com/sun/star/util/Color.idl>
26 #include <com/sun/star/graphic/XGraphic.idl>
29 module com { module sun { module star { module awt {
32 /** specifies the standard model of an UnoControlCheckBox.
34 published service UnoControlCheckBoxModel
36 service com::sun::star::awt::UnoControlModel;
39 /** specifies the horizontal alignment of the text in the control.
41 <pre>
42 0: left
43 1: center
44 2: right
45 </pre>
47 @since OOo 2.0
49 [optional, property] short Align;
52 /** specifies the background color (RGB) of the control.
54 [optional, property] long BackgroundColor;
57 /** determines whether the control is enabled or disabled.
59 [property] boolean Enabled;
62 /** specifies the font attributes of the text in the control.
64 [property] com::sun::star::awt::FontDescriptor FontDescriptor;
67 /** specifies the com::sun::star::text::FontEmphasis
68 value of the text in the control.
70 [property] short FontEmphasisMark;
73 /** specifies the com::sun::star::text::FontRelief
74 value of the text in the control.
76 [property] short FontRelief;
79 /** specifies the help text of the control.
81 [property] string HelpText;
84 /** specifies the help URL of the control.
86 [property] string HelpURL;
89 /** specifies the position of the image, if any, relative to the text, if any
91 <p>Valid values of this property are specified with ImagePosition.</p>
93 [optional, property] short ImagePosition;
96 /** specifies an URL to an image to display besides the label of the control
97 @see Graphic
99 [optional, property] string ImageURL;
102 /** specifies a graphic to be displayed besides the label of the control
104 <p>If this property is present, it interacts with the #ImageURL in the
105 following way:
106 <ul><li>If #ImageURL is set, #Graphic will be reset
107 to an object as loaded from the given image URL, or `NULL` if #ImageURL
108 does not point to a valid image file.</li>
109 <li>If #Graphic is set, #ImageURL will be reset
110 to an empty string.</li>
111 </ul></p>
113 @since OOo 2.1
115 [optional, property, transient] com::sun::star::graphic::XGraphic Graphic;
118 /** specifies the label of the control.
120 [property] string Label;
123 /** specifies that the text may be displayed on more than one line.
125 @since OOo 2.0
127 [optional, property] boolean MultiLine;
130 /** specifies that the control will be printed with the document.
132 [property] boolean Printable;
135 /** specifies the state of the control.
137 <pre>
138 0: not checked
139 1: checked
140 2: don't know
141 </pre>
143 [property] short State;
146 /** specifies that the control can be reached with the TAB key.
148 [property] boolean Tabstop;
151 /** specifies the text color (RGB) of the control.
153 [property] com::sun::star::util::Color TextColor;
156 /** specifies the text line color (RGB) of the control.
158 [property] com::sun::star::util::Color TextLineColor;
161 /** specifies that the control may have the state "don't know".
163 [property] boolean TriState;
166 /** specifies the vertical alignment of the text in the control.
168 @since OOo 2.0
170 [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign;
173 /** specifies a visual effect to apply to the check box control
175 <p>Possible values for this property are VisualEffect::FLAT and
176 VisualEffect::LOOK3D.</p>
178 @see com::sun::star::awt::VisualEffect
180 @since OOo 2.0
182 [optional, property] short VisualEffect;
184 /** denotes the writing mode used in the control, as specified in the
185 com::sun::star::text::WritingMode2 constants group.
187 <p>Only com::sun::star::text::WritingMode2::LR_TB and
188 com::sun::star::text::WritingMode2::RL_TB are supported at the moment.</p>
190 @since OOo 3.1
192 [optional, property] short WritingMode;
196 }; }; }; };
198 #endif
200 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */