LibreOffice Module toolkit (master) 1
|
#include <unocontrolcontainer.hxx>
Public Member Functions | |
UnoControlContainer () | |
UnoControlContainer (const css::uno::Reference< css::awt::XVclWindowPeer > &xPeer) | |
virtual | ~UnoControlContainer () override |
void SAL_CALL | dispose () override |
void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
void SAL_CALL | addContainerListener (const css::uno::Reference< css::container::XContainerListener > &xListener) override |
void SAL_CALL | removeContainerListener (const css::uno::Reference< css::container::XContainerListener > &xListener) override |
virtual ::sal_Int32 SAL_CALL | insert (const css::uno::Any &aElement) override |
virtual void SAL_CALL | removeByIdentifier (::sal_Int32 Identifier) override |
virtual void SAL_CALL | replaceByIdentifer (::sal_Int32 Identifier, const css::uno::Any &aElement) override |
virtual css::uno::Any SAL_CALL | getByIdentifier (::sal_Int32 Identifierr) override |
virtual css::uno::Sequence< ::sal_Int32 > SAL_CALL | getIdentifiers () override |
virtual css::uno::Type SAL_CALL | getElementType () override |
virtual sal_Bool SAL_CALL | hasElements () override |
void SAL_CALL | setStatusText (const OUString &StatusText) override |
css::uno::Sequence< css::uno::Reference< css::awt::XControl > > SAL_CALL | getControls () override |
css::uno::Reference< css::awt::XControl > SAL_CALL | getControl (const OUString &aName) override |
void SAL_CALL | addControl (const OUString &Name, const css::uno::Reference< css::awt::XControl > &Control) override |
void SAL_CALL | removeControl (const css::uno::Reference< css::awt::XControl > &Control) override |
void SAL_CALL | setTabControllers (const css::uno::Sequence< css::uno::Reference< css::awt::XTabController > > &TabControllers) override |
css::uno::Sequence< css::uno::Reference< css::awt::XTabController > > SAL_CALL | getTabControllers () override |
void SAL_CALL | addTabController (const css::uno::Reference< css::awt::XTabController > &TabController) override |
void SAL_CALL | removeTabController (const css::uno::Reference< css::awt::XTabController > &TabController) override |
void SAL_CALL | createPeer (const css::uno::Reference< css::awt::XToolkit > &Toolkit, const css::uno::Reference< css::awt::XWindowPeer > &Parent) override |
void SAL_CALL | setVisible (sal_Bool Visible) override |
OUString SAL_CALL | getImplementationName () override |
css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Public Member Functions inherited from cppu::AggImplInheritanceHelper4< class BaseClass, class Ifc1, class Ifc2, class Ifc3, class Ifc4 > | |
AggImplInheritanceHelper4 () | |
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 Member Functions | |
void | ImplActivateTabControllers () |
virtual void | PrepareWindowDescriptor (css::awt::WindowDescriptor &rDesc) override |
virtual void | removingControl (const css::uno::Reference< css::awt::XControl > &_rxControl) |
virtual void | addingControl (const css::uno::Reference< css::awt::XControl > &_rxControl) |
virtual void | impl_createControlPeerIfNecessary (const css::uno::Reference< css::awt::XControl > &_rxControl) |
ensures that the given control has a peer, if necessary and possible More... | |
Protected Member Functions inherited from cppu::AggImplInheritanceHelper4< class BaseClass, class Ifc1, class Ifc2, class Ifc3, class Ifc4 > | |
AggImplInheritanceHelper4 (T1 const &arg1) | |
AggImplInheritanceHelper4 (T1 const &arg1, T2 const &arg2) | |
AggImplInheritanceHelper4 (T1 const &arg1, T2 const &arg2, T3 const &arg3) | |
AggImplInheritanceHelper4 (T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4) | |
AggImplInheritanceHelper4 (T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5) | |
AggImplInheritanceHelper4 (T1 const &arg1, T2 const &arg2, T3 const &arg3, T4 const &arg4, T5 const &arg5, T6 const &arg6) | |
Private Member Functions | |
sal_Int32 | impl_addControl (const css::uno::Reference< css::awt::XControl > &_rxControl, const OUString *_pName=nullptr) |
adds the control to the container, does necessary notifications, and the like More... | |
void | impl_removeControl (sal_Int32 _nId, const css::uno::Reference< css::awt::XControl > &_rxControl) |
removes the given control from the container, including necessary notifications and the like More... | |
Private Attributes | |
std::unique_ptr< UnoControlHolderList > | mpControls |
css::uno::Sequence< css::uno::Reference< css::awt::XTabController > > | maTabControllers |
ContainerListenerMultiplexer | maCListeners |
Definition at line 44 of file unocontrolcontainer.hxx.
UnoControlContainer::UnoControlContainer | ( | ) |
Definition at line 366 of file unocontrolcontainer.cxx.
References mpControls.
UnoControlContainer::UnoControlContainer | ( | const css::uno::Reference< css::awt::XVclWindowPeer > & | xPeer | ) |
|
overridevirtual |
Definition at line 380 of file unocontrolcontainer.cxx.
|
override |
Definition at line 436 of file unocontrolcontainer.cxx.
References maCListeners.
|
override |
Definition at line 625 of file unocontrolcontainer.cxx.
References impl_addControl().
|
protectedvirtual |
Definition at line 574 of file unocontrolcontainer.cxx.
Referenced by ControlContainerBase::addingControl(), impl_addControl(), and replaceByIdentifer().
|
override |
Definition at line 691 of file unocontrolcontainer.cxx.
References maTabControllers, and nCount.
|
override |
Definition at line 715 of file unocontrolcontainer.cxx.
References aPropName, UnoControl::createPeer(), getControls(), ImplActivateTabControllers(), implUpdateVisibility(), UnoControl::setVisible(), and xModel.
Referenced by ControlContainerBase::createPeer(), UnoDialogControl::createPeer(), UnoMultiPageControl::createPeer(), UnoControlTabPage::createPeer(), and setVisible().
|
override |
Definition at line 394 of file unocontrolcontainer.cxx.
References UnoControl::dispose(), getControls(), maCListeners, mpControls, and removingControl().
Referenced by ControlContainerBase::dispose().
|
override |
Definition at line 424 of file unocontrolcontainer.cxx.
References UnoControl::disposing(), and removeControl().
Referenced by ControlContainerBase::disposing().
|
overridevirtual |
Definition at line 518 of file unocontrolcontainer.cxx.
References mpControls.
|
override |
Definition at line 568 of file unocontrolcontainer.cxx.
References mpControls.
|
override |
Definition at line 560 of file unocontrolcontainer.cxx.
References mpControls.
Referenced by createPeer(), and dispose().
|
overridevirtual |
Definition at line 538 of file unocontrolcontainer.cxx.
References cppu::UnoType< typename T >::get().
|
overridevirtual |
Definition at line 528 of file unocontrolcontainer.cxx.
References mpControls.
|
override |
Definition at line 779 of file unocontrolcontainer.cxx.
|
override |
Definition at line 784 of file unocontrolcontainer.cxx.
References UnoControl::getSupportedServiceNames().
|
override |
Definition at line 684 of file unocontrolcontainer.cxx.
References maTabControllers.
|
overridevirtual |
Definition at line 543 of file unocontrolcontainer.cxx.
References mpControls.
|
private |
adds the control to the container, does necessary notifications, and the like
_rxControl | the control to add. Must not be <NULL> |
_pName | Pointer to a name for the control. Might be <NULL>, in this case an automatic name is generated |
Definition at line 601 of file unocontrolcontainer.cxx.
References addingControl(), aEvent, impl_createControlPeerIfNecessary(), maCListeners, and mpControls.
Referenced by addControl(), and insert().
|
protectedvirtual |
ensures that the given control has a peer, if necessary and possible
_rxControl | an ->XControl which has just been inserted into the container. Must not be <NULL>. @precond our mutex is locked |
Definition at line 586 of file unocontrolcontainer.cxx.
References ImplActivateTabControllers().
Referenced by impl_addControl(), and replaceByIdentifer().
|
private |
removes the given control from the container, including necessary notifications and the like
_nId | the ID of the control to remove |
_rxControl | the control itself. Must be the one which is stored under the given ID. This parameter could also be obtained inside the method, but callers usually have obtained it, anyway. |
Definition at line 640 of file unocontrolcontainer.cxx.
References aEvent, DBG_ASSERT, maCListeners, mpControls, and removingControl().
Referenced by removeByIdentifier(), and removeControl().
|
protected |
Definition at line 384 of file unocontrolcontainer.cxx.
References maTabControllers.
Referenced by createPeer(), and impl_createControlPeerIfNecessary().
|
override |
Definition at line 451 of file unocontrolcontainer.cxx.
References impl_addControl().
|
overrideprotectedvirtual |
Definition at line 794 of file unocontrolcontainer.cxx.
Referenced by UnoDialogControl::PrepareWindowDescriptor().
|
overridevirtual |
Definition at line 466 of file unocontrolcontainer.cxx.
References impl_removeControl(), and mpControls.
|
override |
Definition at line 443 of file unocontrolcontainer.cxx.
References maCListeners.
|
override |
Definition at line 663 of file unocontrolcontainer.cxx.
References impl_removeControl(), and mpControls.
Referenced by disposing().
|
override |
Definition at line 700 of file unocontrolcontainer.cxx.
References maTabControllers, and n.
|
protectedvirtual |
Definition at line 631 of file unocontrolcontainer.cxx.
Referenced by dispose(), impl_removeControl(), ControlContainerBase::removingControl(), and replaceByIdentifer().
|
overridevirtual |
Definition at line 480 of file unocontrolcontainer.cxx.
References addingControl(), aEvent, impl_createControlPeerIfNecessary(), maCListeners, mpControls, and removingControl().
|
override |
Definition at line 550 of file unocontrolcontainer.cxx.
References mxContext.
|
override |
Definition at line 677 of file unocontrolcontainer.cxx.
References maTabControllers.
|
override |
Definition at line 769 of file unocontrolcontainer.cxx.
References bVisible, createPeer(), mxContext, and UnoControl::setVisible().
|
private |
Definition at line 49 of file unocontrolcontainer.hxx.
Referenced by addContainerListener(), dispose(), impl_addControl(), impl_removeControl(), removeContainerListener(), and replaceByIdentifer().
|
private |
Definition at line 48 of file unocontrolcontainer.hxx.
Referenced by addTabController(), getTabControllers(), ImplActivateTabControllers(), removeTabController(), and setTabControllers().
|
private |
Definition at line 47 of file unocontrolcontainer.hxx.
Referenced by dispose(), getByIdentifier(), getControl(), getControls(), getIdentifiers(), hasElements(), impl_addControl(), impl_removeControl(), removeByIdentifier(), removeControl(), replaceByIdentifer(), and UnoControlContainer().