1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27#ifndef __com_sun_star_awt_UnoControlCurrencyFieldModel_idl__ 28#define __com_sun_star_awt_UnoControlCurrencyFieldModel_idl__ 29 30#ifndef __com_sun_star_awt_FontDescriptor_idl__ 31#include <com/sun/star/awt/FontDescriptor.idl> 32#endif 33 34#ifndef __com_sun_star_awt_UnoControlModel_idl__ 35#include <com/sun/star/awt/UnoControlModel.idl> 36#endif 37 38#ifndef __com_sun_star_util_Color_idl__ 39#include <com/sun/star/util/Color.idl> 40#endif 41 42#ifndef __com_sun_star_style_VerticalAlignment_idl__ 43#include <com/sun/star/style/VerticalAlignment.idl> 44#endif 45 46//============================================================================= 47 48 module com { module sun { module star { module awt { 49 50//============================================================================= 51 52/** specifies the standard model of an <type>UnoControlCurrencyField</type>. 53 */ 54published service UnoControlCurrencyFieldModel 55{ 56 service com::sun::star::awt::UnoControlModel; 57 58 //------------------------------------------------------------------------- 59 60 /** specifies the background color (RGB) of the control. 61 */ 62 [property] com::sun::star::util::Color BackgroundColor; 63 64 //------------------------------------------------------------------------- 65 66 /** specifies the border style of the control. 67 68 <pre> 69 0: No border 70 1: 3D border 71 2: simple border 72 </pre> 73 */ 74 [property] short Border; 75 76 //------------------------------------------------------------------------- 77 78 /** specifies the color of the border, if present 79 80 <p>Not every border style (see <member>Border</member>) may support coloring. 81 For instance, usually a border with 3D effect will ignore the BorderColor setting.</p> 82 83 @since OOo 2.0 84 */ 85 [optional, property] long BorderColor; 86 87 //------------------------------------------------------------------------- 88 89 /** specifies the currency symbol. 90 */ 91 [property] string CurrencySymbol; 92 93 //------------------------------------------------------------------------- 94 95 /** specifies the decimal accuracy. 96 */ 97 [property] short DecimalAccuracy; 98 99 //------------------------------------------------------------------------- 100 101 /** determines whether the control is enabled or disabled. 102 */ 103 [property] boolean Enabled; 104 105 //------------------------------------------------------------------------- 106 107 /** specifies the font attributes of the text in the control. 108 */ 109 [property] com::sun::star::awt::FontDescriptor FontDescriptor; 110 111 //------------------------------------------------------------------------- 112 113 /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> 114 value of the text in the control. 115 */ 116 [property] short FontEmphasisMark; 117 118 //------------------------------------------------------------------------- 119 120 /** specifies the <type scope="com::sun::star::text">FontRelief</type> 121 value of the text in the control. 122 */ 123 [property] short FontRelief; 124 125 //------------------------------------------------------------------------- 126 127 /** specifies the help text of the control. 128 */ 129 [property] string HelpText; 130 131 //------------------------------------------------------------------------- 132 133 /** specifies the help URL of the control. 134 */ 135 [property] string HelpURL; 136 137 //------------------------------------------------------------------------- 138 139 /** specifies whether the selection in the control should be hidden when 140 the control is not active (focused). 141 142 @since OOo 2.0 143 */ 144 [optional, property] boolean HideInactiveSelection; 145 146 //------------------------------------------------------------------------- 147 148 /** specifies whether the currency symbol is to be prepended. 149 */ 150 151 [property] boolean PrependCurrencySymbol; 152 153 //------------------------------------------------------------------------- 154 155 /** specifies that the control will be printed with the document. 156 */ 157 [property] boolean Printable; 158 159 //------------------------------------------------------------------------- 160 161 /** specifies that the content of the control cannot be modified by the user. 162 */ 163 [property] boolean ReadOnly; 164 165 //------------------------------------------------------------------------- 166 167 /** specifies whether the mouse should show repeating behaviour, i.e. 168 repeatedly trigger an action when keeping pressed. 169 170 @since OOo 2.0 171 */ 172 [optional, property] boolean Repeat; 173 174 //------------------------------------------------------------------------- 175 176 /** specifies the mouse repeat delay, in milliseconds. 177 178 <p>When the user presses a mouse in a control area where this triggers 179 an action (such as spinning the value), then usual control implementations 180 allow to repeatedly trigger this action, without the need to release the 181 mouse button and to press it again. The delay between two such triggers 182 is specified with this property.</p> 183 184 @since OOo 2.0 185 */ 186 [optional, property] long RepeatDelay; 187 188 //------------------------------------------------------------------------- 189 190 /** specifies whether the thousands separator is to be displayed. 191 */ 192 [property] boolean ShowThousandsSeparator; 193 194 //------------------------------------------------------------------------- 195 196 /** specifies that the control has a spin button. 197 */ 198 [property] boolean Spin; 199 200 //------------------------------------------------------------------------- 201 202 /** specifies that the value is checked during the user input. 203 */ 204 [property] boolean StrictFormat; 205 206 //------------------------------------------------------------------------- 207 208 /** specifies that the control can be reached with the TAB key. 209 */ 210 [property] boolean Tabstop; 211 212 //------------------------------------------------------------------------- 213 214 /** specifies the text color (RGB) of the control. 215 */ 216 [property] com::sun::star::util::Color TextColor; 217 218 //------------------------------------------------------------------------- 219 220 /** specifies the text line color (RGB) of the control. 221 */ 222 [property] com::sun::star::util::Color TextLineColor; 223 224 //------------------------------------------------------------------------- 225 226 /** specifies the value displayed in the control. 227 */ 228 [property] double Value; 229 230 //------------------------------------------------------------------------- 231 232 /** specifies the maximum value that can be entered. 233 */ 234 [property] double ValueMax; 235 236 //------------------------------------------------------------------------- 237 238 /** specifies the minimum value that can be entered. 239 */ 240 [property] double ValueMin; 241 242 //------------------------------------------------------------------------- 243 244 /** specifies the value step when using the spin button. 245 */ 246 [property] double ValueStep; 247 248 /** denotes the writing mode used in the control, as specified in the 249 <type scope="com::sun::star::text">WritingMode2</type> constants group. 250 251 <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and 252 <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p> 253 254 @since OOo 3.1 255 */ 256 [optional, property] short WritingMode; 257 258 /** defines how the mouse wheel can be used to scroll through the control's content. 259 260 <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property, 261 and one of the <type>MouseWheelBehavior</type> constants, you can control under which circumstances 262 this is possible.</p> 263 */ 264 [optional, property] short MouseWheelBehavior; 265 266 //------------------------------------------------------------------------- 267 268 /** specifies the vertical alignment of the text in the control. 269 270 @since OOo 3.3 271 */ 272 [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; 273}; 274 275//============================================================================= 276 277}; }; }; }; 278 279#endif 280