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

#include <statusindicator.hxx>

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

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 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::Any SAL_CALL queryAggregation (const css::uno::Type &aType) override
 
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 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::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 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 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 setContext (const css::uno::Reference< css::uno::XInterface > &xContext) override
 
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::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 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 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 > ()
 

Static Public Member Functions

static css::uno::Sequence< OUString > impl_getStaticSupportedServiceNames ()
 
static OUString impl_getStaticImplementationName ()
 

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 > &rGraphics) override
 
virtual void impl_recalcLayout (const css::awt::WindowEvent &aEvent) 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
 
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 Attributes

css::uno::Reference< css::awt::XFixedText > m_xText
 
rtl::Reference< ProgressBarm_xProgressBar
 

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 46 of file statusindicator.hxx.

Constructor & Destructor Documentation

unocontrols::StatusIndicator::StatusIndicator ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)
unocontrols::StatusIndicator::~StatusIndicator ( )
overridevirtual

Definition at line 73 of file statusindicator.cxx.

Member Function Documentation

void SAL_CALL unocontrols::StatusIndicator::acquire ( )
throw (
)
overridevirtual

increment refcount XInterface release() A RuntimeException is thrown.

Reimplemented from unocontrols::BaseControl.

Definition at line 100 of file statusindicator.cxx.

References unocontrols::BaseControl::acquire().

Size SAL_CALL unocontrols::StatusIndicator::calcAdjustedSize ( const css::awt::Size &  aNewSize)
overridevirtual

Definition at line 256 of file statusindicator.cxx.

References getPreferredSize().

void SAL_CALL unocontrols::StatusIndicator::createPeer ( const css::uno::Reference< css::awt::XToolkit > &  xToolkit,
const css::uno::Reference< css::awt::XWindowPeer > &  xParent 
)
overridevirtual
void SAL_CALL unocontrols::StatusIndicator::dispose ( void  )
overridevirtual
void SAL_CALL unocontrols::StatusIndicator::end ( )
overridevirtual
Size SAL_CALL unocontrols::StatusIndicator::getMinimumSize ( )
overridevirtual

Definition at line 218 of file statusindicator.cxx.

References STATUSINDICATOR_DEFAULT_HEIGHT, and STATUSINDICATOR_DEFAULT_WIDTH.

Referenced by createPeer().

css::uno::Reference< XControlModel > SAL_CALL unocontrols::StatusIndicator::getModel ( )
overridevirtual

Reimplemented from unocontrols::BaseContainerControl.

Definition at line 290 of file statusindicator.cxx.

Size SAL_CALL unocontrols::StatusIndicator::getPreferredSize ( )
overridevirtual
Sequence< Type > SAL_CALL unocontrols::StatusIndicator::getTypes ( )
overridevirtual

get information about supported interfaces XTypeProvider

Returns
Sequence of types of all supported interfaces

A RuntimeException is thrown.

Reimplemented from unocontrols::BaseContainerControl.

Definition at line 122 of file statusindicator.cxx.

References unocontrols::BaseContainerControl::getTypes().

OUString unocontrols::StatusIndicator::impl_getStaticImplementationName ( )
static

Definition at line 355 of file statusindicator.cxx.

Referenced by ctl_component_getFactory().

Sequence< OUString > unocontrols::StatusIndicator::impl_getStaticSupportedServiceNames ( )
static

Definition at line 348 of file statusindicator.cxx.

Referenced by ctl_component_getFactory().

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

Reimplemented from unocontrols::BaseContainerControl.

Definition at line 362 of file statusindicator.cxx.

References unocontrols::BaseControl::getPosSize().

void unocontrols::StatusIndicator::impl_paint ( sal_Int32  nX,
sal_Int32  nY,
const css::uno::Reference< css::awt::XGraphics > &  rGraphics 
)
overrideprotectedvirtual
void unocontrols::StatusIndicator::impl_recalcLayout ( const css::awt::WindowEvent &  aEvent)
overrideprotectedvirtual
Any SAL_CALL unocontrols::StatusIndicator::queryAggregation ( const css::uno::Type &  aType)
overridevirtual
Any SAL_CALL unocontrols::StatusIndicator::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 unocontrols::BaseContainerControl.

Definition at line 77 of file statusindicator.cxx.

References Any, unocontrols::BaseControl::impl_getDelegator(), and queryAggregation().

void SAL_CALL unocontrols::StatusIndicator::release ( )
throw (
)
overridevirtual

decrement refcount XInterface acquire() A RuntimeException is thrown.

Reimplemented from unocontrols::BaseControl.

Definition at line 111 of file statusindicator.cxx.

References unocontrols::BaseControl::release().

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

Reimplemented from unocontrols::BaseContainerControl.

Definition at line 282 of file statusindicator.cxx.

void SAL_CALL unocontrols::StatusIndicator::setPosSize ( sal_Int32  nX,
sal_Int32  nY,
sal_Int32  nWidth,
sal_Int32  nHeight,
sal_Int16  nFlags 
)
overridevirtual
void SAL_CALL unocontrols::StatusIndicator::setText ( const OUString &  sText)
overridevirtual

Definition at line 183 of file statusindicator.cxx.

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

void SAL_CALL unocontrols::StatusIndicator::setValue ( sal_Int32  nValue)
overridevirtual
void SAL_CALL unocontrols::StatusIndicator::start ( const OUString &  sText,
sal_Int32  nRange 
)
overridevirtual

Member Data Documentation

rtl::Reference<ProgressBar> unocontrols::StatusIndicator::m_xProgressBar
private

Definition at line 173 of file statusindicator.hxx.

Referenced by dispose(), end(), impl_paint(), impl_recalcLayout(), reset(), setValue(), and start().

css::uno::Reference< css::awt::XFixedText > unocontrols::StatusIndicator::m_xText
private

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