LibreOffice Module UnoControls (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
unocontrols::BaseContainerControl Class Reference

#include <basecontainercontrol.hxx>

Inheritance diagram for unocontrols::BaseContainerControl:
[legend]
Collaboration diagram for unocontrols::BaseContainerControl:
[legend]

Public Member Functions

 BaseContainerControl (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
virtual ~BaseContainerControl () override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) override
 give answer, if interface is supported @descr The interfaces are searched by type. More...
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 get information about supported interfaces @seealso XTypeProvider More...
 
virtual void SAL_CALL createPeer (const css::uno::Reference< css::awt::XToolkit > &xToolkit, const css::uno::Reference< css::awt::XWindowPeer > &xParent) override
 
virtual sal_Bool SAL_CALL setModel (const css::uno::Reference< css::awt::XControlModel > &xModel) override
 
virtual css::uno::Reference< css::awt::XControlModel > SAL_CALL getModel () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &rEvent) override
 
virtual void SAL_CALL addControl (const OUString &sName, const css::uno::Reference< css::awt::XControl > &xControl) override
 
virtual void SAL_CALL removeControl (const css::uno::Reference< css::awt::XControl > &xControl) override
 
virtual void SAL_CALL setStatusText (const OUString &sStatusText) override
 
virtual css::uno::Reference< css::awt::XControl > SAL_CALL getControl (const OUString &sName) override
 
virtual css::uno::Sequence< css::uno::Reference< css::awt::XControl > > SAL_CALL getControls () override
 
virtual void SAL_CALL setVisible (sal_Bool bVisible) override
 
- Public Member Functions inherited from unocontrols::BaseControl
 BaseControl (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
virtual ~BaseControl () override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) override
 give answer, if interface is supported @descr The interfaces are searched by type. More...
 
virtual void SAL_CALL acquire () noexcept override
 increment refcount @seealso XInterface @seealso release() @onerror A RuntimeException is thrown. More...
 
virtual void SAL_CALL release () noexcept override
 decrement refcount @seealso XInterface @seealso acquire() @onerror A RuntimeException is thrown. More...
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 get information about supported interfaces @seealso XTypeProvider More...
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 get implementation id @descr This ID is necessary for UNO-caching. More...
 
virtual sal_Bool SAL_CALL supportsService (const OUString &sServiceName) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override
 
virtual void SAL_CALL createPeer (const css::uno::Reference< css::awt::XToolkit > &xToolkit, const css::uno::Reference< css::awt::XWindowPeer > &xParent) override
 
virtual void SAL_CALL setContext (const css::uno::Reference< css::uno::XInterface > &xContext) override
 
virtual sal_Bool SAL_CALL setModel (const css::uno::Reference< css::awt::XControlModel > &xModel) override=0
 
virtual void SAL_CALL setDesignMode (sal_Bool bOn) override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getContext () override
 
virtual css::uno::Reference< css::awt::XControlModel > SAL_CALL getModel () override=0
 
virtual css::uno::Reference< css::awt::XWindowPeer > SAL_CALL getPeer () override
 
virtual css::uno::Reference< css::awt::XView > SAL_CALL getView () override
 
virtual sal_Bool SAL_CALL isDesignMode () override
 
virtual sal_Bool SAL_CALL isTransparent () override
 
virtual void SAL_CALL setPosSize (sal_Int32 nX, sal_Int32 nY, sal_Int32 nWidth, sal_Int32 nHeight, sal_Int16 nFlags) override
 
virtual void SAL_CALL setVisible (sal_Bool bVisible) override
 
virtual void SAL_CALL setEnable (sal_Bool bEnable) override
 
virtual void SAL_CALL setFocus () override
 
virtual css::awt::Rectangle SAL_CALL getPosSize () override
 
virtual void SAL_CALL addWindowListener (const css::uno::Reference< css::awt::XWindowListener > &xListener) override
 
virtual void SAL_CALL addFocusListener (const css::uno::Reference< css::awt::XFocusListener > &xListener) override
 
virtual void SAL_CALL addKeyListener (const css::uno::Reference< css::awt::XKeyListener > &xListener) override
 
virtual void SAL_CALL addMouseListener (const css::uno::Reference< css::awt::XMouseListener > &xListener) override
 
virtual void SAL_CALL addMouseMotionListener (const css::uno::Reference< css::awt::XMouseMotionListener > &xListener) override
 
virtual void SAL_CALL addPaintListener (const css::uno::Reference< css::awt::XPaintListener > &xListener) override
 
virtual void SAL_CALL removeWindowListener (const css::uno::Reference< css::awt::XWindowListener > &xListener) override
 
virtual void SAL_CALL removeFocusListener (const css::uno::Reference< css::awt::XFocusListener > &xListener) override
 
virtual void SAL_CALL removeKeyListener (const css::uno::Reference< css::awt::XKeyListener > &xListener) override
 
virtual void SAL_CALL removeMouseListener (const css::uno::Reference< css::awt::XMouseListener > &xListener) override
 
virtual void SAL_CALL removeMouseMotionListener (const css::uno::Reference< css::awt::XMouseMotionListener > &xListener) override
 
virtual void SAL_CALL removePaintListener (const css::uno::Reference< css::awt::XPaintListener > &xListener) override
 
virtual void SAL_CALL draw (sal_Int32 nX, sal_Int32 nY) override
 
virtual sal_Bool SAL_CALL setGraphics (const css::uno::Reference< css::awt::XGraphics > &xDevice) override
 
virtual void SAL_CALL setZoom (float fZoomX, float fZoomY) override
 
virtual css::uno::Reference< css::awt::XGraphics > SAL_CALL getGraphics () override
 
virtual css::awt::Size SAL_CALL getSize () override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &rSource) override
 
virtual void SAL_CALL windowPaint (const css::awt::PaintEvent &rEvent) override
 
virtual void SAL_CALL windowResized (const css::awt::WindowEvent &aEvent) override
 
virtual void SAL_CALL windowMoved (const css::awt::WindowEvent &aEvent) override
 
virtual void SAL_CALL windowShown (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL windowHidden (const css::lang::EventObject &aEvent) override
 

Protected Member Functions

virtual css::awt::WindowDescriptor impl_getWindowDescriptor (const css::uno::Reference< css::awt::XWindowPeer > &xParentPeer) override
 
virtual void impl_paint (sal_Int32 nX, sal_Int32 nY, const css::uno::Reference< css::awt::XGraphics > &xGraphics) override
 
- Protected Member Functions inherited from unocontrols::BaseControl
const css::uno::Reference< css::uno::XComponentContext > & impl_getComponentContext () const
 
const css::uno::Reference< css::awt::XWindow > & impl_getPeerWindow () const
 
const css::uno::Reference< css::awt::XGraphics > & impl_getGraphicsPeer () const
 
sal_Int32 impl_getWidth () const
 
sal_Int32 impl_getHeight () const
 
virtual css::awt::WindowDescriptor impl_getWindowDescriptor (const css::uno::Reference< css::awt::XWindowPeer > &xParentPeer)
 
virtual void impl_paint (sal_Int32 nX, sal_Int32 nY, const css::uno::Reference< css::awt::XGraphics > &xGraphics)
 
virtual void impl_recalcLayout (const css::awt::WindowEvent &aEvent)
 

Private Attributes

::std::vector< IMPL_ControlInfomaControlInfoList
 
comphelper::OMultiTypeInterfaceContainerHelper2 m_aListeners
 

Additional Inherited Members

- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

Definition at line 36 of file basecontainercontrol.hxx.

Constructor & Destructor Documentation

◆ BaseContainerControl()

unocontrols::BaseContainerControl::BaseContainerControl ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)

Definition at line 42 of file basecontainercontrol.cxx.

References m_aListeners, and m_aMutex.

◆ ~BaseContainerControl()

unocontrols::BaseContainerControl::~BaseContainerControl ( )
overridevirtual

Definition at line 48 of file basecontainercontrol.cxx.

Member Function Documentation

◆ addControl()

void SAL_CALL unocontrols::BaseContainerControl::addControl ( const OUString &  sName,
const css::uno::Reference< css::awt::XControl > &  xControl 
)
overridevirtual

◆ createPeer()

void SAL_CALL unocontrols::BaseContainerControl::createPeer ( const css::uno::Reference< css::awt::XToolkit > &  xToolkit,
const css::uno::Reference< css::awt::XWindowPeer > &  xParent 
)
overridevirtual

◆ dispose()

void SAL_CALL unocontrols::BaseContainerControl::dispose ( void  )
overridevirtual

◆ disposing()

void SAL_CALL unocontrols::BaseContainerControl::disposing ( const css::lang::EventObject &  rEvent)
overridevirtual

Reimplemented from unocontrols::BaseControl.

Definition at line 159 of file basecontainercontrol.cxx.

References removeControl().

◆ getControl()

Reference< XControl > SAL_CALL unocontrols::BaseContainerControl::getControl ( const OUString &  sName)
overridevirtual

Definition at line 283 of file basecontainercontrol.cxx.

References maControlInfoList.

◆ getControls()

Sequence< Reference< XControl > > SAL_CALL unocontrols::BaseContainerControl::getControls ( )
overridevirtual

Definition at line 305 of file basecontainercontrol.cxx.

References maControlInfoList, and nCount.

Referenced by createPeer(), and dispose().

◆ getModel()

Reference< XControlModel > SAL_CALL unocontrols::BaseContainerControl::getModel ( )
overridevirtual

◆ getTypes()

Sequence< Type > SAL_CALL unocontrols::BaseContainerControl::getTypes ( )
overridevirtual

get information about supported interfaces @seealso XTypeProvider

Returns
Sequence of types of all supported interfaces

@onerror A RuntimeException is thrown.

Reimplemented from unocontrols::BaseControl.

Reimplemented in unocontrols::ProgressMonitor, and unocontrols::StatusIndicator.

Definition at line 79 of file basecontainercontrol.cxx.

References unocontrols::BaseControl::getTypes().

Referenced by unocontrols::ProgressMonitor::getTypes(), and unocontrols::StatusIndicator::getTypes().

◆ impl_getWindowDescriptor()

WindowDescriptor unocontrols::BaseContainerControl::impl_getWindowDescriptor ( const css::uno::Reference< css::awt::XWindowPeer > &  xParentPeer)
overrideprotectedvirtual

Reimplemented from unocontrols::BaseControl.

Reimplemented in unocontrols::StatusIndicator.

Definition at line 342 of file basecontainercontrol.cxx.

References unocontrols::BaseControl::getPosSize().

◆ impl_paint()

void unocontrols::BaseContainerControl::impl_paint ( sal_Int32  nX,
sal_Int32  nY,
const css::uno::Reference< css::awt::XGraphics > &  xGraphics 
)
overrideprotectedvirtual

Reimplemented from unocontrols::BaseControl.

Reimplemented in unocontrols::StatusIndicator, and unocontrols::ProgressMonitor.

Definition at line 358 of file basecontainercontrol.cxx.

◆ queryInterface()

Any SAL_CALL unocontrols::BaseContainerControl::queryInterface ( const css::uno::Type &  aType)
overridevirtual

give answer, if interface is supported @descr The interfaces are searched by type.

@seealso XInterface

Parameters
rTypeis the type of searched interface.
Returns
Any information about found interface

@onerror A RuntimeException is thrown.

Reimplemented from unocontrols::BaseControl.

Reimplemented in unocontrols::ProgressMonitor, and unocontrols::StatusIndicator.

Definition at line 54 of file basecontainercontrol.cxx.

References Any, and unocontrols::BaseControl::queryInterface().

◆ removeControl()

void SAL_CALL unocontrols::BaseContainerControl::removeControl ( const css::uno::Reference< css::awt::XControl > &  xControl)
overridevirtual

◆ setModel()

sal_Bool SAL_CALL unocontrols::BaseContainerControl::setModel ( const css::uno::Reference< css::awt::XControlModel > &  xModel)
overridevirtual

◆ setStatusText()

void SAL_CALL unocontrols::BaseContainerControl::setStatusText ( const OUString &  sStatusText)
overridevirtual

Definition at line 270 of file basecontainercontrol.cxx.

References unocontrols::BaseControl::getContext().

◆ setVisible()

void SAL_CALL unocontrols::BaseContainerControl::setVisible ( sal_Bool  bVisible)
overridevirtual

Member Data Documentation

◆ m_aListeners

comphelper::OMultiTypeInterfaceContainerHelper2 unocontrols::BaseContainerControl::m_aListeners
private

Definition at line 141 of file basecontainercontrol.hxx.

Referenced by addControl(), dispose(), and removeControl().

◆ maControlInfoList

::std::vector< IMPL_ControlInfo > unocontrols::BaseContainerControl::maControlInfoList
private

Definition at line 139 of file basecontainercontrol.hxx.

Referenced by addControl(), dispose(), getControl(), getControls(), and removeControl().


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