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

#include <progressbar.hxx>

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

Public Member Functions

 ProgressBar (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
virtual ~ProgressBar () 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...
 
css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &aType) override
 
virtual void SAL_CALL setForegroundColor (sal_Int32 nColor) override
 
virtual void SAL_CALL setBackgroundColor (sal_Int32 nColor) override
 
virtual void SAL_CALL setValue (sal_Int32 nValue) override
 
virtual void SAL_CALL setRange (sal_Int32 nMin, sal_Int32 nMax) override
 
virtual sal_Int32 SAL_CALL getValue () override
 
virtual void SAL_CALL setPosSize (sal_Int32 nX, sal_Int32 nY, sal_Int32 nWidth, sal_Int32 nHeight, sal_Int16 nFlags) 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
 
- 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 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
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE=0
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual void SAL_CALL dispose () SAL_OVERRIDE
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) SAL_OVERRIDE
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::OWeakAggObject
 OWeakAggObject ()
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL setDelegator (const css::uno::Reference< css::uno::XInterface > &Delegator) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &rType) SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 

Private Member Functions

virtual void impl_paint (sal_Int32 nX, sal_Int32 nY, const css::uno::Reference< css::awt::XGraphics > &xGraphics) override
 
void impl_recalcRange ()
 

Private Attributes

bool m_bHorizontal
 
css::awt::Size m_aBlockSize
 
Color m_nForegroundColor
 
Color m_nBackgroundColor
 
sal_Int32 m_nMinRange
 
sal_Int32 m_nMaxRange
 
double m_nBlockValue
 
sal_Int32 m_nValue
 

Additional Inherited Members

- 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)
 
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 ()
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::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 44 of file progressbar.hxx.

Constructor & Destructor Documentation

◆ ProgressBar()

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

◆ ~ProgressBar()

unocontrols::ProgressBar::~ProgressBar ( )
overridevirtual

Definition at line 50 of file progressbar.cxx.

Member Function Documentation

◆ acquire()

void SAL_CALL unocontrols::ProgressBar::acquire ( )
overridevirtualnoexcept

increment refcount @seealso XInterface @seealso release() @onerror A RuntimeException is thrown.

Reimplemented from unocontrols::BaseControl.

Definition at line 79 of file progressbar.cxx.

◆ getModel()

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

Implements unocontrols::BaseControl.

Definition at line 278 of file progressbar.cxx.

◆ getTypes()

Sequence< Type > SAL_CALL unocontrols::ProgressBar::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.

Definition at line 101 of file progressbar.cxx.

◆ getValue()

sal_Int32 SAL_CALL unocontrols::ProgressBar::getValue ( )
overridevirtual

Definition at line 234 of file progressbar.cxx.

References m_aMutex.

◆ impl_paint()

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

◆ impl_recalcRange()

void unocontrols::ProgressBar::impl_recalcRange ( )
private

Definition at line 359 of file progressbar.cxx.

References m_aMutex, and unocontrols::PROGRESSBAR_FREESPACE.

◆ queryAggregation()

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

Reimplemented from unocontrols::BaseControl.

Definition at line 113 of file progressbar.cxx.

References Any.

◆ queryInterface()

Any SAL_CALL unocontrols::ProgressBar::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.

Definition at line 56 of file progressbar.cxx.

References Any.

◆ release()

void SAL_CALL unocontrols::ProgressBar::release ( )
overridevirtualnoexcept

decrement refcount @seealso XInterface @seealso acquire() @onerror A RuntimeException is thrown.

Reimplemented from unocontrols::BaseControl.

Definition at line 90 of file progressbar.cxx.

◆ setBackgroundColor()

void SAL_CALL unocontrols::ProgressBar::setBackgroundColor ( sal_Int32  nColor)
overridevirtual

Definition at line 149 of file progressbar.cxx.

References ColorTransparency, and m_aMutex.

◆ setForegroundColor()

void SAL_CALL unocontrols::ProgressBar::setForegroundColor ( sal_Int32  nColor)
overridevirtual

Definition at line 135 of file progressbar.cxx.

References ColorTransparency, and m_aMutex.

◆ setModel()

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

Implements unocontrols::BaseControl.

Definition at line 270 of file progressbar.cxx.

◆ setPosSize()

void SAL_CALL unocontrols::ProgressBar::setPosSize ( sal_Int32  nX,
sal_Int32  nY,
sal_Int32  nWidth,
sal_Int32  nHeight,
sal_Int16  nFlags 
)
overridevirtual

Reimplemented from unocontrols::BaseControl.

Definition at line 244 of file progressbar.cxx.

References Rectangle.

◆ setRange()

void SAL_CALL unocontrols::ProgressBar::setRange ( sal_Int32  nMin,
sal_Int32  nMax 
)
overridevirtual

Definition at line 192 of file progressbar.cxx.

References DBG_ASSERT, and m_aMutex.

◆ setValue()

void SAL_CALL unocontrols::ProgressBar::setValue ( sal_Int32  nValue)
overridevirtual

Definition at line 163 of file progressbar.cxx.

References DBG_ASSERT, m_aMutex, and nValue.

Member Data Documentation

◆ m_aBlockSize

css::awt::Size unocontrols::ProgressBar::m_aBlockSize
private

Definition at line 127 of file progressbar.hxx.

◆ m_bHorizontal

bool unocontrols::ProgressBar::m_bHorizontal
private

Definition at line 126 of file progressbar.hxx.

◆ m_nBackgroundColor

Color unocontrols::ProgressBar::m_nBackgroundColor
private

Definition at line 129 of file progressbar.hxx.

◆ m_nBlockValue

double unocontrols::ProgressBar::m_nBlockValue
private

Definition at line 132 of file progressbar.hxx.

◆ m_nForegroundColor

Color unocontrols::ProgressBar::m_nForegroundColor
private

Definition at line 128 of file progressbar.hxx.

◆ m_nMaxRange

sal_Int32 unocontrols::ProgressBar::m_nMaxRange
private

Definition at line 131 of file progressbar.hxx.

◆ m_nMinRange

sal_Int32 unocontrols::ProgressBar::m_nMinRange
private

Definition at line 130 of file progressbar.hxx.

◆ m_nValue

sal_Int32 unocontrols::ProgressBar::m_nValue
private

Definition at line 133 of file progressbar.hxx.


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