1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23#ifndef __com_sun_star_awt_UnoControlCheckBoxModel_idl__ 24#define __com_sun_star_awt_UnoControlCheckBoxModel_idl__ 25 26#ifndef __com_sun_star_awt_FontDescriptor_idl__ 27#include <com/sun/star/awt/FontDescriptor.idl> 28#endif 29#ifndef __com_sun_star_awt_UnoControlModel_idl__ 30#include <com/sun/star/awt/UnoControlModel.idl> 31#endif 32#ifndef __com_sun_star_style_VerticalAlignment_idl__ 33#include <com/sun/star/style/VerticalAlignment.idl> 34#endif 35#ifndef __com_sun_star_util_Color_idl__ 36#include <com/sun/star/util/Color.idl> 37#endif 38#ifndef com_sun_star_graphic_XGraphic_idl 39#include <com/sun/star/graphic/XGraphic.idl> 40#endif 41 42//============================================================================= 43 44 module com { module sun { module star { module awt { 45 46//============================================================================= 47 48/** specifies the standard model of an <type>UnoControlCheckBox</type>. 49 */ 50published service UnoControlCheckBoxModel 51{ 52 service com::sun::star::awt::UnoControlModel; 53 54 //------------------------------------------------------------------------- 55 56 /** specifies the horizontal alignment of the text in the control. 57 58 <pre> 59 0: left 60 1: center 61 2: right 62 </pre> 63 64 @since OpenOffice 2.0 65 */ 66 [optional, property] short Align; 67 68 //------------------------------------------------------------------------- 69 70 /** specifies the background color (RGB) of the control. 71 */ 72 [optional, property] long BackgroundColor; 73 74 //------------------------------------------------------------------------- 75 76 /** determines whether the control is enabled or disabled. 77 */ 78 [property] boolean Enabled; 79 80 //------------------------------------------------------------------------- 81 82 /** specifies the font attributes of the text in the control. 83 */ 84 [property] com::sun::star::awt::FontDescriptor FontDescriptor; 85 86 //------------------------------------------------------------------------- 87 88 /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> 89 value of the text in the control. 90 */ 91 [property] short FontEmphasisMark; 92 93 //------------------------------------------------------------------------- 94 95 /** specifies the <type scope="com::sun::star::text">FontRelief</type> 96 value of the text in the control. 97 */ 98 [property] short FontRelief; 99 100 //------------------------------------------------------------------------- 101 102 /** specifies the help text of the control. 103 */ 104 [property] string HelpText; 105 106 //------------------------------------------------------------------------- 107 108 /** specifies the help URL of the control. 109 */ 110 [property] string HelpURL; 111 112 //------------------------------------------------------------------------- 113 114 /** specifies the position of the image, if any, relative to the text, if any 115 116 <p>Valid values of this property are specified with <type>ImagePosition</type>.</p> 117 */ 118 [optional, property] short ImagePosition; 119 120 //------------------------------------------------------------------------- 121 122 /** specifies an URL to an image to display besides the label of the control 123 @see Graphic 124 */ 125 [optional, property] string ImageURL; 126 127 //------------------------------------------------------------------------- 128 129 /** specifies a graphic to be displayed besides the label of the control 130 131 <p>If this property is present, it interacts with the <member>ImageURL</member>in the 132 following way: 133 <ul><li>If <member>ImageURL</member> is set, <member>Graphic</member> will be reset 134 to an object as loaded from the given image URL, or <NULL/> if <member>ImageURL</member> 135 does not point to a valid image file.</li> 136 <li>If <member>Graphic</member> is set, <member>ImageURL</member> will be reset 137 to an empty string.</li> 138 </ul></p> 139 140 @since OpenOffice 2.1 141 */ 142 [optional, property, transient] com::sun::star::graphic::XGraphic Graphic; 143 144 //------------------------------------------------------------------------- 145 146 /** specifies the label of the control. 147 */ 148 [property] string Label; 149 150 //------------------------------------------------------------------------- 151 152 /** specifies that the text may be displayed on more than one line. 153 154 @since OpenOffice 2.0 155 */ 156 [optional, property] boolean MultiLine; 157 158 //------------------------------------------------------------------------- 159 160 /** specifies that the control will be printed with the document. 161 */ 162 [property] boolean Printable; 163 164 //------------------------------------------------------------------------- 165 166 /** specifies the state of the control. 167 168 <pre> 169 0: not checked 170 1: checked 171 2: don't know 172 </pre> 173 */ 174 [property] short State; 175 176 //------------------------------------------------------------------------- 177 178 /** specifies that the control can be reached with the TAB key. 179 */ 180 [property] boolean Tabstop; 181 182 //------------------------------------------------------------------------- 183 184 /** specifies the text color (RGB) of the control. 185 */ 186 [property] com::sun::star::util::Color TextColor; 187 188 //------------------------------------------------------------------------- 189 190 /** specifies the text line color (RGB) of the control. 191 */ 192 [property] com::sun::star::util::Color TextLineColor; 193 194 //------------------------------------------------------------------------- 195 196 /** specifies that the control may have the state "don't know". 197 */ 198 [property] boolean TriState; 199 200 //------------------------------------------------------------------------- 201 202 /** specifies the vertical alignment of the text in the control. 203 204 @since OpenOffice 2.0 205 */ 206 [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; 207 208 //------------------------------------------------------------------------- 209 210 /** specifies a visual effect to apply to the check box control 211 212 <p>Possible values for this property are <type>VisualEffect</type>::FLAT and 213 <type>VisualEffect</type>::LOOK3D.</p> 214 215 @see com::sun::star::awt::VisualEffect 216 217 @since OpenOffice 2.0 218 */ 219 [optional, property] short VisualEffect; 220 221 /** denotes the writing mode used in the control, as specified in the 222 <type scope="com::sun::star::text">WritingMode2</type> constants group. 223 224 <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and 225 <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p> 226 227 @since OpenOffice 3.1 228 */ 229 [optional, property] short WritingMode; 230}; 231 232//============================================================================= 233 234}; }; }; }; 235 236#endif 237