37 ::std::unique_ptr< ::dbtools::FormattedColumnValue >
42 const css::uno::Reference< css::uno::XComponentContext>& _rxFactory
46 const css::uno::Reference< css::uno::XComponentContext>& _rxFactory
52 {
return "com.sun.star.form.OPatternModel"; }
61 css::uno::Sequence< css::beans::Property >& _rProps
68 virtual void onConnectedDbColumn(
const css::uno::Reference< css::uno::XInterface >& _rxForm )
override;
75 virtual css::uno::Reference< css::util::XCloneable > SAL_CALL
createClone( )
override;
81 explicit OPatternControl(
const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
85 {
return "com.sun.star.form.OPatternControl"; }
OPatternControl(const css::uno::Reference< css::uno::XComponentContext > &_rxFactory)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
OUString SAL_CALL getImplementationName() 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...
virtual void onConnectedDbColumn(const css::uno::Reference< css::uno::XInterface > &_rxForm) override
called whenever a connection to a database column has been established
virtual void resetNoBroadcast() override
called to reset the control to some kind of default.
::std::unique_ptr< ::dbtools::FormattedColumnValue > m_pFormattedValue
virtual css::uno::Any translateDbColumnToControlValue() override
translates a db column value into a control value.
virtual void onDisconnectedDbColumn() override
called whenever a connection to a database column has been suspended
virtual ~OPatternModel() override
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
OUString SAL_CALL getImplementationName() override
css::uno::Any m_aLastKnownValue
OPatternModel(const css::uno::Reference< css::uno::XComponentContext > &_rxFactory)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Any getDefaultForReset() const override
returns the default which should be used when resetting the control
virtual void describeFixedProperties(css::uno::Sequence< css::beans::Property > &_rProps) const override
describes the properties provided by this class, or its respective derived class
OPatternModel(const OPatternModel *_pOriginal, const css::uno::Reference< css::uno::XComponentContext > &_rxFactory)
virtual OUString SAL_CALL getServiceName() override
ListBox is a bit confusing / different from other form components, so here are a few notes: