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

#include <basecontrol.hxx>

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

Public Member Functions

 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 The interfaces are searched by type. More...
 
virtual void SAL_CALL acquire () override throw ()
 increment refcount XInterface release() A RuntimeException is thrown. More...
 
virtual void SAL_CALL release () override throw ()
 decrement refcount XInterface acquire() A RuntimeException is thrown. More...
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 get information about supported interfaces XTypeProvider More...
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 get implementation id This ID is necessary for UNO-caching. More...
 
virtual void SAL_CALL setDelegator (const css::uno::Reference< css::uno::XInterface > &xDelegator) override
 
virtual css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &aType) override
 
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
 
- 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
 
- Public Member Functions inherited from cppu::OWeakAggObject
 OWeakAggObject ()
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 

Protected Member Functions

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)
 
const css::uno::Reference< css::uno::XInterface > & impl_getDelegator () const
 
- Protected Member Functions inherited from cppu::OComponentHelper
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 ()
 

Private Member Functions

OMRCListenerMultiplexerHelperimpl_getMultiplexer ()
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > m_xComponentContext
 
css::uno::Reference< css::uno::XInterface > m_xDelegator
 
rtl::Reference< OMRCListenerMultiplexerHelperm_xMultiplexer
 
css::uno::Reference< css::uno::XInterface > m_xContext
 
css::uno::Reference< css::awt::XWindowPeer > m_xPeer
 
css::uno::Reference< css::awt::XWindow > m_xPeerWindow
 
css::uno::Reference< css::awt::XGraphics > m_xGraphicsView
 
css::uno::Reference< css::awt::XGraphics > m_xGraphicsPeer
 
sal_Int32 m_nX
 
sal_Int32 m_nY
 
sal_Int32 m_nWidth
 
sal_Int32 m_nHeight
 
bool m_bVisible
 
bool m_bInDesignMode
 
bool m_bEnable
 

Additional Inherited Members

- Public Attributes inherited from unocontrols::IMPL_MutexContainer
::osl::Mutex m_aMutex
 
- Protected Attributes inherited from cppu::OWeakAggObject
css::uno::WeakReferenceHelper xDelegator
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 

Detailed Description

Definition at line 49 of file basecontrol.hxx.

Constructor & Destructor Documentation

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

Definition at line 51 of file basecontrol.cxx.

References m_aMutex, and m_xComponentContext.

unocontrols::BaseControl::~BaseControl ( )
overridevirtual

Definition at line 65 of file basecontrol.cxx.

Member Function Documentation

void SAL_CALL unocontrols::BaseControl::acquire ( )
throw (
)
overridevirtual
void SAL_CALL unocontrols::BaseControl::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  xListener)
overridevirtual

Reimplemented from cppu::OComponentHelper.

Definition at line 240 of file basecontrol.cxx.

References unocontrols::IMPL_MutexContainer::m_aMutex.

void SAL_CALL unocontrols::BaseControl::addFocusListener ( const css::uno::Reference< css::awt::XFocusListener > &  xListener)
overridevirtual
void SAL_CALL unocontrols::BaseControl::addKeyListener ( const css::uno::Reference< css::awt::XKeyListener > &  xListener)
overridevirtual
void SAL_CALL unocontrols::BaseControl::addMouseListener ( const css::uno::Reference< css::awt::XMouseListener > &  xListener)
overridevirtual
void SAL_CALL unocontrols::BaseControl::addMouseMotionListener ( const css::uno::Reference< css::awt::XMouseMotionListener > &  xListener)
overridevirtual
void SAL_CALL unocontrols::BaseControl::addPaintListener ( const css::uno::Reference< css::awt::XPaintListener > &  xListener)
overridevirtual
void SAL_CALL unocontrols::BaseControl::addWindowListener ( const css::uno::Reference< css::awt::XWindowListener > &  xListener)
overridevirtual
void SAL_CALL unocontrols::BaseControl::createPeer ( const css::uno::Reference< css::awt::XToolkit > &  xToolkit,
const css::uno::Reference< css::awt::XWindowPeer > &  xParent 
)
overridevirtual
void SAL_CALL unocontrols::BaseControl::dispose ( void  )
overridevirtual
void SAL_CALL unocontrols::BaseControl::disposing ( const css::lang::EventObject &  rSource)
overridevirtual
void SAL_CALL unocontrols::BaseControl::draw ( sal_Int32  nX,
sal_Int32  nY 
)
overridevirtual
Reference< XInterface > SAL_CALL unocontrols::BaseControl::getContext ( )
overridevirtual
Reference< XGraphics > SAL_CALL unocontrols::BaseControl::getGraphics ( )
overridevirtual

Reimplemented in unocontrols::FrameControl.

Definition at line 604 of file basecontrol.cxx.

References unocontrols::IMPL_MutexContainer::m_aMutex, and m_xGraphicsView.

Sequence< sal_Int8 > SAL_CALL unocontrols::BaseControl::getImplementationId ( )
overridevirtual

get implementation id This ID is necessary for UNO-caching.

If there no ID, cache is disabled. Another way, cache is enabled.

XTypeProvider

Returns
ID as Sequence of byte

A RuntimeException is thrown.

Implements cppu::OComponentHelper.

Definition at line 129 of file basecontrol.cxx.

OUString SAL_CALL unocontrols::BaseControl::getImplementationName ( )
overridevirtual

Reimplemented in unocontrols::FrameControl.

Definition at line 174 of file basecontrol.cxx.

virtual css::uno::Reference< css::awt::XControlModel > SAL_CALL unocontrols::BaseControl::getModel ( )
overridepure virtual
Reference< XWindowPeer > SAL_CALL unocontrols::BaseControl::getPeer ( )
overridevirtual
Rectangle SAL_CALL unocontrols::BaseControl::getPosSize ( )
overridevirtual
Size SAL_CALL unocontrols::BaseControl::getSize ( )
overridevirtual

Definition at line 613 of file basecontrol.cxx.

References unocontrols::IMPL_MutexContainer::m_aMutex, m_nHeight, and m_nWidth.

Sequence< OUString > SAL_CALL unocontrols::BaseControl::getSupportedServiceNames ( )
overridevirtual

Reimplemented in unocontrols::FrameControl.

Definition at line 188 of file basecontrol.cxx.

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

get information about supported interfaces XTypeProvider

Returns
Sequence of types of all supported interfaces

A RuntimeException is thrown.

Reimplemented from cppu::OComponentHelper.

Reimplemented in unocontrols::ProgressMonitor, unocontrols::StatusIndicator, unocontrols::ProgressBar, unocontrols::BaseContainerControl, and unocontrols::FrameControl.

Definition at line 113 of file basecontrol.cxx.

Referenced by unocontrols::FrameControl::getTypes(), unocontrols::BaseContainerControl::getTypes(), and unocontrols::ProgressBar::getTypes().

Reference< XView > SAL_CALL unocontrols::BaseControl::getView ( )
overridevirtual

Definition at line 352 of file basecontrol.cxx.

References unocontrols::IMPL_MutexContainer::m_aMutex.

const css::uno::Reference< css::uno::XComponentContext >& unocontrols::BaseControl::impl_getComponentContext ( ) const
inlineprotected

Definition at line 287 of file basecontrol.hxx.

References m_xComponentContext.

Referenced by unocontrols::FrameControl::impl_createFrame().

const css::uno::Reference< css::uno::XInterface >& unocontrols::BaseControl::impl_getDelegator ( ) const
inlineprotected
const css::uno::Reference< css::awt::XGraphics >& unocontrols::BaseControl::impl_getGraphicsPeer ( ) const
inlineprotected
sal_Int32 unocontrols::BaseControl::impl_getHeight ( ) const
inlineprotected
OMRCListenerMultiplexerHelper * unocontrols::BaseControl::impl_getMultiplexer ( )
private
const css::uno::Reference< css::awt::XWindow >& unocontrols::BaseControl::impl_getPeerWindow ( ) const
inlineprotected
sal_Int32 unocontrols::BaseControl::impl_getWidth ( ) const
inlineprotected
WindowDescriptor unocontrols::BaseControl::impl_getWindowDescriptor ( const css::uno::Reference< css::awt::XWindowPeer > &  xParentPeer)
protectedvirtual

Reimplemented in unocontrols::FrameControl, unocontrols::StatusIndicator, and unocontrols::BaseContainerControl.

Definition at line 699 of file basecontrol.cxx.

References getPosSize().

Referenced by createPeer().

void unocontrols::BaseControl::impl_paint ( sal_Int32  nX,
sal_Int32  nY,
const css::uno::Reference< css::awt::XGraphics > &  xGraphics 
)
protectedvirtual
void unocontrols::BaseControl::impl_recalcLayout ( const css::awt::WindowEvent &  aEvent)
protectedvirtual

Reimplemented in unocontrols::StatusIndicator.

Definition at line 730 of file basecontrol.cxx.

Referenced by windowMoved(), and windowResized().

sal_Bool SAL_CALL unocontrols::BaseControl::isDesignMode ( )
overridevirtual

Definition at line 361 of file basecontrol.cxx.

References unocontrols::IMPL_MutexContainer::m_aMutex, and m_bInDesignMode.

sal_Bool SAL_CALL unocontrols::BaseControl::isTransparent ( )
overridevirtual

Definition at line 370 of file basecontrol.cxx.

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

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

XInterface

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

A RuntimeException is thrown.

Reimplemented from cppu::OWeakAggObject.

Reimplemented in unocontrols::ProgressMonitor, unocontrols::StatusIndicator, unocontrols::BaseContainerControl, unocontrols::ProgressBar, and unocontrols::FrameControl.

Definition at line 71 of file basecontrol.cxx.

References Any, m_xDelegator, and queryAggregation().

void SAL_CALL unocontrols::BaseControl::release ( )
throw (
)
overridevirtual
void SAL_CALL unocontrols::BaseControl::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  xListener)
overridevirtual

Reimplemented from cppu::OComponentHelper.

Definition at line 249 of file basecontrol.cxx.

References unocontrols::IMPL_MutexContainer::m_aMutex.

void SAL_CALL unocontrols::BaseControl::removeFocusListener ( const css::uno::Reference< css::awt::XFocusListener > &  xListener)
overridevirtual
void SAL_CALL unocontrols::BaseControl::removeKeyListener ( const css::uno::Reference< css::awt::XKeyListener > &  xListener)
overridevirtual
void SAL_CALL unocontrols::BaseControl::removeMouseListener ( const css::uno::Reference< css::awt::XMouseListener > &  xListener)
overridevirtual
void SAL_CALL unocontrols::BaseControl::removeMouseMotionListener ( const css::uno::Reference< css::awt::XMouseMotionListener > &  xListener)
overridevirtual
void SAL_CALL unocontrols::BaseControl::removePaintListener ( const css::uno::Reference< css::awt::XPaintListener > &  xListener)
overridevirtual
void SAL_CALL unocontrols::BaseControl::removeWindowListener ( const css::uno::Reference< css::awt::XWindowListener > &  xListener)
overridevirtual
void SAL_CALL unocontrols::BaseControl::setContext ( const css::uno::Reference< css::uno::XInterface > &  xContext)
overridevirtual

Definition at line 316 of file basecontrol.cxx.

References unocontrols::IMPL_MutexContainer::m_aMutex, and m_xContext.

void SAL_CALL unocontrols::BaseControl::setDelegator ( const css::uno::Reference< css::uno::XInterface > &  xDelegator)
overridevirtual

Reimplemented from cppu::OWeakAggObject.

Definition at line 136 of file basecontrol.cxx.

References unocontrols::IMPL_MutexContainer::m_aMutex, and m_xDelegator.

void SAL_CALL unocontrols::BaseControl::setDesignMode ( sal_Bool  bOn)
overridevirtual

Definition at line 325 of file basecontrol.cxx.

References unocontrols::IMPL_MutexContainer::m_aMutex, and m_bInDesignMode.

void SAL_CALL unocontrols::BaseControl::setEnable ( sal_Bool  bEnable)
overridevirtual
void SAL_CALL unocontrols::BaseControl::setFocus ( )
overridevirtual

Definition at line 456 of file basecontrol.cxx.

References unocontrols::IMPL_MutexContainer::m_aMutex, and m_xPeerWindow.

sal_Bool SAL_CALL unocontrols::BaseControl::setGraphics ( const css::uno::Reference< css::awt::XGraphics > &  xDevice)
overridevirtual

Reimplemented in unocontrols::FrameControl.

Definition at line 576 of file basecontrol.cxx.

References unocontrols::IMPL_MutexContainer::m_aMutex, and m_xGraphicsView.

virtual sal_Bool SAL_CALL unocontrols::BaseControl::setModel ( const css::uno::Reference< css::awt::XControlModel > &  xModel)
overridepure virtual
void SAL_CALL unocontrols::BaseControl::setPosSize ( sal_Int32  nX,
sal_Int32  nY,
sal_Int32  nWidth,
sal_Int32  nHeight,
sal_Int16  nFlags 
)
overridevirtual
void SAL_CALL unocontrols::BaseControl::setVisible ( sal_Bool  bVisible)
overridevirtual
void SAL_CALL unocontrols::BaseControl::setZoom ( float  fZoomX,
float  fZoomY 
)
overridevirtual

Definition at line 596 of file basecontrol.cxx.

sal_Bool SAL_CALL unocontrols::BaseControl::supportsService ( const OUString &  sServiceName)
overridevirtual

Definition at line 181 of file basecontrol.cxx.

References cppu::supportsService().

void SAL_CALL unocontrols::BaseControl::windowHidden ( const css::lang::EventObject &  aEvent)
overridevirtual

Definition at line 693 of file basecontrol.cxx.

void SAL_CALL unocontrols::BaseControl::windowMoved ( const css::awt::WindowEvent &  aEvent)
overridevirtual
void SAL_CALL unocontrols::BaseControl::windowPaint ( const css::awt::PaintEvent &  rEvent)
overridevirtual
void SAL_CALL unocontrols::BaseControl::windowResized ( const css::awt::WindowEvent &  aEvent)
overridevirtual
void SAL_CALL unocontrols::BaseControl::windowShown ( const css::lang::EventObject &  aEvent)
overridevirtual

Definition at line 687 of file basecontrol.cxx.

Member Data Documentation

bool unocontrols::BaseControl::m_bEnable
private

Definition at line 326 of file basecontrol.hxx.

Referenced by createPeer(), and setEnable().

bool unocontrols::BaseControl::m_bInDesignMode
private

Definition at line 325 of file basecontrol.hxx.

Referenced by createPeer(), isDesignMode(), and setDesignMode().

bool unocontrols::BaseControl::m_bVisible
private

Definition at line 324 of file basecontrol.hxx.

Referenced by createPeer(), and setVisible().

sal_Int32 unocontrols::BaseControl::m_nHeight
private
sal_Int32 unocontrols::BaseControl::m_nWidth
private
sal_Int32 unocontrols::BaseControl::m_nX
private

Definition at line 320 of file basecontrol.hxx.

Referenced by createPeer(), getPosSize(), and setPosSize().

sal_Int32 unocontrols::BaseControl::m_nY
private

Definition at line 321 of file basecontrol.hxx.

Referenced by createPeer(), getPosSize(), and setPosSize().

css::uno::Reference< css::uno::XComponentContext > unocontrols::BaseControl::m_xComponentContext
private

Definition at line 312 of file basecontrol.hxx.

Referenced by createPeer(), and impl_getComponentContext().

css::uno::Reference< css::uno::XInterface > unocontrols::BaseControl::m_xContext
private

Definition at line 315 of file basecontrol.hxx.

Referenced by dispose(), getContext(), and setContext().

css::uno::Reference< css::uno::XInterface > unocontrols::BaseControl::m_xDelegator
private

Definition at line 313 of file basecontrol.hxx.

Referenced by impl_getDelegator(), queryInterface(), and setDelegator().

css::uno::Reference< css::awt::XGraphics > unocontrols::BaseControl::m_xGraphicsPeer
private

Definition at line 319 of file basecontrol.hxx.

Referenced by createPeer(), dispose(), disposing(), impl_getGraphicsPeer(), and windowPaint().

css::uno::Reference< css::awt::XGraphics > unocontrols::BaseControl::m_xGraphicsView
private

Definition at line 318 of file basecontrol.hxx.

Referenced by dispose(), disposing(), draw(), getGraphics(), and setGraphics().

rtl::Reference<OMRCListenerMultiplexerHelper> unocontrols::BaseControl::m_xMultiplexer
private

Definition at line 314 of file basecontrol.hxx.

Referenced by createPeer(), dispose(), and impl_getMultiplexer().

css::uno::Reference< css::awt::XWindowPeer > unocontrols::BaseControl::m_xPeer
private

Definition at line 316 of file basecontrol.hxx.

Referenced by createPeer(), dispose(), and getPeer().

css::uno::Reference< css::awt::XWindow > unocontrols::BaseControl::m_xPeerWindow
private

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