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_UnoControlDateFieldModel_idl__ 24#define __com_sun_star_awt_UnoControlDateFieldModel_idl__ 25 26#ifndef __com_sun_star_awt_FontDescriptor_idl__ 27#include <com/sun/star/awt/FontDescriptor.idl> 28#endif 29 30#ifndef __com_sun_star_awt_UnoControlModel_idl__ 31#include <com/sun/star/awt/UnoControlModel.idl> 32#endif 33 34#ifndef __com_sun_star_util_Color_idl__ 35#include <com/sun/star/util/Color.idl> 36#endif 37 38#ifndef __com_sun_star_style_VerticalAlignment_idl__ 39#include <com/sun/star/style/VerticalAlignment.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>UnoControlDateField</type>. 49 */ 50published service UnoControlDateFieldModel 51{ 52 service com::sun::star::awt::UnoControlModel; 53 54 //------------------------------------------------------------------------- 55 56 /** specifies the background color(RGB) of the control. 57 */ 58 [property] com::sun::star::util::Color BackgroundColor; 59 60 //------------------------------------------------------------------------- 61 62 /** specifies the border style of the control. 63 64 <pre> 65 0: No border 66 1: 3D border 67 2: simple border 68 </pre> 69 */ 70 [property] short Border; 71 72 //------------------------------------------------------------------------- 73 74 /** specifies the color of the border, if present 75 76 <p>Not every border style (see <member>Border</member>) may support coloring. 77 For instance, usually a border with 3D effect will ignore the BorderColor setting.</p> 78 79 @since OpenOffice 2.0 80 */ 81 [optional, property] long BorderColor; 82 83 //------------------------------------------------------------------------- 84 85 /** specifies the date displayed in the control. 86 87 <p>The date must be specified in the format YYYYMMDD.</p> 88 */ 89 [property] long Date; 90 91 //------------------------------------------------------------------------- 92 93 /** specifies the format of the displayed date. 94 95 <pre> 96 0: system short 97 1: system short YY 98 2: system short YYYY 99 3: system long 100 4: short DDMMYY 101 5: short MMDDYY 102 6: short YYMMDD 103 7: short DDMMYYYY 104 8: short MMDDYYYY 105 9: short YYYYMMDD 106 10: short YYMMDD DIN5008 107 11: short YYYYMMDD DIN5008 108 </pre> 109 */ 110 [property] short DateFormat; 111 112 //------------------------------------------------------------------------- 113 114 /** specifies the maximum date that can be entered. 115 */ 116 [property] long DateMax; 117 118 //------------------------------------------------------------------------- 119 120 /** specifies the minimum date that can be entered. 121 */ 122 [property] long DateMin; 123 124 //------------------------------------------------------------------------- 125 126 /** specifies, if the date century is displayed. 127 */ 128 [property] boolean DateShowCentury; 129 130 //------------------------------------------------------------------------- 131 132 /** specifies, if the control has a dropdown button. 133 */ 134 [property] boolean Dropdown; 135 136 //------------------------------------------------------------------------- 137 138 /** determines whether the control is enabled or disabled. 139 */ 140 [property] boolean Enabled; 141 142 //------------------------------------------------------------------------- 143 144 /** specifies the font attributes of the text in the control. 145 */ 146 [property] com::sun::star::awt::FontDescriptor FontDescriptor; 147 148 //------------------------------------------------------------------------- 149 150 /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> 151 value of the text in the control. 152 */ 153 [property] short FontEmphasisMark; 154 155 //------------------------------------------------------------------------- 156 157 /** specifies the <type scope="com::sun::star::text">FontRelief</type> 158 value of the text in the control. 159 */ 160 [property] short FontRelief; 161 162 //------------------------------------------------------------------------- 163 164 /** specifies the help text of the control. 165 */ 166 [property] string HelpText; 167 168 //------------------------------------------------------------------------- 169 170 /** specifies the help URL of the control. 171 */ 172 [property] string HelpURL; 173 174 //------------------------------------------------------------------------- 175 176 /** specifies whether the selection in the control should be hidden when 177 the control is not active (focused). 178 179 @since OpenOffice 2.0 180 */ 181 [optional, property] boolean HideInactiveSelection; 182 183 //------------------------------------------------------------------------- 184 185 /** specifies that the control will be printed with the document. 186 */ 187 [property] boolean Printable; 188 189 //------------------------------------------------------------------------- 190 191 /** specifies that the content of the control cannot be modified by the user. 192 */ 193 [property] boolean ReadOnly; 194 195 //------------------------------------------------------------------------- 196 197 /** specifies whether the mouse should show repeating behaviour, i.e. 198 repeatedly trigger an action when keeping pressed. 199 200 @since OpenOffice 2.0 201 */ 202 [optional, property] boolean Repeat; 203 204 //------------------------------------------------------------------------- 205 206 /** specifies the mouse repeat delay, in milliseconds. 207 208 <p>When the user presses a mouse in a control area where this triggers 209 an action (such as spinning the value), then usual control implementations 210 allow to repeatedly trigger this action, without the need to release the 211 mouse button and to press it again. The delay between two such triggers 212 is specified with this property.</p> 213 214 @since OpenOffice 2.0 215 */ 216 [optional, property] long RepeatDelay; 217 218 //------------------------------------------------------------------------- 219 220 /** specifies that the control has a spin button. 221 */ 222 [property] boolean Spin; 223 224 //------------------------------------------------------------------------- 225 226 /** specifies that the date is checked during the user input. 227 */ 228 [property] boolean StrictFormat; 229 230 //------------------------------------------------------------------------- 231 232 /** specifies that the control can be reached with the TAB key. 233 */ 234 [property] boolean Tabstop; 235 236 //------------------------------------------------------------------------- 237 238 /** specifies the text displayed in the control. 239 240 @since OpenOffice 2.0 241 */ 242 [optional, property] string Text; 243 244 //------------------------------------------------------------------------- 245 246 /** specifies the text color (RGB) of the control. 247 */ 248 [property] com::sun::star::util::Color TextColor; 249 250 //------------------------------------------------------------------------- 251 252 /** specifies the text line color (RGB) of the control. 253 */ 254 [property] com::sun::star::util::Color TextLineColor; 255 256 /** denotes the writing mode used in the control, as specified in the 257 <type scope="com::sun::star::text">WritingMode2</type> constants group. 258 259 <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and 260 <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p> 261 262 @since OpenOffice 3.1 263 */ 264 [optional, property] short WritingMode; 265 266 /** defines how the mouse wheel can be used to scroll through the control's content. 267 268 <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property, 269 and one of the <type>MouseWheelBehavior</type> constants, you can control under which circumstances 270 this is possible.</p> 271 */ 272 [optional, property] short MouseWheelBehavior; 273 274 //------------------------------------------------------------------------- 275 276 /** specifies the vertical alignment of the text in the control. 277 278 @since OpenOffice 3.3 279 */ 280 [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; 281}; 282 283//============================================================================= 284 285}; }; }; }; 286 287#endif 288