22#include <property.hxx>
25#include <com/sun/star/beans/PropertyAttribute.hpp>
26#include <com/sun/star/form/FormComponentType.hpp>
41using namespace ::com::sun::star::form::binding;
49css::uno::Sequence<OUString> ONumericControl::getSupportedServiceNames()
51 css::uno::Sequence<OUString> aSupported = OBoundControl::getSupportedServiceNames();
52 aSupported.realloc(aSupported.getLength() + 2);
54 OUString*pArray = aSupported.getArray();
62ONumericModel::ONumericModel(
const Reference<XComponentContext>& _rxFactory)
67 m_nClassId = FormComponentType::NUMERICFIELD;
73 :OEditBaseModel( _pOriginal, _rxFactory )
87 pClone->clonedFrom(
this);
97 sal_Int32 nOldLen = aSupported.getLength();
98 aSupported.realloc( nOldLen + 9 );
99 OUString* pStoreTo = aSupported.getArray() + nOldLen;
121 sal_Int32 nOldCount = _rProps.getLength();
122 _rProps.realloc( nOldCount + 2);
123 css::beans::Property* pProperties = _rProps.getArray() + nOldCount;
126 DBG_ASSERT( pProperties == _rProps.getArray() + _rProps.getLength(),
"<...>::describeFixedProperties/getInfoHelper: forgot to adjust the count ?");
141 if ( !aControlValue.hasValue() )
173 if (
m_aDefault.getValueType().getTypeClass() == TypeClass_DOUBLE)
188extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
190 css::uno::Sequence<css::uno::Any>
const &)
195extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
197 css::uno::Sequence<css::uno::Any>
const &)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_form_ONumericControl_get_implementation(css::uno::XComponentContext *component, css::uno::Sequence< css::uno::Any > const &)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_form_ONumericModel_get_implementation(css::uno::XComponentContext *component, css::uno::Sequence< css::uno::Any > const &)
sal_Int32 getValuePropertyAggHandle() const
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
css::uno::Reference< css::sdb::XColumn > m_xColumn
virtual void describeFixedProperties(css::uno::Sequence< css::beans::Property > &_rProps) const override
describes the properties provided by this class, or its respective derived class
virtual void resetNoBroadcast()
called to reset the control to some kind of default.
css::uno::Reference< css::sdb::XColumnUpdate > m_xColumnUpdate
const css::uno::Reference< css::uno::XComponentContext > & getContext() const
ONumericControl(const css::uno::Reference< css::uno::XComponentContext > &_rxFactory)
virtual void resetNoBroadcast() override
called to reset the control to some kind of default.
virtual css::uno::Any translateDbColumnToControlValue() override
translates a db column value into a control value.
css::uno::Any m_aSaveValue
virtual css::uno::Any getDefaultForReset() const override
returns the default which should be used when resetting the control
virtual bool commitControlValueToDbColumn(bool _bPostReset) override
commits the current control value to the database column we're bound to @precond we're properly bound...
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual OUString SAL_CALL getServiceName() override
virtual void describeFixedProperties(css::uno::Sequence< css::beans::Property > &_rProps) const override
describes the properties provided by this class, or its respective derived class
virtual ~ONumericModel() override
ONumericModel(const css::uno::Reference< css::uno::XComponentContext > &_rxFactory)
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
#define DBG_ASSERT(sCon, aError)
constexpr OUStringLiteral PROPERTY_TABINDEX
constexpr OUStringLiteral PROPERTY_DEFAULT_VALUE
constexpr OUStringLiteral PROPERTY_VALUE
double getDouble(const Any &_rAny)
ListBox is a bit confusing / different from other form components, so here are a few notes:
#define PROPERTY_ID_DEFAULT_VALUE
#define PROPERTY_ID_VALUE
#define PROPERTY_ID_TABINDEX
constexpr OUStringLiteral BINDABLE_DATABASE_NUMERIC_FIELD
constexpr OUStringLiteral FRM_SUN_CONTROL_NUMERICFIELD
constexpr OUStringLiteral VALIDATABLE_BINDABLE_CONTROL_MODEL
constexpr OUStringLiteral VCL_CONTROL_NUMERICFIELD
constexpr OUStringLiteral FRM_SUN_COMPONENT_DATABASE_NUMERICFIELD
constexpr OUStringLiteral FRM_COMPONENT_NUMERICFIELD
constexpr OUStringLiteral BINDABLE_DATA_AWARE_CONTROL_MODEL
constexpr OUStringLiteral STARDIV_ONE_FORM_CONTROL_NUMERICFIELD
constexpr OUStringLiteral DATA_AWARE_CONTROL_MODEL
constexpr OUStringLiteral VALIDATABLE_CONTROL_MODEL
constexpr OUStringLiteral VCL_CONTROLMODEL_NUMERICFIELD
constexpr OUStringLiteral FRM_SUN_COMPONENT_NUMERICFIELD
constexpr OUStringLiteral BINDABLE_CONTROL_MODEL