Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / awt / XCurrencyField.idl
blobb84d66859bb764392d5f48d0b7cfef2961766307
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XCurrencyField.idl,v $
10 * $Revision: 1.12 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_awt_XCurrencyField_idl__
31 #define __com_sun_star_awt_XCurrencyField_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include <com/sun/star/uno/XInterface.idl>
35 #endif
38 //=============================================================================
40 module com { module sun { module star { module awt {
42 //=============================================================================
44 /** gives access to the value and formatting of a currency field.
46 published interface XCurrencyField: com::sun::star::uno::XInterface
48 //-------------------------------------------------------------------------
50 /** sets the value which is displayed in the currency field.
52 [oneway] void setValue( [in] double Value );
54 //-------------------------------------------------------------------------
56 /** returns the value which is currently displayed in the currency field.
58 double getValue();
60 //-------------------------------------------------------------------------
62 /** sets the minimum value that can be entered by the user.
64 [oneway] void setMin( [in] double Value );
66 //-------------------------------------------------------------------------
68 /** returns the currently set minimum value that can be entered by the
69 user.
71 double getMin();
73 //-------------------------------------------------------------------------
75 /** sets the maximum value that can be entered by the user.
77 [oneway] void setMax( [in] double Value );
79 //-------------------------------------------------------------------------
81 /** returns the currently set maximum value that can be entered by the
82 user.
84 double getMax();
86 //-------------------------------------------------------------------------
88 /** sets the first value to be set on POS1 key.
89 */
90 [oneway] void setFirst( [in] double Value );
92 //-------------------------------------------------------------------------
94 /** returns the currently set first value which is set on POS1 key.
95 */
96 double getFirst();
98 //-------------------------------------------------------------------------
100 /** sets the last value to be set on END key.
102 [oneway] void setLast( [in] double Value );
104 //-------------------------------------------------------------------------
106 /** returns the currently set last value which is set on END key.
108 double getLast();
110 //-------------------------------------------------------------------------
112 /** sets the increment value for the spin button.
114 [oneway] void setSpinSize( [in] double Value );
116 //-------------------------------------------------------------------------
118 /** returns the currently set increment value for the spin button.
120 double getSpinSize();
122 //-------------------------------------------------------------------------
124 /** sets the number of decimals.
126 [oneway] void setDecimalDigits( [in] short nDigits );
128 //-------------------------------------------------------------------------
130 /** returns the currently set number of decimals.
132 short getDecimalDigits();
134 //-------------------------------------------------------------------------
136 /** determines if the format is checked during user input.
138 [oneway] void setStrictFormat( [in] boolean bStrict );
140 //-------------------------------------------------------------------------
142 /** returns whether the format is currently checked during user input.
144 boolean isStrictFormat();
148 //=============================================================================
150 }; }; }; };
152 #endif