LibreOffice Module forms (master) 1
|
#include <ListBox.hxx>
Public Member Functions | |
OListBoxModel (const css::uno::Reference< css::uno::XComponentContext > &_rxFactory) | |
OListBoxModel (const OListBoxModel *_pOriginal, const css::uno::Reference< css::uno::XComponentContext > &_rxFactory) | |
virtual | ~OListBoxModel () override |
OUString SAL_CALL | getImplementationName () override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual css::uno::Any SAL_CALL | queryAggregation (const css::uno::Type &_rType) override |
virtual void SAL_CALL | disposing () override |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &_rConvertedValue, css::uno::Any &_rOldValue, sal_Int32 _nHandle, const css::uno::Any &_rValue) override |
Public Member Functions inherited from frm::OBoundControlModel | |
const css::uno::Reference< css::beans::XPropertySet > & | getField () const |
virtual css::uno::Any SAL_CALL | queryAggregation (const css::uno::Type &_rType) override |
virtual void SAL_CALL | disposing () override |
virtual void SAL_CALL | reset () override |
virtual void SAL_CALL | addResetListener (const css::uno::Reference< css::form::XResetListener > &aListener) override |
virtual void SAL_CALL | removeResetListener (const css::uno::Reference< css::form::XResetListener > &aListener) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual void SAL_CALL | setParent (const css::uno::Reference< css::uno::XInterface > &Parent) override |
virtual void SAL_CALL | write (const css::uno::Reference< css::io::XObjectOutputStream > &OutStream) override |
virtual void SAL_CALL | read (const css::uno::Reference< css::io::XObjectInputStream > &InStream) override |
virtual sal_Bool SAL_CALL | commit () override |
virtual void SAL_CALL | addUpdateListener (const css::uno::Reference< css::form::XUpdateListener > &aListener) override |
virtual void SAL_CALL | removeUpdateListener (const css::uno::Reference< css::form::XUpdateListener > &aListener) override |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &_rConvertedValue, css::uno::Any &_rOldValue, sal_Int32 _nHandle, const css::uno::Any &_rValue) override |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual css::uno::Any | getPropertyDefaultByHandle (sal_Int32 nHandle) const override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | propertyChange (const css::beans::PropertyChangeEvent &evt) override |
virtual void SAL_CALL | onRowSetChanged (const css::lang::EventObject &i_Event) override |
virtual void SAL_CALL | loaded (const css::lang::EventObject &aEvent) override |
virtual void SAL_CALL | unloading (const css::lang::EventObject &aEvent) override |
virtual void SAL_CALL | unloaded (const css::lang::EventObject &aEvent) override |
virtual void SAL_CALL | reloading (const css::lang::EventObject &aEvent) override |
virtual void SAL_CALL | reloaded (const css::lang::EventObject &aEvent) override |
Public Member Functions inherited from frm::OControlModel | |
virtual css::uno::Any SAL_CALL | queryAggregation (const css::uno::Type &_rType) override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual void SAL_CALL | disposing () override |
virtual OUString SAL_CALL | getName () override |
virtual void SAL_CALL | setName (const OUString &aName) override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual OUString SAL_CALL | getImplementationName () override=0 |
virtual OUString SAL_CALL | getServiceName () override=0 |
virtual void SAL_CALL | write (const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream) override |
virtual void SAL_CALL | read (const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream) override |
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL | getParent () override |
virtual void SAL_CALL | setParent (const css::uno::Reference< css::uno::XInterface > &Parent) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &_rConvertedValue, css::uno::Any &_rOldValue, sal_Int32 _nHandle, const css::uno::Any &_rValue) override |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual css::beans::PropertyState | getPropertyStateByHandle (sal_Int32 nHandle) override |
virtual void | setPropertyToDefaultByHandle (sal_Int32 nHandle) override |
virtual css::uno::Any | getPropertyDefaultByHandle (sal_Int32 nHandle) const override |
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL | createClone () override=0 |
virtual void SAL_CALL | addProperty (const OUString &Name, ::sal_Int16 Attributes, const css::uno::Any &DefaultValue) override |
virtual void SAL_CALL | removeProperty (const OUString &Name) override |
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL | getPropertyValues () override |
virtual void SAL_CALL | setPropertyValues (const css::uno::Sequence< css::beans::PropertyValue > &aProps) override |
void | lockInstance (LockAccess) |
oslInterlockedCount | unlockInstance (LockAccess) |
void | firePropertyChanges (const std::vector< sal_Int32 > &_rHandles, const std::vector< css::uno::Any > &_rOldValues, const std::vector< css::uno::Any > &_rNewValues, LockAccess) |
::osl::Mutex & | getInstanceMutex () |
Public Member Functions inherited from cppu::OComponentHelper | |
OComponentHelper (::osl::Mutex &rMutex) | |
virtual | ~OComponentHelper () SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | queryAggregation (css::uno::Type const &rType) SAL_OVERRIDE |
virtual void SAL_CALL | acquire () SAL_NOEXCEPT SAL_OVERRIDE |
virtual void SAL_CALL | release () SAL_NOEXCEPT SAL_OVERRIDE |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () SAL_OVERRIDE=0 |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () SAL_OVERRIDE |
virtual void SAL_CALL | dispose () SAL_OVERRIDE |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) SAL_OVERRIDE |
Public Member Functions inherited from cppu::OWeakAggObject | |
OWeakAggObject () | |
virtual void SAL_CALL | acquire () SAL_NOEXCEPT SAL_OVERRIDE |
virtual void SAL_CALL | release () SAL_NOEXCEPT SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE |
virtual void SAL_CALL | setDelegator (const css::uno::Reference< css::uno::XInterface > &Delegator) SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | queryAggregation (const css::uno::Type &rType) SAL_OVERRIDE |
Public Member Functions inherited from cppu::OWeakObject | |
OWeakObject () | |
OWeakObject (const OWeakObject &) | |
OWeakObject &SAL_CALL | operator= (const OWeakObject &) |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE |
virtual void SAL_CALL | acquire () SAL_NOEXCEPT SAL_OVERRIDE |
virtual void SAL_CALL | release () SAL_NOEXCEPT SAL_OVERRIDE |
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL | queryAdapter () SAL_OVERRIDE |
SAL_CALL | operator css::uno::Reference< css::uno::XInterface > () |
Public Member Functions inherited from cppu::ImplHelper7< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7 > | |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () SAL_OVERRIDE |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () SAL_OVERRIDE |
virtual ::osl::Mutex & | getMutex ()=0 |
virtual void | describeFixedAndAggregateProperties (css::uno::Sequence< css::beans::Property > &_out_rFixedProperties, css::uno::Sequence< css::beans::Property > &_out_rAggregateProperties) const =0 |
virtual css::uno::Reference< css::beans::XMultiPropertySet > | getPropertiesInterface ()=0 |
Public Member Functions inherited from cppu::ImplHelper4< class Ifc1, class Ifc2, class Ifc3, class Ifc4 > | |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () SAL_OVERRIDE |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () SAL_OVERRIDE |
Public Member Functions inherited from cppu::ImplHelper1< class Ifc1 > | |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () SAL_OVERRIDE |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () SAL_OVERRIDE |
Public Member Functions inherited from cppu::ImplHelper2< class Ifc1, class Ifc2 > | |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () SAL_OVERRIDE |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () SAL_OVERRIDE |
Public Member Functions inherited from comphelper::OPropertyChangeListener | |
OPropertyChangeListener (::osl::Mutex &_rMutex) | |
virtual | ~OPropertyChangeListener () |
virtual void | _propertyChanged (const css::beans::PropertyChangeEvent &_rEvent)=0 |
virtual void | _disposing (const css::lang::EventObject &_rSource) |
Public Member Functions inherited from cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 > | |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () SAL_OVERRIDE |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () SAL_OVERRIDE |
Private Member Functions | |
::connectivity::ORowSetValue | getFirstSelectedValue () const |
virtual css::uno::Sequence< css::uno::Type > | _getTypes () override |
virtual void SAL_CALL | setPropertyValues (const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Sequence< css::uno::Any > &Values) override |
virtual OUString SAL_CALL | getServiceName () override |
virtual void SAL_CALL | write (const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream) override |
virtual void SAL_CALL | read (const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream) 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 More... | |
virtual void | describeAggregateProperties (css::uno::Sequence< css::beans::Property > &_rAggregateProps) const override |
describes the properties of our aggregate More... | |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void | _propertyChanged (const css::beans::PropertyChangeEvent &_rEvt) override |
virtual css::uno::Any | translateDbColumnToControlValue () override |
translates a db column value into a control value. More... | |
virtual css::uno::Sequence< css::uno::Type > | getSupportedBindingTypes () override |
returns the data types which the control could use to exchange data with an external value binding More... | |
virtual css::uno::Any | translateExternalValueToControlValue (const css::uno::Any &_rExternalValue) const override |
translates the given value, which was obtained from the current external value binding, to a value which can be used in setControlValue More... | |
virtual css::uno::Any | translateControlValueToExternalValue () const override |
commits the current control value to our external value binding More... | |
virtual css::uno::Any | translateControlValueToValidatableValue () const override |
retrieves the current value of the control, in a shape which can be used with our external validator. More... | |
virtual bool | commitControlValueToDbColumn (bool _bPostReset) override |
commits the current control value to the database column we're bound to @precond we're properly bound to a database column, especially <member>m_xColumnUpdate</member> is not <NULL> More... | |
virtual void | onConnectedDbColumn (const css::uno::Reference< css::uno::XInterface > &_rxForm) override |
called whenever a connection to a database column has been established More... | |
virtual void | onDisconnectedDbColumn () override |
called whenever a connection to a database column has been suspended More... | |
virtual css::uno::Any | getDefaultForReset () const override |
returns the default which should be used when resetting the control More... | |
virtual void | resetNoBroadcast () override |
called to reset the control to some kind of default. More... | |
virtual css::uno::Any | getCurrentFormComponentValue () const override |
retrieves the current value of the form component More... | |
virtual void | stringItemListChanged (ControlModelLock &_rInstanceLock) override |
announces that the list of entries has changed. More... | |
virtual void | refreshInternalEntryList () override |
called when XRefreshable::refresh has been called, and we do not have an external list source More... | |
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL | createClone () override |
void | init () |
css::uno::Any | getCurrentSingleValue () const |
css::uno::Sequence< css::uno::Any > | getCurrentMultiValue () const |
css::uno::Sequence< sal_Int16 > | translateBindingValuesToControlValue (const css::uno::Sequence< const css::uno::Any > &i_aValues) const |
css::uno::Sequence< sal_Int16 > | translateDbValueToControlValue (const ::connectivity::ORowSetValue &aValue) const |
void | loadData (bool _bForce) |
void | impl_refreshDbEntryList (bool _bForce) |
refreshes the list boxes list data @precond we don't actually have an external list source More... | |
void | setBoundValues (ValueList &&) |
void | clearBoundValues () |
ValueList | impl_getValues () const |
sal_Int32 | getValueType () const |
void | convertBoundValues (sal_Int32 nType) const |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override |
Private Attributes | |
CachedRowSet | m_aListRowSet |
::connectivity::ORowSetValue | m_aSaveValue |
css::form::ListSourceType | m_eListSourceType |
css::uno::Any | m_aBoundColumn |
ValueList | m_aListSourceValues |
ValueList | m_aBoundValues |
ValueList | m_aConvertedBoundValues |
sal_Int32 | m_nConvertedBoundValuesType |
css::uno::Sequence< sal_Int16 > | m_aDefaultSelectSeq |
sal_Int16 | m_nNULLPos |
sal_Int32 | m_nBoundColumnType |
Static Private Attributes | |
static const ::connectivity::ORowSetValue | s_aEmptyValue |
static const ::connectivity::ORowSetValue | s_aEmptyStringValue = OUString() |
Additional Inherited Members | |
Static Public Member Functions inherited from frm::OBoundControlModel | |
static css::uno::Sequence< OUString > | getSupportedServiceNames_Static () |
Static Public Member Functions inherited from frm::OControlModel | |
static css::uno::Sequence< OUString > | getSupportedServiceNames_Static () |
Protected Types inherited from frm::OBoundControlModel | |
enum | ValueChangeInstigator { eDbColumnBinding , eExternalBinding , eOther } |
Protected Member Functions inherited from frm::OBoundControlModel | |
sal_Int32 | getValuePropertyAggHandle () const |
const OUString & | getControlSource () const |
bool | isRequired () const |
bool | isLoaded () const |
OBoundControlModel (const css::uno::Reference< css::uno::XComponentContext > &_rxContext, const OUString &_rUnoControlModelTypeName, const OUString &_rDefault, const bool _bCommitable, const bool _bSupportExternalBinding, const bool _bSupportsValidation) | |
OBoundControlModel (const OBoundControlModel *_pOriginal, const css::uno::Reference< css::uno::XComponentContext > &_rxContext) | |
virtual | ~OBoundControlModel () override |
virtual void | clonedFrom (const OControlModel *_pOriginal) override |
late ctor after cloning More... | |
void | initValueProperty (const OUString &_rValuePropertyName, sal_Int32 _nValuePropertyExternalHandle) |
initializes the part of the class which is related to the control value. More... | |
void | initOwnValueProperty (const OUString &i_rValuePropertyName) |
initializes the part of the class which is related to the control value. More... | |
void | suspendValueListening () |
suspends listening at the value property More... | |
void | resumeValueListening () |
resumes listening at the value property More... | |
void | onValuePropertyChange (ControlModelLock &i_rControLock) |
(to be) called when the value property changed More... | |
void | startAggregatePropertyListening (const OUString &_rPropertyName) |
starts listening at the aggregate, for changes in the given property More... | |
virtual css::uno::Any | getDefaultForReset () const |
returns the default which should be used when resetting the control More... | |
virtual css::uno::Any | translateDbColumnToControlValue ()=0 |
translates a db column value into a control value. More... | |
virtual css::uno::Sequence< css::uno::Type > | getSupportedBindingTypes () |
returns the data types which the control could use to exchange data with an external value binding More... | |
virtual css::uno::Any | translateExternalValueToControlValue (const css::uno::Any &_rExternalValue) const |
translates the given value, which was obtained from the current external value binding, to a value which can be used in setControlValue More... | |
virtual css::uno::Any | translateControlValueToExternalValue () const |
commits the current control value to our external value binding More... | |
virtual bool | commitControlValueToDbColumn (bool _bPostReset)=0 |
commits the current control value to the database column we're bound to @precond we're properly bound to a database column, especially <member>m_xColumnUpdate</member> is not <NULL> More... | |
void | setControlValue (const css::uno::Any &_rValue, ValueChangeInstigator _eInstigator) |
sets the given value as new current value for the control More... | |
virtual void | doSetControlValue (const css::uno::Any &_rValue) |
virtual css::uno::Any | getControlValue () const |
retrieves the current value of the control More... | |
virtual void | onConnectedDbColumn (const css::uno::Reference< css::uno::XInterface > &_rxForm) |
called whenever a connection to a database column has been established More... | |
virtual void | onDisconnectedDbColumn () |
called whenever a connection to a database column has been suspended More... | |
virtual void | onConnectedExternalValue () |
called whenever a connection to an external supplier of values (XValueBinding) has been established More... | |
void | onConnectedValidator () |
called whenever an external validator has been registered More... | |
void | onDisconnectedValidator () |
called whenever an external validator has been revoked More... | |
virtual bool | approveDbColumnType (sal_Int32 _nColumnType) |
nFieldType is the type of the field, on which the model will be linked. More... | |
virtual css::uno::Any | translateControlValueToValidatableValue () const |
retrieves the current value of the control, in a shape which can be used with our external validator. More... | |
virtual css::uno::Any | getCurrentFormComponentValue () const |
retrieves the current value of the form component More... | |
void | writeCommonProperties (const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream) |
We can't write (new) common properties in this base class, as the file format doesn't allow this (unfortunately). More... | |
void | readCommonProperties (const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream) |
void | defaultCommonProperties () |
virtual void | resetNoBroadcast () |
called to reset the control to some kind of default. More... | |
virtual css::uno::Sequence< css::uno::Type > | _getTypes () override |
void | impl_setField_noNotify (const css::uno::Reference< css::beans::XPropertySet > &_rxField) |
sets m_xField to the given new value, without notifying our listeners More... | |
bool | hasField () const |
sal_Int32 | getFieldType () const |
virtual void | describeFixedProperties (css::uno::Sequence< css::beans::Property > &_rProps) const override |
describes the properties provided by this class, or its respective derived class More... | |
virtual void SAL_CALL | setValueBinding (const css::uno::Reference< css::form::binding::XValueBinding > &_rxBinding) override |
virtual css::uno::Reference< css::form::binding::XValueBinding > SAL_CALL | getValueBinding () override |
virtual void SAL_CALL | modified (const css::lang::EventObject &_rEvent) override |
virtual void SAL_CALL | setValidator (const css::uno::Reference< css::form::validation::XValidator > &Validator) override |
virtual css::uno::Reference< css::form::validation::XValidator > SAL_CALL | getValidator () override |
virtual void SAL_CALL | validityConstraintChanged (const css::lang::EventObject &Source) override |
virtual sal_Bool SAL_CALL | isValid () override |
virtual css::uno::Any SAL_CALL | getCurrentValue () override |
virtual void SAL_CALL | addFormComponentValidityListener (const css::uno::Reference< css::form::validation::XFormComponentValidityListener > &Listener) override |
virtual void SAL_CALL | removeFormComponentValidityListener (const css::uno::Reference< css::form::validation::XFormComponentValidityListener > &Listener) override |
virtual void | _propertyChanged (const css::beans::PropertyChangeEvent &_rEvt) override |
bool | hasExternalValueBinding () const |
checks whether we currently have an external value binding in place More... | |
bool | hasValidator () const |
void | transferDbValueToControl () |
transfers the very current value of the db column we're bound to the control @precond our own mutex is locked @precond we don't have an external binding in place More... | |
void | transferExternalValueToControl (ControlModelLock &_rInstanceLock) |
transfers the current value of the active external binding to the control @precond we do have an active external binding in place More... | |
void | transferControlValueToExternal (ControlModelLock &_rInstanceLock) |
transfers the control value to the external binding @precond our own mutex is locked, and _rInstanceLock is the guard locking it @precond we do have an active external binding in place More... | |
void | calculateExternalValueType () |
calculates the type which is to be used to communicate with the current external binding, and stores it in m_aExternalValueType More... | |
const css::uno::Type & | getExternalValueType () const |
returns the type which should be used to exchange data with our external value binding More... | |
void | initFromField (const css::uno::Reference< css::sdbc::XRowSet > &_rxForm) |
initializes the control from m_xField More... | |
Protected Member Functions inherited from frm::OControlModel | |
const css::uno::Reference< css::uno::XComponentContext > & | getContext () const |
OControlModel (const css::uno::Reference< css::uno::XComponentContext > &_rFactory, const OUString &_rUnoControlModelTypeName, const OUString &rDefault=OUString(), const bool _bSetDelegator=true) | |
OControlModel (const OControlModel *_pOriginal, const css::uno::Reference< css::uno::XComponentContext > &_rFactory, const bool _bCloneAggregate=true, const bool _bSetDelegator=true) | |
virtual | ~OControlModel () override |
virtual void | clonedFrom (const OControlModel *_pOriginal) |
to be called after an OBoundControlModel (a derivee, respectively) has been cloned More... | |
virtual css::uno::Sequence< css::uno::Type > | _getTypes () |
void | readHelpTextCompatibly (const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream) |
void | writeHelpTextCompatibly (const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream) |
void | doSetDelegator () |
void | doResetDelegator () |
css::uno::Sequence< OUString > | getAggregateServiceNames () const |
virtual void | writeAggregate (const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream) const |
virtual void | readAggregate (const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream) |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual cppu::IPropertyArrayHelper &SAL_CALL | getInfoHelper () override |
virtual void | describeFixedProperties (css::uno::Sequence< css::beans::Property > &_rProps) const |
describes the properties provided by this class, or its respective derived class More... | |
virtual ::osl::Mutex & | getMutex () override |
virtual void | describeFixedAndAggregateProperties (css::uno::Sequence< css::beans::Property > &_out_rFixedProperties, css::uno::Sequence< css::beans::Property > &_out_rAggregateProperties) const override |
virtual css::uno::Reference< css::beans::XMultiPropertySet > | getPropertiesInterface () override |
virtual void | describeAggregateProperties (css::uno::Sequence< css::beans::Property > &_rAggregateProps) const |
describes the properties of our aggregate More... | |
virtual void SAL_CALL | disposing () |
Protected Member Functions inherited from cppu::OWeakAggObject | |
virtual | ~OWeakAggObject () SAL_OVERRIDE |
Protected Member Functions inherited from cppu::OWeakObject | |
virtual | ~OWeakObject () COVERITY_NOEXCEPT_FALSE |
void | disposeWeakConnectionPoint () |
Protected Member Functions inherited from cppu::ImplHelper7< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7 > | |
~ImplHelper7 () SAL_NOEXCEPT | |
Protected Member Functions inherited from frm::IPropertyBagHelperContext | |
~IPropertyBagHelperContext () | |
Protected Member Functions inherited from cppu::ImplHelper4< class Ifc1, class Ifc2, class Ifc3, class Ifc4 > | |
~ImplHelper4 () SAL_NOEXCEPT | |
Protected Member Functions inherited from cppu::ImplHelper1< class Ifc1 > | |
~ImplHelper1 () SAL_NOEXCEPT | |
Protected Member Functions inherited from cppu::ImplHelper2< class Ifc1, class Ifc2 > | |
~ImplHelper2 () SAL_NOEXCEPT | |
Protected Member Functions inherited from comphelper::OPropertyChangeListener | |
void | disposeAdapter () |
Protected Member Functions inherited from frm::OEntryListHelper | |
OEntryListHelper (OControlModel &_rControlModel) | |
OEntryListHelper (const OEntryListHelper &_rSource, OControlModel &_rControlModel) | |
virtual | ~OEntryListHelper () |
const std::vector< OUString > & | getStringItemList () const |
returns the current string item list More... | |
const css::uno::Sequence< css::uno::Any > & | getTypedItemList () const |
returns the current typed item list More... | |
bool | hasExternalListSource () const |
determines whether we actually have an external list source More... | |
bool | handleDisposing (const css::lang::EventObject &_rEvent) |
handling the XEventListener::disposing call for the case where our list source is being disposed More... | |
void | disposing () |
to be called by derived classes' instances when they're being disposed More... | |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override=0 |
bool | convertNewListSourceProperty (css::uno::Any &_rConvertedValue, css::uno::Any &_rOldValue, const css::uno::Any &_rValue) |
helper for implementing convertFastPropertyValue( StringItemList ) More... | |
void | setNewStringItemList (const css::uno::Any &_rValue, ControlModelLock &_rInstanceLock) |
helper for implementing setFastPropertyValueNoBroadcast More... | |
void | setNewTypedItemList (const css::uno::Any &_rValue, ControlModelLock &_rInstanceLock) |
helper for implementing setFastPropertyValueNoBroadcast More... | |
virtual void | stringItemListChanged (ControlModelLock &_rInstanceLock)=0 |
announces that the list of entries has changed. More... | |
virtual void | refreshInternalEntryList ()=0 |
called when XRefreshable::refresh has been called, and we do not have an external list source More... | |
Protected Member Functions inherited from cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 > | |
~ImplHelper3 () SAL_NOEXCEPT | |
Protected Member Functions inherited from frm::OErrorBroadcaster | |
OErrorBroadcaster (::cppu::OBroadcastHelper &_rBHelper) | |
virtual | ~OErrorBroadcaster () |
void | disposing () |
void | onError (const css::sdbc::SQLException &_rException, const OUString &_rContextDescription) |
void | onError (const css::sdb::SQLErrorEvent &_rException) |
virtual void SAL_CALL | addSQLErrorListener (const css::uno::Reference< css::sdb::XSQLErrorListener > &_rListener) override |
virtual void SAL_CALL | removeSQLErrorListener (const css::uno::Reference< css::sdb::XSQLErrorListener > &_rListener) override |
Static Protected Member Functions inherited from frm::OCloneableAggregation | |
static css::uno::Reference< css::uno::XAggregation > | createAggregateClone (const OCloneableAggregation *_pOriginal) |
Protected Attributes inherited from frm::OBoundControlModel | |
OUString | m_aLabelServiceName |
css::uno::Reference< css::sdbc::XRowSet > | m_xCursor |
css::uno::Reference< css::sdb::XColumnUpdate > | m_xColumnUpdate |
css::uno::Reference< css::sdb::XColumn > | m_xColumn |
Protected Attributes inherited from frm::OControlModel | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
::osl::Mutex | m_aMutex |
oslInterlockedCount | m_lockCount |
css::uno::Reference< css::uno::XInterface > | m_xParent |
PropertyBagHelper | m_aPropertyBagHelper |
OUString | m_aName |
OUString | m_aTag |
sal_Int16 | m_nTabIndex |
sal_Int16 | m_nClassId |
bool | m_bNativeLook |
bool | m_bStandardTheme |
bool | m_bGenerateVbEvents |
sal_Int16 | m_nControlTypeinMSO |
sal_uInt16 | m_nObjIDinMSO |
Protected Attributes inherited from cppu::OWeakAggObject | |
css::uno::WeakReferenceHelper | xDelegator |
Protected Attributes inherited from cppu::OWeakObject | |
oslInterlockedCount | m_refCount |
Protected Attributes inherited from frm::OCloneableAggregation | |
css::uno::Reference< css::uno::XAggregation > | m_xAggregate |
Definition at line 98 of file ListBox.hxx.
frm::OListBoxModel::OListBoxModel | ( | const css::uno::Reference< css::uno::XComponentContext > & | _rxFactory | ) |
Referenced by createClone().
frm::OListBoxModel::OListBoxModel | ( | const OListBoxModel * | _pOriginal, |
const css::uno::Reference< css::uno::XComponentContext > & | _rxFactory | ||
) |
|
overridevirtual |
Definition at line 185 of file ListBox.cxx.
References cppu::OComponentHelper::acquire(), and cppu::OComponentHelper::dispose().
|
overrideprivatevirtual |
Reimplemented from frm::OBoundControlModel.
Definition at line 131 of file ListBox.cxx.
References frm::OBoundControlModel::_getTypes(), frm::TypeBag::getTypes(), cppu::ImplHelper1< class Ifc1 >::getTypes(), and cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >::getTypes().
|
overrideprivatevirtual |
Reimplemented from frm::OBoundControlModel.
Definition at line 518 of file ListBox.cxx.
References frm::OBoundControlModel::_propertyChanged(), PROPERTY_STRINGITEMLIST, PROPERTY_TYPEDITEMLIST, frm::OEntryListHelper::setNewStringItemList(), and frm::OEntryListHelper::setNewTypedItemList().
|
private |
Definition at line 1060 of file ListBox.cxx.
References m_aBoundValues, and m_aConvertedBoundValues.
Referenced by loadData(), onDisconnectedDbColumn(), and read().
|
overrideprivatevirtual |
commits the current control value to the database column we're bound to @precond we're properly bound to a database column, especially <member>m_xColumnUpdate</member> is not <NULL>
_bPostReset | <TRUE> if and only if the current control value results from a reset (<member>getDefaultForReset</member>) |
Implements frm::OBoundControlModel.
Definition at line 1160 of file ListBox.cxx.
References Exception, getFirstSelectedValue(), m_aSaveValue, and frm::OBoundControlModel::m_xColumnUpdate.
|
private |
Definition at line 1067 of file ListBox.cxx.
References connectivity::ORowSetValue::isNull(), frm::OBoundControlModel::isRequired(), m_aBoundValues, m_aConvertedBoundValues, m_nConvertedBoundValuesType, m_nNULLPos, nPos, s_aEmptyStringValue, and s_aEmptyValue.
Referenced by impl_getValues().
|
overridevirtual |
Reimplemented from frm::OBoundControlModel.
Definition at line 402 of file ListBox.cxx.
References Any, frm::OBoundControlModel::convertFastPropertyValue(), frm::OEntryListHelper::convertNewListSourceProperty(), getCurrentMultiValue(), getCurrentSingleValue(), frm::OEntryListHelper::getTypedItemList(), frm::OEntryListHelper::hasExternalListSource(), m_aBoundColumn, m_aDefaultSelectSeq, m_aListSourceValues, m_eListSourceType, PROPERTY_ID_BOUNDCOLUMN, PROPERTY_ID_DEFAULT_SELECT_SEQ, PROPERTY_ID_LISTSOURCE, PROPERTY_ID_LISTSOURCETYPE, PROPERTY_ID_SELECT_VALUE, PROPERTY_ID_SELECT_VALUE_SEQ, PROPERTY_ID_STRINGITEMLIST, PROPERTY_ID_TYPEDITEMLIST, PROPERTY_ID_VALUE_SEQ, SAL_WARN, tryPropertyValue(), and tryPropertyValueEnum().
|
overrideprivatevirtual |
Implements frm::OControlModel.
Definition at line 197 of file ListBox.cxx.
References frm::OControlModel::getContext(), and OListBoxModel().
|
overrideprivatevirtual |
describes the properties of our aggregate
The default implementation simply asks m_xAggregateSet for its properties.
You usually only need to override this method if you want to filter the aggregate properties.
Reimplemented from frm::OControlModel.
Definition at line 544 of file ListBox.cxx.
References frm::OControlModel::describeAggregateProperties(), PROPERTY_STRINGITEMLIST, PROPERTY_TYPEDITEMLIST, and RemoveProperty().
|
overrideprivatevirtual |
describes the properties provided by this class, or its respective derived class
Derived classes usually call the base class first, and then append own properties.
Reimplemented from frm::OBoundControlModel.
Definition at line 498 of file ListBox.cxx.
References DBG_ASSERT, frm::OBoundControlModel::describeFixedProperties(), PROPERTY_BOUNDCOLUMN, PROPERTY_DEFAULT_SELECT_SEQ, PROPERTY_ID_BOUNDCOLUMN, PROPERTY_ID_DEFAULT_SELECT_SEQ, PROPERTY_ID_LISTSOURCE, PROPERTY_ID_LISTSOURCETYPE, PROPERTY_ID_SELECT_VALUE, PROPERTY_ID_SELECT_VALUE_SEQ, PROPERTY_ID_STRINGITEMLIST, PROPERTY_ID_TABINDEX, PROPERTY_ID_TYPEDITEMLIST, PROPERTY_ID_VALUE_SEQ, PROPERTY_LISTSOURCE, PROPERTY_LISTSOURCETYPE, PROPERTY_SELECT_VALUE, PROPERTY_SELECT_VALUE_SEQ, PROPERTY_STRINGITEMLIST, PROPERTY_TABINDEX, PROPERTY_TYPEDITEMLIST, and PROPERTY_VALUE_SEQ.
|
overridevirtual |
Reimplemented from frm::OBoundControlModel.
Definition at line 243 of file ListBox.cxx.
References frm::OEntryListHelper::disposing(), frm::OErrorBroadcaster::disposing(), and frm::OBoundControlModel::disposing().
|
overrideprivatevirtual |
Implements frm::OEntryListHelper.
|
overrideprivatevirtual |
retrieves the current value of the form component
This is the implementation method for XValidatableFormComponent::getCurrentValue. The default implementation calls translateControlValueToValidatableValue if a validator is present, otherwise getControlValue.
@precond our mutex is locked when this method is called
Reimplemented from frm::OBoundControlModel.
Definition at line 1686 of file ListBox.cxx.
References Any, DBG_UNHANDLED_EXCEPTION, Exception, getCurrentMultiValue(), getCurrentSingleValue(), getPropertyValue(), frm::OBoundControlModel::getValidator(), frm::OBoundControlModel::getValueBinding(), PROPERTY_MULTISELECTION, and translateControlValueToExternalValue().
Referenced by translateControlValueToValidatableValue().
|
private |
Definition at line 1668 of file ListBox.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, frm::OBoundControlModel::getControlValue(), and impl_getValues().
Referenced by convertFastPropertyValue(), getCurrentFormComponentValue(), getFastPropertyValue(), and translateControlValueToExternalValue().
|
private |
Definition at line 1650 of file ListBox.cxx.
References Any, DBG_UNHANDLED_EXCEPTION, Exception, frm::OBoundControlModel::getControlValue(), and impl_getValues().
Referenced by convertFastPropertyValue(), getCurrentFormComponentValue(), getFastPropertyValue(), and translateControlValueToExternalValue().
|
overrideprivatevirtual |
returns the default which should be used when resetting the control
The default implementation returns an empty Any.
Reimplemented from frm::OBoundControlModel.
Definition at line 1277 of file ListBox.cxx.
References Any, aSeq, m_aDefaultSelectSeq, and m_nNULLPos.
|
overridevirtual |
Reimplemented from frm::OBoundControlModel.
Definition at line 251 of file ListBox.cxx.
References comphelper::containerToSequence(), getCurrentMultiValue(), getCurrentSingleValue(), frm::OBoundControlModel::getFastPropertyValue(), frm::OEntryListHelper::getStringItemList(), frm::OEntryListHelper::getTypedItemList(), m_aBoundColumn, m_aBoundValues, m_aDefaultSelectSeq, m_aListSourceValues, m_eListSourceType, PROPERTY_ID_BOUNDCOLUMN, PROPERTY_ID_DEFAULT_SELECT_SEQ, PROPERTY_ID_LISTSOURCE, PROPERTY_ID_LISTSOURCETYPE, PROPERTY_ID_SELECT_VALUE, PROPERTY_ID_SELECT_VALUE_SEQ, PROPERTY_ID_STRINGITEMLIST, PROPERTY_ID_TYPEDITEMLIST, and PROPERTY_ID_VALUE_SEQ.
|
overrideprivatevirtual |
Reimplemented from frm::OBoundControlModel.
Definition at line 956 of file FormComponent.cxx.
|
private |
Definition at line 1131 of file ListBox.cxx.
References DBG_ASSERT, frm::OBoundControlModel::getValuePropertyAggHandle(), impl_getValues(), m_nNULLPos, s_aEmptyValue, and SAL_WARN.
Referenced by commitControlValueToDbColumn().
|
inlineoverridevirtual |
Implements frm::OControlModel.
Definition at line 135 of file ListBox.hxx.
|
overrideprivatevirtual |
Implements frm::OControlModel.
Definition at line 554 of file ListBox.cxx.
References FRM_COMPONENT_LISTBOX.
|
overrideprivatevirtual |
returns the data types which the control could use to exchange data with an external value binding
The types returned here are completely independent from the concrete value binding, they're just candidates which depend on the control type, and possible the concrete state of the control (i.e. some property value).
If a control implementation supports multiple types, the ordering in the returned sequence indicates preference: Preferred types are mentioned first.
The default implementation returns the type of our value property.
Reimplemented from frm::OBoundControlModel.
Definition at line 1716 of file ListBox.cxx.
References cppu::UnoType< typename T >::get().
|
overridevirtual |
Reimplemented from frm::OBoundControlModel.
Definition at line 206 of file ListBox.cxx.
References BINDABLE_CONTROL_MODEL, BINDABLE_DATA_AWARE_CONTROL_MODEL, BINDABLE_DATABASE_LIST_BOX, DATA_AWARE_CONTROL_MODEL, FRM_COMPONENT_LISTBOX, FRM_SUN_COMPONENT_DATABASE_LISTBOX, FRM_SUN_COMPONENT_LISTBOX, frm::OBoundControlModel::getSupportedServiceNames(), VALIDATABLE_BINDABLE_CONTROL_MODEL, and VALIDATABLE_CONTROL_MODEL.
|
private |
Definition at line 1096 of file ListBox.cxx.
References frm::OBoundControlModel::getFieldType(), frm::OBoundControlModel::hasField(), and m_nBoundColumnType.
Referenced by impl_getValues(), translateBindingValuesToControlValue(), translateDbColumnToControlValue(), and translateDbValueToControlValue().
|
private |
Definition at line 1103 of file ListBox.cxx.
References convertBoundValues(), frm::OEntryListHelper::getStringItemList(), getValueType(), m_aBoundValues, m_aConvertedBoundValues, and m_nConvertedBoundValuesType.
Referenced by getCurrentMultiValue(), getCurrentSingleValue(), getFirstSelectedValue(), translateBindingValuesToControlValue(), and translateDbValueToControlValue().
|
private |
refreshes the list boxes list data @precond we don't actually have an external list source
Definition at line 1765 of file ListBox.cxx.
References DBG_ASSERT, frm::OEntryListHelper::hasExternalListSource(), loadData(), m_eListSourceType, and frm::OBoundControlModel::m_xCursor.
Referenced by onConnectedDbColumn(), and refreshInternalEntryList().
|
private |
Definition at line 141 of file ListBox.cxx.
References PROPERTY_STRINGITEMLIST, PROPERTY_TYPEDITEMLIST, and frm::OBoundControlModel::startAggregatePropertyListening().
|
private |
Definition at line 711 of file ListBox.cxx.
References Any, aStr, clearBoundValues(), composeTableNameForSelect(), xforms::copy(), DBG_ASSERT, DBG_UNHANDLED_EXCEPTION, Exception, frm::CachedRowSet::execute(), frm::OControlModel::getContext(), frm::OBoundControlModel::getControlSource(), dbtools::FormattedColumnValue::getFormattedValue(), getTableFields(), frm::OEntryListHelper::hasExternalListSource(), frm::OBoundControlModel::hasField(), hasProperty(), i, utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::is(), frm::CachedRowSet::isDirty(), frm::OBoundControlModel::isRequired(), frm::ResourceManager::loadString(), m_aBoundColumn, m_aListRowSet, m_aListSourceValues, m_eListSourceType, m_nBoundColumnType, m_nNULLPos, frm::OBoundControlModel::m_xCursor, frm::OErrorBroadcaster::onError(), PROPERTY_ACTIVE_CONNECTION, PROPERTY_FIELDSOURCE, PROPERTY_ID_STRINGITEMLIST, PROPERTY_ID_TYPEDITEMLIST, PROPERTY_NAME, qualifiedNameComponents(), quoteName(), utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::reset(), SAL_INFO, SAL_WARN, sCatalog, setBoundValues(), frm::CachedRowSet::setCommand(), frm::CachedRowSet::setCommandFromQuery(), frm::CachedRowSet::setConnection(), frm::CachedRowSet::setEscapeProcessing(), and sSchema.
Referenced by impl_refreshDbEntryList(), and setFastPropertyValue_NoBroadcast().
|
overrideprivatevirtual |
called whenever a connection to a database column has been established
Reimplemented from frm::OBoundControlModel.
Definition at line 1023 of file ListBox.cxx.
References frm::OEntryListHelper::hasExternalListSource(), frm::OBoundControlModel::hasField(), impl_refreshDbEntryList(), and PROPERTY_ID_MULTISELECTION.
|
overrideprivatevirtual |
called whenever a connection to a database column has been suspended
Reimplemented from frm::OBoundControlModel.
Definition at line 1037 of file ListBox.cxx.
References Any, clearBoundValues(), frm::CachedRowSet::dispose(), frm::OEntryListHelper::hasExternalListSource(), m_aListRowSet, m_eListSourceType, m_nBoundColumnType, m_nNULLPos, and PROPERTY_ID_STRINGITEMLIST.
|
overridevirtual |
Reimplemented from frm::OBoundControlModel.
Definition at line 231 of file ListBox.cxx.
References Any, frm::OBoundControlModel::queryAggregation(), cppu::ImplHelper1< class Ifc1 >::queryInterface(), and cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >::queryInterface().
|
overrideprivatevirtual |
Reimplemented from frm::OBoundControlModel.
Definition at line 596 of file ListBox.cxx.
References Any, frm::BOUNDCOLUMN, clearBoundValues(), DBG_ASSERT, frm::OBoundControlModel::defaultCommonProperties(), Exception, frm::OBoundControlModel::getControlSource(), comphelper::string::getTokenCount(), frm::OEntryListHelper::hasExternalListSource(), i, m_aBoundColumn, m_aDefaultSelectSeq, m_aListSourceValues, m_eListSourceType, nValue, nVersion, PROPERTY_ID_DEFAULT_SELECT_SEQ, PROPERTY_ID_LISTSOURCE, PROPERTY_ID_STRINGITEMLIST, PROPERTY_ID_TYPEDITEMLIST, PROPERTY_STRINGITEMLIST, frm::OBoundControlModel::read(), frm::OBoundControlModel::readCommonProperties(), frm::OControlModel::readHelpTextCompatibly(), resetNoBroadcast(), SAL_WARN, frm::OEntryListHelper::setNewStringItemList(), and TOOLS_WARN_EXCEPTION.
|
overrideprivatevirtual |
called when XRefreshable::refresh has been called, and we do not have an external list source
Implements frm::OEntryListHelper.
Definition at line 1779 of file ListBox.cxx.
References frm::OBoundControlModel::hasField(), impl_refreshDbEntryList(), frm::OBoundControlModel::initFromField(), and frm::OBoundControlModel::m_xCursor.
|
overrideprivatevirtual |
called to reset the control to some kind of default.
The semantics of "default" is finally defined by the derived class (in particular, by <member>getDefaultForReset</member>).
No listener notification needs to be done in the derived class.
Normally, you won't override this method, but <member>getDefaultForReset</member> instead.
Reimplemented from frm::OBoundControlModel.
Definition at line 1297 of file ListBox.cxx.
References m_aSaveValue, frm::OBoundControlModel::resetNoBroadcast(), and connectivity::ORowSetValue::setNull().
Referenced by read(), and setFastPropertyValue_NoBroadcast().
|
private |
Definition at line 1053 of file ListBox.cxx.
References m_aBoundValues, and m_aConvertedBoundValues.
Referenced by loadData(), and setFastPropertyValue_NoBroadcast().
|
overridevirtual |
Reimplemented from frm::OBoundControlModel.
Definition at line 297 of file ListBox.cxx.
References Any, xforms::copy(), DBG_ASSERT, frm::OBoundControlModel::eOther, frm::OEntryListHelper::hasExternalListSource(), frm::OBoundControlModel::hasField(), loadData(), m_aBoundColumn, m_aDefaultSelectSeq, m_aListSourceValues, m_eListSourceType, frm::OBoundControlModel::m_xCursor, PROPERTY_ID_BOUNDCOLUMN, PROPERTY_ID_DEFAULT_SELECT_SEQ, PROPERTY_ID_LISTSOURCE, PROPERTY_ID_LISTSOURCETYPE, PROPERTY_ID_SELECT_VALUE, PROPERTY_ID_SELECT_VALUE_SEQ, PROPERTY_ID_STRINGITEMLIST, PROPERTY_ID_TYPEDITEMLIST, PROPERTY_ID_VALUE_SEQ, resetNoBroadcast(), SAL_WARN, setBoundValues(), frm::OBoundControlModel::setControlValue(), frm::OBoundControlModel::setFastPropertyValue_NoBroadcast(), frm::OEntryListHelper::setNewStringItemList(), frm::OEntryListHelper::setNewTypedItemList(), translateBindingValuesToControlValue(), translateDbValueToControlValue(), and v.
|
overrideprivatevirtual |
Definition at line 461 of file ListBox.cxx.
References Any, PROPERTY_SELECT_SEQ, setPropertyValue(), and frm::OControlModel::setPropertyValues().
|
overrideprivatevirtual |
announces that the list of entries has changed.
Derived classes have to override this. Most probably, they'll set the new as model property.
Implements frm::OEntryListHelper.
Definition at line 1730 of file ListBox.cxx.
References Any, comphelper::containerToSequence(), DBG_UNHANDLED_EXCEPTION, frm::OBoundControlModel::eOther, Exception, frm::OEntryListHelper::getStringItemList(), frm::OEntryListHelper::getTypedItemList(), frm::OBoundControlModel::hasExternalValueBinding(), frm::OBoundControlModel::hasField(), m_aDefaultSelectSeq, PROPERTY_STRINGITEMLIST, PROPERTY_TYPEDITEMLIST, frm::OBoundControlModel::resumeValueListening(), frm::OBoundControlModel::setControlValue(), frm::OBoundControlModel::suspendValueListening(), and frm::OBoundControlModel::transferExternalValueToControl().
|
private |
Definition at line 1213 of file ListBox.cxx.
References getValueType(), impl_getValues(), m_nConvertedBoundValuesType, m_nNULLPos, nCount, v, and value.
Referenced by setFastPropertyValue_NoBroadcast(), and translateExternalValueToControlValue().
|
overrideprivatevirtual |
commits the current control value to our external value binding
The default implementation simply calls getControlValue.
Reimplemented from frm::OBoundControlModel.
Definition at line 1579 of file ListBox.cxx.
References Any, xforms::copy(), frm::OBoundControlModel::getControlValue(), getCurrentMultiValue(), getCurrentSingleValue(), frm::OBoundControlModel::getExternalValueType(), frm::OEntryListHelper::getStringItemList(), frm::OEntryListHelper::getTypedItemList(), frm::OBoundControlModel::hasExternalValueBinding(), and nIndex.
Referenced by getCurrentFormComponentValue().
|
overrideprivatevirtual |
retrieves the current value of the control, in a shape which can be used with our external validator.
The default implementation simply calls <member>>translateControlValueToExternalValue</member>.
@precond Our own mutex is locked.
Reimplemented from frm::OBoundControlModel.
Definition at line 1643 of file ListBox.cxx.
References Any, getCurrentFormComponentValue(), and frm::OBoundControlModel::hasValidator().
|
overrideprivatevirtual |
translates a db column value into a control value.
Must transform the very current value of the database column we're bound to (<member>m_xColumn</member>) into a value which can be used as current value for the control.
Implements frm::OBoundControlModel.
Definition at line 1254 of file ListBox.cxx.
References Any, frm::OBoundControlModel::getField(), getValueType(), m_aSaveValue, frm::OBoundControlModel::m_xColumn, SAL_WARN, and translateDbValueToControlValue().
|
private |
Definition at line 1185 of file ListBox.cxx.
References getValueType(), impl_getValues(), m_nConvertedBoundValuesType, m_nNULLPos, and v.
Referenced by setFastPropertyValue_NoBroadcast(), translateDbColumnToControlValue(), and translateExternalValueToControlValue().
|
overrideprivatevirtual |
translates the given value, which was obtained from the current external value binding, to a value which can be used in setControlValue
The default implementation returns the value itself, exception when it is VOID, and our value property is not allowed to be void - in this case, the returned value is a default-constructed value of the type required by our value property.
Reimplemented from frm::OBoundControlModel.
Definition at line 1360 of file ListBox.cxx.
References Any, comphelper::containerToSequence(), xforms::copy(), frm::OBoundControlModel::getExternalValueType(), frm::OEntryListHelper::getStringItemList(), idx, o3tl::make_unsigned(), size, translateBindingValuesToControlValue(), translateDbValueToControlValue(), and v.
|
overrideprivatevirtual |
Reimplemented from frm::OBoundControlModel.
Definition at line 560 of file ListBox.cxx.
References frm::BOUNDCOLUMN, m_aBoundColumn, m_aDefaultSelectSeq, m_aListSourceValues, m_eListSourceType, frm::OBoundControlModel::write(), frm::OBoundControlModel::writeCommonProperties(), and frm::OControlModel::writeHelpTextCompatibly().
|
private |
Definition at line 108 of file ListBox.hxx.
Referenced by convertFastPropertyValue(), getFastPropertyValue(), loadData(), read(), setFastPropertyValue_NoBroadcast(), and write().
|
private |
Definition at line 110 of file ListBox.hxx.
Referenced by clearBoundValues(), convertBoundValues(), getFastPropertyValue(), impl_getValues(), and setBoundValues().
|
mutableprivate |
Definition at line 111 of file ListBox.hxx.
Referenced by clearBoundValues(), convertBoundValues(), impl_getValues(), and setBoundValues().
|
private |
Definition at line 113 of file ListBox.hxx.
Referenced by convertFastPropertyValue(), getDefaultForReset(), getFastPropertyValue(), read(), setFastPropertyValue_NoBroadcast(), stringItemListChanged(), and write().
|
private |
Definition at line 103 of file ListBox.hxx.
Referenced by loadData(), and onDisconnectedDbColumn().
|
private |
Definition at line 109 of file ListBox.hxx.
Referenced by convertFastPropertyValue(), getFastPropertyValue(), loadData(), read(), setFastPropertyValue_NoBroadcast(), and write().
|
private |
Definition at line 104 of file ListBox.hxx.
Referenced by commitControlValueToDbColumn(), resetNoBroadcast(), and translateDbColumnToControlValue().
|
private |
Definition at line 107 of file ListBox.hxx.
Referenced by convertFastPropertyValue(), getFastPropertyValue(), impl_refreshDbEntryList(), loadData(), onDisconnectedDbColumn(), read(), setFastPropertyValue_NoBroadcast(), and write().
|
private |
Definition at line 117 of file ListBox.hxx.
Referenced by getValueType(), loadData(), and onDisconnectedDbColumn().
|
mutableprivate |
Definition at line 112 of file ListBox.hxx.
Referenced by convertBoundValues(), impl_getValues(), translateBindingValuesToControlValue(), and translateDbValueToControlValue().
|
mutableprivate |
Definition at line 116 of file ListBox.hxx.
Referenced by convertBoundValues(), getDefaultForReset(), getFirstSelectedValue(), loadData(), onDisconnectedDbColumn(), translateBindingValuesToControlValue(), and translateDbValueToControlValue().
|
staticprivate |
Definition at line 155 of file ListBox.hxx.
Referenced by convertBoundValues().
|
staticprivate |
Definition at line 154 of file ListBox.hxx.
Referenced by convertBoundValues(), and getFirstSelectedValue().