LibreOffice Module UnoControls (master) 1
|
#include <basecontrol.hxx>
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 @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 | |
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 Member Functions | |
OMRCListenerMultiplexerHelper * | impl_getMultiplexer () |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | m_xComponentContext |
rtl::Reference< OMRCListenerMultiplexerHelper > | m_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 | |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Definition at line 42 of file basecontrol.hxx.
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.
|
overridevirtual |
Definition at line 64 of file basecontrol.cxx.
|
overridevirtualnoexcept |
increment refcount @seealso XInterface @seealso release() @onerror A RuntimeException is thrown.
Reimplemented in unocontrols::FrameControl, unocontrols::ProgressBar, unocontrols::ProgressMonitor, and unocontrols::StatusIndicator.
Definition at line 99 of file basecontrol.cxx.
Referenced by unocontrols::FrameControl::acquire(), unocontrols::ProgressMonitor::acquire(), and unocontrols::StatusIndicator::acquire().
|
overridevirtual |
Definition at line 210 of file basecontrol.cxx.
References cppu::BaseMutex::m_aMutex.
|
overridevirtual |
Definition at line 455 of file basecontrol.cxx.
References unocontrols::OMRCListenerMultiplexerHelper::advise(), and impl_getMultiplexer().
|
overridevirtual |
Definition at line 462 of file basecontrol.cxx.
References unocontrols::OMRCListenerMultiplexerHelper::advise(), and impl_getMultiplexer().
|
overridevirtual |
Definition at line 469 of file basecontrol.cxx.
References unocontrols::OMRCListenerMultiplexerHelper::advise(), and impl_getMultiplexer().
|
overridevirtual |
Definition at line 476 of file basecontrol.cxx.
References unocontrols::OMRCListenerMultiplexerHelper::advise(), and impl_getMultiplexer().
|
overridevirtual |
Definition at line 483 of file basecontrol.cxx.
References unocontrols::OMRCListenerMultiplexerHelper::advise(), and impl_getMultiplexer().
Referenced by createPeer().
|
overridevirtual |
Definition at line 448 of file basecontrol.cxx.
References unocontrols::OMRCListenerMultiplexerHelper::advise(), and impl_getMultiplexer().
Referenced by createPeer().
|
overridevirtual |
Reimplemented in unocontrols::BaseContainerControl, unocontrols::FrameControl, unocontrols::ProgressMonitor, and unocontrols::StatusIndicator.
Definition at line 228 of file basecontrol.cxx.
References addPaintListener(), addWindowListener(), impl_getWindowDescriptor(), cppu::BaseMutex::m_aMutex, m_bEnable, m_bInDesignMode, m_bVisible, m_nHeight, m_nWidth, m_nX, m_nY, m_xComponentContext, m_xGraphicsPeer, m_xMultiplexer, m_xPeer, and m_xPeerWindow.
Referenced by unocontrols::BaseContainerControl::createPeer(), and unocontrols::FrameControl::createPeer().
|
overridevirtual |
Reimplemented in unocontrols::BaseContainerControl, unocontrols::FrameControl, unocontrols::ProgressMonitor, and unocontrols::StatusIndicator.
Definition at line 165 of file basecontrol.cxx.
References cppu::BaseMutex::m_aMutex, m_xContext, m_xGraphicsPeer, m_xGraphicsView, m_xMultiplexer, m_xPeer, m_xPeerWindow, removePaintListener(), and removeWindowListener().
Referenced by unocontrols::BaseContainerControl::dispose(), and unocontrols::FrameControl::dispose().
|
overridevirtual |
Reimplemented in unocontrols::BaseContainerControl.
Definition at line 592 of file basecontrol.cxx.
References cppu::BaseMutex::m_aMutex, m_xGraphicsPeer, m_xGraphicsView, removePaintListener(), and removeWindowListener().
|
overridevirtual |
Definition at line 532 of file basecontrol.cxx.
References impl_paint(), cppu::BaseMutex::m_aMutex, and m_xGraphicsView.
|
overridevirtual |
Definition at line 304 of file basecontrol.cxx.
References cppu::BaseMutex::m_aMutex, and m_xContext.
Referenced by unocontrols::BaseContainerControl::setStatusText(), and unocontrols::BaseContainerControl::setVisible().
|
overridevirtual |
Reimplemented in unocontrols::FrameControl.
Definition at line 574 of file basecontrol.cxx.
References cppu::BaseMutex::m_aMutex, and m_xGraphicsView.
|
overridevirtual |
get implementation id @descr This ID is necessary for UNO-caching.
If there no ID, cache is disabled. Another way, cache is enabled.
@seealso XTypeProvider
@onerror A RuntimeException is thrown.
Definition at line 137 of file basecontrol.cxx.
|
overridevirtual |
Reimplemented in unocontrols::FrameControl.
Definition at line 144 of file basecontrol.cxx.
|
overridepure virtual |
|
overridevirtual |
Definition at line 313 of file basecontrol.cxx.
References cppu::BaseMutex::m_aMutex, and m_xPeer.
Referenced by unocontrols::BaseContainerControl::addControl(), unocontrols::BaseContainerControl::createPeer(), unocontrols::FrameControl::createPeer(), unocontrols::ProgressMonitor::createPeer(), unocontrols::StatusIndicator::createPeer(), unocontrols::FrameControl::setFastPropertyValue_NoBroadcast(), unocontrols::ProgressMonitor::setPosSize(), and unocontrols::StatusIndicator::setPosSize().
|
overridevirtual |
Definition at line 439 of file basecontrol.cxx.
References cppu::BaseMutex::m_aMutex, m_nHeight, m_nWidth, m_nX, m_nY, and Rectangle.
Referenced by impl_getWindowDescriptor(), unocontrols::BaseContainerControl::impl_getWindowDescriptor(), unocontrols::FrameControl::impl_getWindowDescriptor(), unocontrols::StatusIndicator::impl_getWindowDescriptor(), unocontrols::ProgressMonitor::setPosSize(), and unocontrols::StatusIndicator::setPosSize().
|
overridevirtual |
Definition at line 583 of file basecontrol.cxx.
References cppu::BaseMutex::m_aMutex, m_nHeight, and m_nWidth.
|
overridevirtual |
Reimplemented in unocontrols::FrameControl.
Definition at line 158 of file basecontrol.cxx.
|
overridevirtual |
get information about supported interfaces @seealso XTypeProvider
@onerror A RuntimeException is thrown.
Reimplemented in unocontrols::BaseContainerControl, unocontrols::FrameControl, unocontrols::ProgressBar, unocontrols::ProgressMonitor, and unocontrols::StatusIndicator.
Definition at line 121 of file basecontrol.cxx.
Referenced by unocontrols::BaseContainerControl::getTypes(), and unocontrols::FrameControl::getTypes().
|
overridevirtual |
Definition at line 322 of file basecontrol.cxx.
References cppu::BaseMutex::m_aMutex.
|
inlineprotected |
Definition at line 270 of file basecontrol.hxx.
References m_xComponentContext.
Referenced by unocontrols::FrameControl::impl_createFrame().
|
inlineprotected |
Definition at line 274 of file basecontrol.hxx.
References m_xGraphicsPeer.
Referenced by unocontrols::ProgressMonitor::impl_recalcLayout(), unocontrols::ProgressMonitor::setPosSize(), and unocontrols::StatusIndicator::setPosSize().
|
inlineprotected |
Definition at line 278 of file basecontrol.hxx.
References m_nHeight.
Referenced by unocontrols::StatusIndicator::impl_paint(), unocontrols::ProgressMonitor::impl_paint(), unocontrols::ProgressMonitor::impl_recalcLayout(), and unocontrols::StatusIndicator::start().
|
private |
Definition at line 708 of file basecontrol.cxx.
References m_xMultiplexer, and m_xPeerWindow.
Referenced by addFocusListener(), addKeyListener(), addMouseListener(), addMouseMotionListener(), addPaintListener(), addWindowListener(), removeFocusListener(), removeKeyListener(), removeMouseListener(), removeMouseMotionListener(), removePaintListener(), and removeWindowListener().
|
inlineprotected |
Definition at line 272 of file basecontrol.hxx.
References m_xPeerWindow.
Referenced by unocontrols::FrameControl::createPeer(), and unocontrols::StatusIndicator::impl_paint().
|
inlineprotected |
Definition at line 276 of file basecontrol.hxx.
References m_nWidth.
Referenced by unocontrols::StatusIndicator::getPreferredSize(), unocontrols::StatusIndicator::impl_paint(), unocontrols::ProgressMonitor::impl_paint(), unocontrols::ProgressMonitor::impl_recalcLayout(), and unocontrols::StatusIndicator::start().
|
protectedvirtual |
Reimplemented in unocontrols::BaseContainerControl, unocontrols::FrameControl, and unocontrols::StatusIndicator.
Definition at line 669 of file basecontrol.cxx.
References getPosSize().
Referenced by createPeer().
|
protectedvirtual |
Reimplemented in unocontrols::StatusIndicator, unocontrols::BaseContainerControl, unocontrols::ProgressBar, and unocontrols::ProgressMonitor.
Definition at line 689 of file basecontrol.cxx.
Referenced by draw(), and windowPaint().
|
protectedvirtual |
Reimplemented in unocontrols::ProgressMonitor, and unocontrols::StatusIndicator.
Definition at line 700 of file basecontrol.cxx.
Referenced by windowMoved(), and windowResized().
|
overridevirtual |
Definition at line 331 of file basecontrol.cxx.
References cppu::BaseMutex::m_aMutex, and m_bInDesignMode.
|
overridevirtual |
Definition at line 340 of file basecontrol.cxx.
|
overridevirtual |
give answer, if interface is supported @descr The interfaces are searched by type.
@seealso XInterface
rType | is the type of searched interface. |
@onerror A RuntimeException is thrown.
Reimplemented in unocontrols::BaseContainerControl, unocontrols::FrameControl, unocontrols::ProgressBar, unocontrols::ProgressMonitor, and unocontrols::StatusIndicator.
Definition at line 70 of file basecontrol.cxx.
References Any.
Referenced by unocontrols::BaseContainerControl::queryInterface(), unocontrols::FrameControl::queryInterface(), unocontrols::ProgressMonitor::queryInterface(), and unocontrols::StatusIndicator::queryInterface().
|
overridevirtualnoexcept |
decrement refcount @seealso XInterface @seealso acquire() @onerror A RuntimeException is thrown.
Reimplemented in unocontrols::FrameControl, unocontrols::ProgressBar, unocontrols::ProgressMonitor, and unocontrols::StatusIndicator.
Definition at line 110 of file basecontrol.cxx.
Referenced by unocontrols::FrameControl::release(), unocontrols::ProgressMonitor::release(), and unocontrols::StatusIndicator::release().
|
overridevirtual |
Definition at line 219 of file basecontrol.cxx.
References cppu::BaseMutex::m_aMutex.
|
overridevirtual |
Definition at line 497 of file basecontrol.cxx.
References impl_getMultiplexer(), and unocontrols::OMRCListenerMultiplexerHelper::unadvise().
|
overridevirtual |
Definition at line 504 of file basecontrol.cxx.
References impl_getMultiplexer(), and unocontrols::OMRCListenerMultiplexerHelper::unadvise().
|
overridevirtual |
Definition at line 511 of file basecontrol.cxx.
References impl_getMultiplexer(), and unocontrols::OMRCListenerMultiplexerHelper::unadvise().
|
overridevirtual |
Definition at line 518 of file basecontrol.cxx.
References impl_getMultiplexer(), and unocontrols::OMRCListenerMultiplexerHelper::unadvise().
|
overridevirtual |
Definition at line 525 of file basecontrol.cxx.
References impl_getMultiplexer(), and unocontrols::OMRCListenerMultiplexerHelper::unadvise().
Referenced by dispose(), and disposing().
|
overridevirtual |
Definition at line 490 of file basecontrol.cxx.
References impl_getMultiplexer(), and unocontrols::OMRCListenerMultiplexerHelper::unadvise().
Referenced by dispose(), and disposing().
|
overridevirtual |
Definition at line 286 of file basecontrol.cxx.
|
overridevirtual |
Definition at line 295 of file basecontrol.cxx.
References cppu::BaseMutex::m_aMutex, and m_bInDesignMode.
|
overridevirtual |
Definition at line 409 of file basecontrol.cxx.
References cppu::BaseMutex::m_aMutex, m_bEnable, and m_xPeerWindow.
|
overridevirtual |
Definition at line 426 of file basecontrol.cxx.
References cppu::BaseMutex::m_aMutex, and m_xPeerWindow.
|
overridevirtual |
Reimplemented in unocontrols::FrameControl.
Definition at line 546 of file basecontrol.cxx.
References cppu::BaseMutex::m_aMutex, and m_xGraphicsView.
|
overridepure virtual |
|
overridevirtual |
Reimplemented in unocontrols::ProgressBar, unocontrols::ProgressMonitor, and unocontrols::StatusIndicator.
Definition at line 347 of file basecontrol.cxx.
References cppu::BaseMutex::m_aMutex, m_nHeight, m_nWidth, m_nX, m_nY, and m_xPeerWindow.
Referenced by unocontrols::ProgressMonitor::setPosSize(), and unocontrols::StatusIndicator::setPosSize().
|
overridevirtual |
Reimplemented in unocontrols::BaseContainerControl.
Definition at line 392 of file basecontrol.cxx.
References bVisible, cppu::BaseMutex::m_aMutex, m_bVisible, and m_xPeerWindow.
Referenced by unocontrols::BaseContainerControl::setVisible().
|
overridevirtual |
Definition at line 566 of file basecontrol.cxx.
|
overridevirtual |
Definition at line 151 of file basecontrol.cxx.
References sServiceName, and cppu::supportsService().
|
overridevirtual |
Definition at line 663 of file basecontrol.cxx.
|
overridevirtual |
Definition at line 642 of file basecontrol.cxx.
References aEvent, impl_recalcLayout(), cppu::BaseMutex::m_aMutex, m_nHeight, and m_nWidth.
|
overridevirtual |
Definition at line 614 of file basecontrol.cxx.
References impl_paint(), cppu::BaseMutex::m_aMutex, and m_xGraphicsPeer.
|
overridevirtual |
Definition at line 627 of file basecontrol.cxx.
References aEvent, impl_recalcLayout(), cppu::BaseMutex::m_aMutex, m_nHeight, and m_nWidth.
|
overridevirtual |
Definition at line 657 of file basecontrol.cxx.
|
private |
Definition at line 306 of file basecontrol.hxx.
Referenced by createPeer(), and setEnable().
|
private |
Definition at line 305 of file basecontrol.hxx.
Referenced by createPeer(), isDesignMode(), and setDesignMode().
|
private |
Definition at line 304 of file basecontrol.hxx.
Referenced by createPeer(), and setVisible().
|
private |
Definition at line 303 of file basecontrol.hxx.
Referenced by createPeer(), getPosSize(), getSize(), impl_getHeight(), setPosSize(), windowMoved(), and windowResized().
|
private |
Definition at line 302 of file basecontrol.hxx.
Referenced by createPeer(), getPosSize(), getSize(), impl_getWidth(), setPosSize(), windowMoved(), and windowResized().
|
private |
Definition at line 300 of file basecontrol.hxx.
Referenced by createPeer(), getPosSize(), and setPosSize().
|
private |
Definition at line 301 of file basecontrol.hxx.
Referenced by createPeer(), getPosSize(), and setPosSize().
|
private |
Definition at line 293 of file basecontrol.hxx.
Referenced by createPeer(), and impl_getComponentContext().
|
private |
Definition at line 295 of file basecontrol.hxx.
Referenced by dispose(), and getContext().
|
private |
Definition at line 299 of file basecontrol.hxx.
Referenced by createPeer(), dispose(), disposing(), impl_getGraphicsPeer(), and windowPaint().
|
private |
Definition at line 298 of file basecontrol.hxx.
Referenced by dispose(), disposing(), draw(), getGraphics(), and setGraphics().
|
private |
Definition at line 294 of file basecontrol.hxx.
Referenced by createPeer(), dispose(), and impl_getMultiplexer().
|
private |
Definition at line 296 of file basecontrol.hxx.
Referenced by createPeer(), dispose(), and getPeer().
|
private |
Definition at line 297 of file basecontrol.hxx.
Referenced by createPeer(), dispose(), impl_getMultiplexer(), impl_getPeerWindow(), setEnable(), setFocus(), setPosSize(), and setVisible().