21#include <property.hxx>
28#include <com/sun/star/beans/PropertyAttribute.hpp>
29#include <com/sun/star/form/FormComponentType.hpp>
54 aSupported.realloc(aSupported.getLength() + 2);
56 OUString*pArray = aSupported.getArray();
67 if (!m_xAggregateSet.is())
76 OUString sCurrencySymbol;
77 bool bPrependCurrencySymbol =
false;
82 bPrependCurrencySymbol =
true;
86 bPrependCurrencySymbol =
false;
90 bPrependCurrencySymbol =
true;
94 bPrependCurrencySymbol =
false;
97 if (!sCurrencySymbol.isEmpty())
105 TOOLS_WARN_EXCEPTION(
"forms.component",
"OCurrencyModel::implConstruct: caught an exception while initializing the aggregate!" );
115 m_nClassId = FormComponentType::CURRENCYFIELD;
123 :OEditBaseModel( _pOriginal, _rxFactory )
138 pClone->clonedFrom(
this);
149 sal_Int32 nOldLen = aSupported.getLength();
150 aSupported.realloc( nOldLen + 5 );
151 OUString* pStoreTo = aSupported.getArray() + nOldLen;
168 sal_Int32 nOldCount = _rProps.getLength();
169 _rProps.realloc( nOldCount + 2);
170 css::beans::Property* pProperties = _rProps.getArray() + nOldCount;
176 DBG_ASSERT( pProperties == _rProps.getArray() + _rProps.getLength(),
"<...>::describeFixedProperties/getInfoHelper: forgot to adjust the count ?");
191 if ( aControlValue.getValueType().getTypeClass() == TypeClass_VOID )
223 if (
m_aDefault.getValueType().getTypeClass() == TypeClass_DOUBLE )
239extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
241 css::uno::Sequence<css::uno::Any>
const &)
246extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
248 css::uno::Sequence<css::uno::Any>
const &)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_form_OCurrencyModel_get_implementation(css::uno::XComponentContext *component, css::uno::Sequence< css::uno::Any > const &)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_form_OCurrencyControl_get_implementation(css::uno::XComponentContext *component, css::uno::Sequence< css::uno::Any > const &)
const OUString & getCurrSymbol() const
sal_uInt16 getCurrPositiveFormat() const
const LocaleDataWrapper & GetLocaleData() const
sal_Int32 getValuePropertyAggHandle() const
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
void initValueProperty(const OUString &_rValuePropertyName, sal_Int32 _nValuePropertyExternalHandle)
initializes the part of the class which is related to the control value.
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
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
OCurrencyControl(const css::uno::Reference< css::uno::XComponentContext > &_rxContext)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() 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 css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual ~OCurrencyModel() override
virtual bool commitControlValueToDbColumn(bool _bPostReset) override
commits the current control value to the database column we're bound to @precond we're properly bound...
css::uno::Any m_aSaveValue
virtual OUString SAL_CALL getServiceName() override
virtual css::uno::Any translateDbColumnToControlValue() override
translates a db column value into a control value.
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
OCurrencyModel(const css::uno::Reference< css::uno::XComponentContext > &_rxFactory)
virtual css::uno::Any getDefaultForReset() const override
returns the default which should be used when resetting the control
virtual void resetNoBroadcast() override
called to reset the control to some kind of default.
#define DBG_ASSERT(sCon, aError)
#define TOOLS_WARN_EXCEPTION(area, stream)
constexpr OUStringLiteral PROPERTY_TABINDEX
constexpr OUStringLiteral PROPERTY_DEFAULT_VALUE
constexpr OUStringLiteral PROPERTY_CURRSYM_POSITION
constexpr OUStringLiteral PROPERTY_CURRENCYSYMBOL
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 STARDIV_ONE_FORM_CONTROL_CURRENCYFIELD
constexpr OUStringLiteral FRM_SUN_COMPONENT_CURRENCYFIELD
constexpr OUStringLiteral FRM_SUN_CONTROL_CURRENCYFIELD
constexpr OUStringLiteral FRM_SUN_COMPONENT_DATABASE_CURRENCYFIELD
constexpr OUStringLiteral FRM_COMPONENT_CURRENCYFIELD
constexpr OUStringLiteral VCL_CONTROL_CURRENCYFIELD
constexpr OUStringLiteral VCL_CONTROLMODEL_CURRENCYFIELD
constexpr OUStringLiteral DATA_AWARE_CONTROL_MODEL
constexpr OUStringLiteral VALIDATABLE_CONTROL_MODEL