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_UnoControlCurrencyFieldModel_idl__ 24#define __com_sun_star_awt_UnoControlCurrencyFieldModel_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>UnoControlCurrencyField</type>. 49 */ 50published service UnoControlCurrencyFieldModel 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 currency symbol. 86 */ 87 [property] string CurrencySymbol; 88 89 //------------------------------------------------------------------------- 90 91 /** specifies the decimal accuracy. 92 */ 93 [property] short DecimalAccuracy; 94 95 //------------------------------------------------------------------------- 96 97 /** determines whether the control is enabled or disabled. 98 */ 99 [property] boolean Enabled; 100 101 //------------------------------------------------------------------------- 102 103 /** specifies the font attributes of the text in the control. 104 */ 105 [property] com::sun::star::awt::FontDescriptor FontDescriptor; 106 107 //------------------------------------------------------------------------- 108 109 /** specifies the <type scope="com::sun::star::text">FontEmphasis</type> 110 value of the text in the control. 111 */ 112 [property] short FontEmphasisMark; 113 114 //------------------------------------------------------------------------- 115 116 /** specifies the <type scope="com::sun::star::text">FontRelief</type> 117 value of the text in the control. 118 */ 119 [property] short FontRelief; 120 121 //------------------------------------------------------------------------- 122 123 /** specifies the help text of the control. 124 */ 125 [property] string HelpText; 126 127 //------------------------------------------------------------------------- 128 129 /** specifies the help URL of the control. 130 */ 131 [property] string HelpURL; 132 133 //------------------------------------------------------------------------- 134 135 /** specifies whether the selection in the control should be hidden when 136 the control is not active (focused). 137 138 @since OpenOffice 2.0 139 */ 140 [optional, property] boolean HideInactiveSelection; 141 142 //------------------------------------------------------------------------- 143 144 /** specifies whether the currency symbol is to be prepended. 145 */ 146 147 [property] boolean PrependCurrencySymbol; 148 149 //------------------------------------------------------------------------- 150 151 /** specifies that the control will be printed with the document. 152 */ 153 [property] boolean Printable; 154 155 //------------------------------------------------------------------------- 156 157 /** specifies that the content of the control cannot be modified by the user. 158 */ 159 [property] boolean ReadOnly; 160 161 //------------------------------------------------------------------------- 162 163 /** specifies whether the mouse should show repeating behaviour, i.e. 164 repeatedly trigger an action when keeping pressed. 165 166 @since OpenOffice 2.0 167 */ 168 [optional, property] boolean Repeat; 169 170 //------------------------------------------------------------------------- 171 172 /** specifies the mouse repeat delay, in milliseconds. 173 174 <p>When the user presses a mouse in a control area where this triggers 175 an action (such as spinning the value), then usual control implementations 176 allow to repeatedly trigger this action, without the need to release the 177 mouse button and to press it again. The delay between two such triggers 178 is specified with this property.</p> 179 180 @since OpenOffice 2.0 181 */ 182 [optional, property] long RepeatDelay; 183 184 //------------------------------------------------------------------------- 185 186 /** specifies whether the thousands separator is to be displayed. 187 */ 188 [property] boolean ShowThousandsSeparator; 189 190 //------------------------------------------------------------------------- 191 192 /** specifies that the control has a spin button. 193 */ 194 [property] boolean Spin; 195 196 //------------------------------------------------------------------------- 197 198 /** specifies that the value is checked during the user input. 199 */ 200 [property] boolean StrictFormat; 201 202 //------------------------------------------------------------------------- 203 204 /** specifies that the control can be reached with the TAB key. 205 */ 206 [property] boolean Tabstop; 207 208 //------------------------------------------------------------------------- 209 210 /** specifies the text color (RGB) of the control. 211 */ 212 [property] com::sun::star::util::Color TextColor; 213 214 //------------------------------------------------------------------------- 215 216 /** specifies the text line color (RGB) of the control. 217 */ 218 [property] com::sun::star::util::Color TextLineColor; 219 220 //------------------------------------------------------------------------- 221 222 /** specifies the value displayed in the control. 223 */ 224 [property] double Value; 225 226 //------------------------------------------------------------------------- 227 228 /** specifies the maximum value that can be entered. 229 */ 230 [property] double ValueMax; 231 232 //------------------------------------------------------------------------- 233 234 /** specifies the minimum value that can be entered. 235 */ 236 [property] double ValueMin; 237 238 //------------------------------------------------------------------------- 239 240 /** specifies the value step when using the spin button. 241 */ 242 [property] double ValueStep; 243 244 /** denotes the writing mode used in the control, as specified in the 245 <type scope="com::sun::star::text">WritingMode2</type> constants group. 246 247 <p>Only <member scope="com::sun::star::text">WritingMode2::LR_TB</member> and 248 <member scope="com::sun::star::text">WritingMode2::RL_TB</member> are supported at the moment.</p> 249 250 @since OpenOffice 3.1 251 */ 252 [optional, property] short WritingMode; 253 254 /** defines how the mouse wheel can be used to scroll through the control's content. 255 256 <p>Usually, the mouse wheel spins the numeric value displayed in the control. Using this property, 257 and one of the <type>MouseWheelBehavior</type> constants, you can control under which circumstances 258 this is possible.</p> 259 */ 260 [optional, property] short MouseWheelBehavior; 261 262 //------------------------------------------------------------------------- 263 264 /** specifies the vertical alignment of the text in the control. 265 266 @since OpenOffice 3.3 267 */ 268 [optional, property] com::sun::star::style::VerticalAlignment VerticalAlign; 269}; 270 271//============================================================================= 272 273}; }; }; }; 274 275#endif 276