:: com :: sun :: star :: inspection ::
|
unpublished |
interface XNumericControl |
|
|
- Base Interfaces
XNumericControl
┗ XPropertyControl
-
|
- Usage Restrictions
- not published
- Description
- defines the interface for an XPropertyControl which supports
displaying and entering numerical values.
- Since
- OOo 2.0.3
|
Attributes' Summary |
DecimalDigits |
describes the number of decimal digits to use for the value
|
MinValue |
describes the minimum value which is allowed to be entered in the control
|
MaxValue |
describes the maximum value which is allowed to be entered in the control
|
DisplayUnit |
describes a ::com::sun::star::util::MeasureUnit to be applied
for displaying values.
|
ValueUnit |
describes a ::com::sun::star::util::MeasureUnit to be
applied for transferring values.
|
Attributes' Details |
DecimalDigits
short DecimalDigits;
- Description
- describes the number of decimal digits to use for the value
|
|
MinValue
::com::sun::star::beans::Optional< double > MinValue;
- Description
- describes the minimum value which is allowed to be entered in the control
|
|
MaxValue
::com::sun::star::beans::Optional< double > MaxValue;
- Description
- describes the maximum value which is allowed to be entered in the control
|
|
DisplayUnit
short DisplayUnit
- set raises (::com::sun::star::lang::IllegalArgumentException);
- Description
- describes a ::com::sun::star::util::MeasureUnit to be applied
for displaying values.
Only a certain set of ::com::sun::star::util::MeasureUnit values is
supported. In particular, every value which denotes a fraction of another
unit (like 100th millimeters) cannot be used as DisplayUnit.
- Throws
- com::sun::star::lang::IllegalArgumentException
if the caller attempts to set an unsupported ::com::sun::star::util::MeasureUnit
|
|
ValueUnit
short ValueUnit;
- Description
- describes a ::com::sun::star::util::MeasureUnit to be
applied for transferring values.
The core measurement unit for a property value might differ from the unit which
is used by the control to display it. For instance, your property value might require
that your values denote 100th millimeters, but to the user, you want to present the
value as, say, inches. In this case, a numeric control can automatically handle the
value conversion for you, if you give it a ValueUnit different from the DisplayUnit.
- See also
- XPropertyControl::Value
|
|
Top of Page
Copyright © 2000, 2014 LibreOffice contributors and/or their affiliates. All rights reserved.
LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.
The Document Foundation acknowledges all community members, please find more info at our website.
Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.