LibreOffice Module toolkit (master) 1
|
#include <unocontrols.hxx>
Public Member Functions | |
UnoControlListBoxModel (const css::uno::Reference< css::uno::XComponentContext > &rxContext, ConstructorMode const i_mode=ConstructDefault) | |
UnoControlListBoxModel (const UnoControlListBoxModel &i_rSource) | |
virtual | ~UnoControlListBoxModel () override |
rtl::Reference< UnoControlModel > | Clone () const override |
virtual void | ImplNormalizePropertySequence (const sal_Int32 _nCount, sal_Int32 *_pHandles, css::uno::Any *_pValues, sal_Int32 *_pValidHandles) const override |
css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
OUString SAL_CALL | getServiceName () override |
OUString SAL_CALL | getImplementationName () override |
css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual ::sal_Int32 SAL_CALL | getItemCount () override |
virtual void SAL_CALL | insertItem (::sal_Int32 Position, const OUString &ItemText, const OUString &ItemImageURL) override |
virtual void SAL_CALL | insertItemText (::sal_Int32 Position, const OUString &ItemText) override |
virtual void SAL_CALL | insertItemImage (::sal_Int32 Position, const OUString &ItemImageURL) override |
virtual void SAL_CALL | removeItem (::sal_Int32 Position) override |
virtual void SAL_CALL | removeAllItems () override |
virtual void SAL_CALL | setItemText (::sal_Int32 Position, const OUString &ItemText) override |
virtual void SAL_CALL | setItemImage (::sal_Int32 Position, const OUString &ItemImageURL) override |
virtual void SAL_CALL | setItemTextAndImage (::sal_Int32 Position, const OUString &ItemText, const OUString &ItemImageURL) override |
virtual void SAL_CALL | setItemData (::sal_Int32 Position, const css::uno::Any &DataValue) override |
virtual OUString SAL_CALL | getItemText (::sal_Int32 Position) override |
virtual OUString SAL_CALL | getItemImage (::sal_Int32 Position) override |
virtual css::beans::Pair< OUString, OUString > SAL_CALL | getItemTextAndImage (::sal_Int32 Position) override |
virtual css::uno::Any SAL_CALL | getItemData (::sal_Int32 Position) override |
virtual css::uno::Sequence< css::beans::Pair< OUString, OUString > > SAL_CALL | getAllItems () override |
virtual void SAL_CALL | addItemListListener (const css::uno::Reference< css::awt::XItemListListener > &Listener) override |
virtual void SAL_CALL | removeItemListListener (const css::uno::Reference< css::awt::XItemListListener > &Listener) override |
void | setFastPropertyValue_NoBroadcast (std::unique_lock< std::mutex > &rGuard, sal_Int32 nHandle, const css::uno::Any &rValue) override |
Public Member Functions inherited from cppu::AggImplInheritanceHelper1< class BaseClass, class Ifc1 > | |
AggImplInheritanceHelper1 () | |
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< css::uno::Type > SAL_CALL | getTypes () SAL_OVERRIDE |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () SAL_OVERRIDE |
Protected Types | |
enum | ConstructorMode { ConstructDefault , ConstructWithoutProperties } |
Protected Member Functions | |
css::uno::Any | ImplGetDefaultValue (sal_uInt16 nPropId) const override |
::cppu::IPropertyArrayHelper & | getInfoHelper () override |
Protected Member Functions inherited from cppu::AggImplInheritanceHelper1< class BaseClass, class Ifc1 > | |
AggImplInheritanceHelper1 (T1 const &arg1) | |
AggImplInheritanceHelper1 (T1 const &arg1, T2 const &arg2) | |
AggImplInheritanceHelper1 (T1 const &arg1, T2 const &arg2, T3 const &arg3) | |
AggImplInheritanceHelper1 (T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4) | |
AggImplInheritanceHelper1 (T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5) | |
AggImplInheritanceHelper1 (T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6) | |
Protected Attributes | |
std::unique_ptr< UnoControlListBoxModel_Data > | m_xData |
::comphelper::OInterfaceContainerHelper4< css::awt::XItemListListener > | m_aItemListListeners |
Private Member Functions | |
void | impl_notifyItemListEvent (std::unique_lock< std::mutex > &rGuard, const sal_Int32 i_nItemPosition, const ::std::optional< OUString > &i_rItemText, const ::std::optional< OUString > &i_rItemImageURL, void(SAL_CALL css::awt::XItemListListener::*NotificationMethod)(const css::awt::ItemListEvent &)) |
void | impl_handleInsert (std::unique_lock< std::mutex > &rGuard, const sal_Int32 i_nItemPosition, const ::std::optional< OUString > &i_rItemText, const ::std::optional< OUString > &i_rItemImageURL) |
void | impl_handleRemove (const sal_Int32 i_nItemPosition, std::unique_lock< std::mutex > &i_rClearBeforeNotify) |
void | impl_handleModify (const sal_Int32 i_nItemPosition, const ::std::optional< OUString > &i_rItemText, const ::std::optional< OUString > &i_rItemImageURL, std::unique_lock< std::mutex > &i_rClearBeforeNotify) |
void | impl_getStringItemList (std::unique_lock< std::mutex > &rGuard, ::std::vector< OUString > &o_rStringItems) const |
void | impl_setStringItemList (std::unique_lock< std::mutex > &rGuard, const ::std::vector< OUString > &i_rStringItems) |
Definition at line 724 of file unocontrols.hxx.
|
protected |
Enumerator | |
---|---|
ConstructDefault | |
ConstructWithoutProperties |
Definition at line 727 of file unocontrols.hxx.
UnoControlListBoxModel::UnoControlListBoxModel | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext, |
ConstructorMode const | i_mode = ConstructDefault |
||
) |
UnoControlListBoxModel::UnoControlListBoxModel | ( | const UnoControlListBoxModel & | i_rSource | ) |
Definition at line 2064 of file unocontrols.cxx.
References m_xData.
|
overridevirtual |
Definition at line 2070 of file unocontrols.cxx.
|
overridevirtual |
Definition at line 2331 of file unocontrols.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), m_aItemListListeners, and m_aMutex.
|
inlineoverride |
Definition at line 741 of file unocontrols.hxx.
|
overridevirtual |
Definition at line 2324 of file unocontrols.cxx.
|
override |
Definition at line 2074 of file unocontrols.cxx.
|
overrideprotected |
Definition at line 2101 of file unocontrols.cxx.
References aHelper.
Referenced by getPropertySetInfo().
|
override |
Definition at line 2181 of file unocontrols.cxx.
|
overridevirtual |
|
overridevirtual |
Definition at line 2300 of file unocontrols.cxx.
|
overridevirtual |
Definition at line 2292 of file unocontrols.cxx.
|
overridevirtual |
Definition at line 2308 of file unocontrols.cxx.
|
override |
Definition at line 2109 of file unocontrols.cxx.
References getInfoHelper().
|
override |
Definition at line 2085 of file unocontrols.cxx.
|
override |
Definition at line 2079 of file unocontrols.cxx.
References comphelper::concatSequences(), and UnoControlModel::getSupportedServiceNames().
|
private |
Definition at line 2347 of file unocontrols.cxx.
References Any, BASEPROPERTY_STRINGITEMLIST, and comphelper::sequenceToContainer().
Referenced by impl_handleInsert(), impl_handleModify(), and impl_handleRemove().
|
private |
Definition at line 2375 of file unocontrols.cxx.
References impl_getStringItemList(), impl_notifyItemListEvent(), impl_setStringItemList(), and o3tl::make_unsigned().
Referenced by insertItem(), insertItemImage(), and insertItemText().
|
private |
Definition at line 2436 of file unocontrols.cxx.
References impl_getStringItemList(), impl_notifyItemListEvent(), impl_setStringItemList(), and o3tl::make_unsigned().
Referenced by setItemImage(), setItemText(), and setItemTextAndImage().
|
private |
Definition at line 2398 of file unocontrols.cxx.
References aEvent, impl_getStringItemList(), impl_notifyItemListEvent(), impl_setStringItemList(), m_aItemListListeners, o3tl::make_unsigned(), and comphelper::OInterfaceContainerHelper4< class ListenerT >::notifyEach().
Referenced by removeAllItems(), and removeItem().
|
private |
Definition at line 2461 of file unocontrols.cxx.
References aEvent, m_aItemListListeners, and comphelper::OInterfaceContainerHelper4< class ListenerT >::notifyEach().
Referenced by impl_handleInsert(), impl_handleModify(), and impl_handleRemove().
|
private |
Definition at line 2358 of file unocontrols.cxx.
References BASEPROPERTY_STRINGITEMLIST, comphelper::containerToSequence(), Exception, and m_xData.
Referenced by impl_handleInsert(), impl_handleModify(), and impl_handleRemove().
|
overrideprotected |
Definition at line 2091 of file unocontrols.cxx.
References BASEPROPERTY_DEFAULTCONTROL, and UnoControlModel::ImplGetDefaultValue().
|
overridevirtual |
_pHandles | the number of entries in the arrays |
_pValues | the handles of the properties to set |
_pValidHandles | the values of the properties to set pointer to the valid handles, allowed to be adjusted |
Definition at line 2168 of file unocontrols.cxx.
References BASEPROPERTY_SELECTEDITEMS, BASEPROPERTY_STRINGITEMLIST, BASEPROPERTY_TYPEDITEMLIST, and UnoControlModel::ImplNormalizePropertySequence().
|
overridevirtual |
Definition at line 2188 of file unocontrols.cxx.
References impl_handleInsert(), ListItem, m_aMutex, and m_xData.
|
overridevirtual |
Definition at line 2213 of file unocontrols.cxx.
References impl_handleInsert(), ListItem, m_aMutex, and m_xData.
|
overridevirtual |
Definition at line 2201 of file unocontrols.cxx.
References impl_handleInsert(), ListItem, m_aMutex, and m_xData.
|
overridevirtual |
Definition at line 2236 of file unocontrols.cxx.
References impl_handleRemove(), m_aMutex, and m_xData.
|
overridevirtual |
Definition at line 2225 of file unocontrols.cxx.
References impl_handleRemove(), m_aMutex, and m_xData.
|
overridevirtual |
Definition at line 2339 of file unocontrols.cxx.
References m_aItemListListeners, m_aMutex, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().
|
override |
Definition at line 2128 of file unocontrols.cxx.
References aEvent, Any, aSeq, BASEPROPERTY_SELECTEDITEMS, BASEPROPERTY_STRINGITEMLIST, m_aItemListListeners, m_xData, nHandle, comphelper::OInterfaceContainerHelper4< class ListenerT >::notifyEach(), and UnoControlModel::setFastPropertyValue_NoBroadcast().
|
overridevirtual |
Definition at line 2284 of file unocontrols.cxx.
|
overridevirtual |
Definition at line 2259 of file unocontrols.cxx.
References impl_handleModify(), ListItem, m_aMutex, and m_xData.
|
overridevirtual |
Definition at line 2247 of file unocontrols.cxx.
References impl_handleModify(), ListItem, m_aMutex, and m_xData.
|
overridevirtual |
Definition at line 2271 of file unocontrols.cxx.
References impl_handleModify(), ListItem, m_aMutex, and m_xData.
|
protected |
Definition at line 819 of file unocontrols.hxx.
Referenced by addItemListListener(), impl_handleRemove(), impl_notifyItemListEvent(), removeItemListListener(), setFastPropertyValue_NoBroadcast(), and UnoControlComboBoxModel::setFastPropertyValue_NoBroadcast().
|
protected |
Definition at line 818 of file unocontrols.hxx.
Referenced by getAllItems(), getItemCount(), getItemData(), getItemImage(), getItemText(), getItemTextAndImage(), impl_setStringItemList(), insertItem(), insertItemImage(), insertItemText(), removeAllItems(), removeItem(), setFastPropertyValue_NoBroadcast(), UnoControlComboBoxModel::setFastPropertyValue_NoBroadcast(), setItemData(), setItemImage(), setItemText(), setItemTextAndImage(), and UnoControlListBoxModel().