LibreOffice Module UnoControls (master) 1
|
#include <statusindicator.hxx>
Public Member Functions | |
StatusIndicator (const css::uno::Reference< css::uno::XComponentContext > &rxContext) | |
virtual | ~StatusIndicator () 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 void SAL_CALL | start (const OUString &sText, sal_Int32 nRange) override |
virtual void SAL_CALL | end () override |
virtual void SAL_CALL | reset () override |
virtual void SAL_CALL | setText (const OUString &sText) override |
virtual void SAL_CALL | setValue (sal_Int32 nValue) override |
virtual css::awt::Size SAL_CALL | getMinimumSize () override |
virtual css::awt::Size SAL_CALL | getPreferredSize () override |
virtual css::awt::Size SAL_CALL | calcAdjustedSize (const css::awt::Size &aNewSize) override |
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 | setPosSize (sal_Int32 nX, sal_Int32 nY, sal_Int32 nWidth, sal_Int32 nHeight, sal_Int16 nFlags) override |
Public Member Functions inherited from unocontrols::BaseContainerControl | |
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 |
Private 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 > &rGraphics) override |
virtual void | impl_recalcLayout (const css::awt::WindowEvent &aEvent) override |
Private Attributes | |
css::uno::Reference< css::awt::XFixedText > | m_xText |
rtl::Reference< ProgressBar > | m_xProgressBar |
Additional Inherited Members | |
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) |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Definition at line 45 of file statusindicator.hxx.
unocontrols::StatusIndicator::StatusIndicator | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext | ) |
|
overridevirtual |
Definition at line 73 of file statusindicator.cxx.
|
overridevirtualnoexcept |
increment refcount @seealso XInterface @seealso release() @onerror A RuntimeException is thrown.
Reimplemented from unocontrols::BaseControl.
Definition at line 99 of file statusindicator.cxx.
References unocontrols::BaseControl::acquire().
|
overridevirtual |
Definition at line 233 of file statusindicator.cxx.
References getPreferredSize().
|
overridevirtual |
Reimplemented from unocontrols::BaseContainerControl.
Definition at line 240 of file statusindicator.cxx.
References unocontrols::BaseContainerControl::createPeer(), getMinimumSize(), unocontrols::BaseControl::getPeer(), Size::Height(), setPosSize(), and Size::Width().
|
overridevirtual |
Reimplemented from unocontrols::BaseContainerControl.
Definition at line 276 of file statusindicator.cxx.
References unocontrols::BaseContainerControl::dispose(), cppu::BaseMutex::m_aMutex, m_xProgressBar, m_xText, and unocontrols::BaseContainerControl::removeControl().
|
overridevirtual |
Definition at line 147 of file statusindicator.cxx.
References cppu::BaseMutex::m_aMutex, m_xProgressBar, m_xText, and unocontrols::BaseContainerControl::setVisible().
|
overridevirtual |
Definition at line 195 of file statusindicator.cxx.
References unocontrols::STATUSINDICATOR_DEFAULT_HEIGHT, and unocontrols::STATUSINDICATOR_DEFAULT_WIDTH.
Referenced by createPeer().
|
overridevirtual |
Reimplemented from unocontrols::BaseContainerControl.
Definition at line 267 of file statusindicator.cxx.
|
overridevirtual |
Definition at line 202 of file statusindicator.cxx.
References Size::Height(), if(), unocontrols::BaseControl::impl_getWidth(), cppu::BaseMutex::m_aMutex, m_xText, unocontrols::STATUSINDICATOR_DEFAULT_HEIGHT, unocontrols::STATUSINDICATOR_DEFAULT_WIDTH, and unocontrols::STATUSINDICATOR_FREEBORDER.
Referenced by calcAdjustedSize().
|
overridevirtual |
get information about supported interfaces @seealso XTypeProvider
@onerror A RuntimeException is thrown.
Reimplemented from unocontrols::BaseContainerControl.
Definition at line 121 of file statusindicator.cxx.
References unocontrols::BaseContainerControl::getTypes().
|
overrideprivatevirtual |
Reimplemented from unocontrols::BaseContainerControl.
Definition at line 325 of file statusindicator.cxx.
References unocontrols::BaseControl::getPosSize().
|
overrideprivatevirtual |
Reimplemented from unocontrols::BaseContainerControl.
Definition at line 340 of file statusindicator.cxx.
References unocontrols::BaseControl::impl_getHeight(), unocontrols::BaseControl::impl_getPeerWindow(), unocontrols::BaseControl::impl_getWidth(), cppu::BaseMutex::m_aMutex, m_xProgressBar, m_xText, unocontrols::STATUSINDICATOR_BACKGROUNDCOLOR, unocontrols::STATUSINDICATOR_LINECOLOR_BRIGHT, and unocontrols::STATUSINDICATOR_LINECOLOR_SHADOW.
Referenced by setPosSize().
|
overrideprivatevirtual |
Reimplemented from unocontrols::BaseControl.
Definition at line 377 of file statusindicator.cxx.
References aEvent, Size::Height(), cppu::BaseMutex::m_aMutex, m_xProgressBar, m_xText, unocontrols::STATUSINDICATOR_DEFAULT_HEIGHT, unocontrols::STATUSINDICATOR_DEFAULT_WIDTH, unocontrols::STATUSINDICATOR_FREEBORDER, and Size::Width().
Referenced by setPosSize(), and start().
|
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 from unocontrols::BaseContainerControl.
Definition at line 77 of file statusindicator.cxx.
References Any, and unocontrols::BaseControl::queryInterface().
|
overridevirtualnoexcept |
decrement refcount @seealso XInterface @seealso acquire() @onerror A RuntimeException is thrown.
Reimplemented from unocontrols::BaseControl.
Definition at line 110 of file statusindicator.cxx.
References unocontrols::BaseControl::release().
|
overridevirtual |
Definition at line 182 of file statusindicator.cxx.
References cppu::BaseMutex::m_aMutex, m_xProgressBar, and m_xText.
|
overridevirtual |
Reimplemented from unocontrols::BaseContainerControl.
Definition at line 259 of file statusindicator.cxx.
|
overridevirtual |
Reimplemented from unocontrols::BaseControl.
Definition at line 296 of file statusindicator.cxx.
References unocontrols::BaseControl::getPeer(), unocontrols::BaseControl::getPosSize(), unocontrols::BaseControl::impl_getGraphicsPeer(), impl_paint(), impl_recalcLayout(), Rectangle, and unocontrols::BaseControl::setPosSize().
Referenced by createPeer().
|
overridevirtual |
Definition at line 160 of file statusindicator.cxx.
References cppu::BaseMutex::m_aMutex, and m_xText.
|
overridevirtual |
Definition at line 171 of file statusindicator.cxx.
References cppu::BaseMutex::m_aMutex, m_xProgressBar, and nValue.
|
overridevirtual |
Definition at line 133 of file statusindicator.cxx.
References unocontrols::BaseControl::impl_getHeight(), unocontrols::BaseControl::impl_getWidth(), impl_recalcLayout(), cppu::BaseMutex::m_aMutex, m_xProgressBar, and m_xText.
|
private |
Definition at line 161 of file statusindicator.hxx.
Referenced by dispose(), end(), impl_paint(), impl_recalcLayout(), reset(), setValue(), and start().
|
private |
Definition at line 160 of file statusindicator.hxx.
Referenced by dispose(), end(), getPreferredSize(), impl_paint(), impl_recalcLayout(), reset(), setText(), and start().