LibreOffice Module forms (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
frm::OListBoxControl Class Reference

#include <ListBox.hxx>

Inheritance diagram for frm::OListBoxControl:
[legend]
Collaboration diagram for frm::OListBoxControl:
[legend]

Public Member Functions

 OListBoxControl (const css::uno::Reference< css::uno::XComponentContext > &_rxFactory)
 
virtual ~OListBoxControl () override
 
virtual css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &_rType) override
 
OUString SAL_CALL getImplementationName () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual void SAL_CALL addChangeListener (const css::uno::Reference< css::form::XChangeListener > &_rxListener) override
 
virtual void SAL_CALL removeChangeListener (const css::uno::Reference< css::form::XChangeListener > &_rxListener) override
 
virtual void SAL_CALL focusGained (const css::awt::FocusEvent &_rEvent) override
 
virtual void SAL_CALL focusLost (const css::awt::FocusEvent &_rEvent) override
 
virtual void SAL_CALL itemStateChanged (const css::awt::ItemEvent &_rEvent) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual void SAL_CALL disposing () override
 
virtual void SAL_CALL addItemListener (const css::uno::Reference< css::awt::XItemListener > &l) override
 
virtual void SAL_CALL removeItemListener (const css::uno::Reference< css::awt::XItemListener > &l) override
 
virtual void SAL_CALL addActionListener (const css::uno::Reference< css::awt::XActionListener > &l) override
 
virtual void SAL_CALL removeActionListener (const css::uno::Reference< css::awt::XActionListener > &l) override
 
virtual void SAL_CALL addItem (const OUString &aItem, ::sal_Int16 nPos) override
 
virtual void SAL_CALL addItems (const css::uno::Sequence< OUString > &aItems, ::sal_Int16 nPos) override
 
virtual void SAL_CALL removeItems (::sal_Int16 nPos, ::sal_Int16 nCount) override
 
virtual ::sal_Int16 SAL_CALL getItemCount () override
 
virtual OUString SAL_CALL getItem (::sal_Int16 nPos) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getItems () override
 
virtual ::sal_Int16 SAL_CALL getSelectedItemPos () override
 
virtual css::uno::Sequence< ::sal_Int16 > SAL_CALL getSelectedItemsPos () override
 
virtual OUString SAL_CALL getSelectedItem () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSelectedItems () override
 
virtual void SAL_CALL selectItemPos (::sal_Int16 nPos, sal_Bool bSelect) override
 
virtual void SAL_CALL selectItemsPos (const css::uno::Sequence< ::sal_Int16 > &aPositions, sal_Bool bSelect) override
 
virtual void SAL_CALL selectItem (const OUString &aItem, sal_Bool bSelect) override
 
virtual sal_Bool SAL_CALL isMutipleMode () override
 
virtual void SAL_CALL setMultipleMode (sal_Bool bMulti) override
 
virtual ::sal_Int16 SAL_CALL getDropDownLineCount () override
 
virtual void SAL_CALL setDropDownLineCount (::sal_Int16 nLines) override
 
virtual void SAL_CALL makeVisible (::sal_Int16 nEntry) override
 
- Public Member Functions inherited from frm::OBoundControl
 OBoundControl (const css::uno::Reference< css::uno::XComponentContext > &_rxContext, const OUString &_rAggregateService, const bool _bSetDelegator=true)
 
virtual ~OBoundControl () override
 
virtual css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &_rType) override
 
virtual sal_Bool SAL_CALL getLock () override
 
virtual void SAL_CALL setLock (sal_Bool _bLock) override
 
virtual sal_Bool SAL_CALL setModel (const css::uno::Reference< css::awt::XControlModel > &Model) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual void SAL_CALL disposing () override
 
- Public Member Functions inherited from frm::OControl
 OControl (const css::uno::Reference< css::uno::XComponentContext > &_rFactory, const OUString &_rAggregateService, const bool _bSetDelegator=true)
 constructs a control More...
 
- 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::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
 
- 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::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 comphelper::IEventProcessor
virtual void processEvent (const AnyEvent &_rEvent)=0
 
virtual void SAL_CALL acquire () noexcept=0
 
virtual void SAL_CALL release () noexcept=0
 

Protected Member Functions

virtual css::uno::Sequence< css::uno::Type > _getTypes () override
 
virtual void processEvent (const ::comphelper::AnyEvent &_rEvent) override
 
- Protected Member Functions inherited from frm::OBoundControl
virtual css::uno::Sequence< css::uno::Type > _getTypes () override
 
void _setLock (bool _bLock)
 
- Protected Member Functions inherited from frm::OControl
virtual ~OControl () override
 
void doSetDelegator ()
 sets the control as delegator at the aggregate More...
 
void doResetDelegator ()
 
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 void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &_rxListener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &_rxListener) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) 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 void SAL_CALL setContext (const css::uno::Reference< css::uno::XInterface > &Context) override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getContext () override
 
virtual void SAL_CALL createPeer (const css::uno::Reference< css::awt::XToolkit > &Toolkit, const css::uno::Reference< css::awt::XWindowPeer > &Parent) override
 
virtual css::uno::Reference< css::awt::XWindowPeer > SAL_CALL getPeer () override
 
virtual sal_Bool SAL_CALL setModel (const css::uno::Reference< css::awt::XControlModel > &Model) override
 
virtual css::uno::Reference< css::awt::XControlModel > SAL_CALL getModel () override
 
virtual css::uno::Reference< css::awt::XView > SAL_CALL getView () override
 
virtual void SAL_CALL setDesignMode (sal_Bool bOn) override
 
virtual sal_Bool SAL_CALL isDesignMode () override
 
virtual sal_Bool SAL_CALL isTransparent () override
 
virtual css::uno::Sequence< css::uno::Type > _getTypes ()
 
css::uno::Sequence< OUString > getAggregateServiceNames () const
 
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::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >
 ~ImplHelper3 () SAL_NOEXCEPT
 
- Protected Member Functions inherited from cppu::ImplHelper1< class Ifc1 >
 ~ImplHelper1 () SAL_NOEXCEPT
 
- Protected Member Functions inherited from cppu::ImplHelper4< class Ifc1, class Ifc2, class Ifc3, class Ifc4 >
 ~ImplHelper4 () SAL_NOEXCEPT
 
- Protected Member Functions inherited from comphelper::IEventProcessor
 ~IEventProcessor ()
 

Private Member Functions

 DECL_LINK (OnTimeout, Timer *, void)
 

Private Attributes

::comphelper::OInterfaceContainerHelper3< css::form::XChangeListener > m_aChangeListeners
 
::comphelper::OInterfaceContainerHelper3< css::awt::XItemListener > m_aItemListeners
 
css::uno::Any m_aCurrentSelection
 
Idle m_aChangeIdle
 
css::uno::Reference< css::awt::XListBox > m_xAggregateListBox
 
::rtl::Reference< ::comphelper::AsyncEventNotifierm_pItemBroadcaster
 

Additional Inherited Members

- Protected Attributes inherited from frm::OControl
::osl::Mutex m_aMutex
 
css::uno::Reference< css::awt::XControl > m_xControl
 
css::uno::Reference< css::uno::XAggregation > m_xAggregate
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
WindowStateGuard m_aWindowStateGuard
 
- Protected Attributes inherited from cppu::OWeakAggObject
css::uno::WeakReferenceHelper xDelegator
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 

Detailed Description

Definition at line 244 of file ListBox.hxx.

Constructor & Destructor Documentation

◆ OListBoxControl()

frm::OListBoxControl::OListBoxControl ( const css::uno::Reference< css::uno::XComponentContext > &  _rxFactory)
explicit

◆ ~OListBoxControl()

frm::OListBoxControl::~OListBoxControl ( )
overridevirtual

Member Function Documentation

◆ _getTypes()

Sequence< Type > frm::OListBoxControl::_getTypes ( )
overrideprotectedvirtual

◆ addActionListener()

void SAL_CALL frm::OListBoxControl::addActionListener ( const css::uno::Reference< css::awt::XActionListener > &  l)
overridevirtual

Definition at line 2038 of file ListBox.cxx.

References m_xAggregateListBox.

◆ addChangeListener()

void SAL_CALL frm::OListBoxControl::addChangeListener ( const css::uno::Reference< css::form::XChangeListener > &  _rxListener)
overridevirtual

◆ addItem()

void SAL_CALL frm::OListBoxControl::addItem ( const OUString &  aItem,
::sal_Int16  nPos 
)
overridevirtual

Definition at line 2052 of file ListBox.cxx.

References m_xAggregateListBox, and nPos.

◆ addItemListener()

void SAL_CALL frm::OListBoxControl::addItemListener ( const css::uno::Reference< css::awt::XItemListener > &  l)
overridevirtual

◆ addItems()

void SAL_CALL frm::OListBoxControl::addItems ( const css::uno::Sequence< OUString > &  aItems,
::sal_Int16  nPos 
)
overridevirtual

Definition at line 2059 of file ListBox.cxx.

References m_xAggregateListBox, and nPos.

◆ DECL_LINK()

frm::OListBoxControl::DECL_LINK ( OnTimeout  ,
Timer ,
void   
)
private

◆ disposing() [1/2]

void frm::OListBoxControl::disposing ( )
overridevirtual

◆ disposing() [2/2]

virtual void SAL_CALL frm::OListBoxControl::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Reimplemented from frm::OBoundControl.

◆ focusGained()

void SAL_CALL frm::OListBoxControl::focusGained ( const css::awt::FocusEvent &  _rEvent)
overridevirtual

◆ focusLost()

void SAL_CALL frm::OListBoxControl::focusLost ( const css::awt::FocusEvent &  _rEvent)
overridevirtual

Definition at line 1882 of file ListBox.cxx.

References m_aCurrentSelection.

◆ getDropDownLineCount()

sal_Int16 SAL_CALL frm::OListBoxControl::getDropDownLineCount ( )
override

Definition at line 2165 of file ListBox.cxx.

References m_xAggregateListBox.

◆ getImplementationName()

OUString SAL_CALL frm::OListBoxControl::getImplementationName ( )
inlineoverridevirtual

Implements frm::OControl.

Definition at line 274 of file ListBox.hxx.

◆ getItem()

OUString SAL_CALL frm::OListBoxControl::getItem ( ::sal_Int16  nPos)
overridevirtual

Definition at line 2081 of file ListBox.cxx.

References m_xAggregateListBox, and nPos.

◆ getItemCount()

sal_Int16 SAL_CALL frm::OListBoxControl::getItemCount ( )
override

Definition at line 2073 of file ListBox.cxx.

References m_xAggregateListBox.

◆ getItems()

Sequence< OUString > SAL_CALL frm::OListBoxControl::getItems ( )
overridevirtual

Definition at line 2089 of file ListBox.cxx.

References m_xAggregateListBox.

◆ getSelectedItem()

OUString SAL_CALL frm::OListBoxControl::getSelectedItem ( )
overridevirtual

Definition at line 2113 of file ListBox.cxx.

References m_xAggregateListBox.

◆ getSelectedItemPos()

sal_Int16 SAL_CALL frm::OListBoxControl::getSelectedItemPos ( )
override

Definition at line 2097 of file ListBox.cxx.

References m_xAggregateListBox.

◆ getSelectedItems()

Sequence< OUString > SAL_CALL frm::OListBoxControl::getSelectedItems ( )
overridevirtual

Definition at line 2121 of file ListBox.cxx.

References m_xAggregateListBox.

◆ getSelectedItemsPos()

Sequence<::sal_Int16 > SAL_CALL frm::OListBoxControl::getSelectedItemsPos ( )
overridevirtual

Definition at line 2105 of file ListBox.cxx.

References m_xAggregateListBox.

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > SAL_CALL frm::OListBoxControl::getSupportedServiceNames ( )
overridevirtual

◆ isMutipleMode()

sal_Bool SAL_CALL frm::OListBoxControl::isMutipleMode ( )
overridevirtual

Definition at line 2150 of file ListBox.cxx.

References m_xAggregateListBox.

◆ itemStateChanged()

void SAL_CALL frm::OListBoxControl::itemStateChanged ( const css::awt::ItemEvent &  _rEvent)
overridevirtual

◆ makeVisible()

void SAL_CALL frm::OListBoxControl::makeVisible ( ::sal_Int16  nEntry)
overridevirtual

Definition at line 2180 of file ListBox.cxx.

References m_xAggregateListBox.

◆ processEvent()

void frm::OListBoxControl::processEvent ( const ::comphelper::AnyEvent _rEvent)
overrideprotectedvirtual

◆ queryAggregation()

Any SAL_CALL frm::OListBoxControl::queryAggregation ( const css::uno::Type &  _rType)
overridevirtual

◆ removeActionListener()

void SAL_CALL frm::OListBoxControl::removeActionListener ( const css::uno::Reference< css::awt::XActionListener > &  l)
overridevirtual

Definition at line 2045 of file ListBox.cxx.

References m_xAggregateListBox.

◆ removeChangeListener()

void SAL_CALL frm::OListBoxControl::removeChangeListener ( const css::uno::Reference< css::form::XChangeListener > &  _rxListener)
overridevirtual

◆ removeItemListener()

void SAL_CALL frm::OListBoxControl::removeItemListener ( const css::uno::Reference< css::awt::XItemListener > &  l)
overridevirtual

◆ removeItems()

void SAL_CALL frm::OListBoxControl::removeItems ( ::sal_Int16  nPos,
::sal_Int16  nCount 
)
overridevirtual

Definition at line 2066 of file ListBox.cxx.

References m_xAggregateListBox, nCount, and nPos.

◆ selectItem()

void SAL_CALL frm::OListBoxControl::selectItem ( const OUString &  aItem,
sal_Bool  bSelect 
)
overridevirtual

Definition at line 2143 of file ListBox.cxx.

References m_xAggregateListBox.

◆ selectItemPos()

void SAL_CALL frm::OListBoxControl::selectItemPos ( ::sal_Int16  nPos,
sal_Bool  bSelect 
)
overridevirtual

Definition at line 2129 of file ListBox.cxx.

References m_xAggregateListBox, and nPos.

◆ selectItemsPos()

void SAL_CALL frm::OListBoxControl::selectItemsPos ( const css::uno::Sequence< ::sal_Int16 > &  aPositions,
sal_Bool  bSelect 
)
overridevirtual

Definition at line 2136 of file ListBox.cxx.

References m_xAggregateListBox.

◆ setDropDownLineCount()

void SAL_CALL frm::OListBoxControl::setDropDownLineCount ( ::sal_Int16  nLines)
overridevirtual

Definition at line 2173 of file ListBox.cxx.

References m_xAggregateListBox.

◆ setMultipleMode()

void SAL_CALL frm::OListBoxControl::setMultipleMode ( sal_Bool  bMulti)
overridevirtual

Definition at line 2158 of file ListBox.cxx.

References m_xAggregateListBox.

Member Data Documentation

◆ m_aChangeIdle

Idle frm::OListBoxControl::m_aChangeIdle
private

Definition at line 253 of file ListBox.hxx.

Referenced by disposing(), itemStateChanged(), and OListBoxControl().

◆ m_aChangeListeners

::comphelper::OInterfaceContainerHelper3<css::form::XChangeListener> frm::OListBoxControl::m_aChangeListeners
private

◆ m_aCurrentSelection

css::uno::Any frm::OListBoxControl::m_aCurrentSelection
private

Definition at line 252 of file ListBox.hxx.

Referenced by focusGained(), focusLost(), and itemStateChanged().

◆ m_aItemListeners

::comphelper::OInterfaceContainerHelper3<css::awt::XItemListener> frm::OListBoxControl::m_aItemListeners
private

◆ m_pItemBroadcaster

::rtl::Reference< ::comphelper::AsyncEventNotifier > frm::OListBoxControl::m_pItemBroadcaster
private

Definition at line 259 of file ListBox.hxx.

Referenced by disposing(), and itemStateChanged().

◆ m_xAggregateListBox

css::uno::Reference< css::awt::XListBox > frm::OListBoxControl::m_xAggregateListBox
private

The documentation for this class was generated from the following files: