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

A simple progress bar. More...

#include <progressbar.hxx>

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

Public Member Functions

 ProgressBar (const css::uno::Reference< css::task::XStatusIndicator > &rxIndicator, const OUString &rText)
 
virtual ~ProgressBar () override
 
virtual double getPosition () const override
 Returns the current position of the progress bar. More...
 
virtual void setPosition (double fPosition) override
 Sets the current position of the progress bar. More...
 
- Public Member Functions inherited from oox::IProgressBar
virtual ~IProgressBar ()
 
virtual double getPosition () const =0
 Returns the current position of the progress bar. More...
 
virtual void setPosition (double fPosition)=0
 Sets the current position of the progress bar. More...
 

Private Attributes

css::uno::Reference< css::task::XStatusIndicator > mxIndicator
 
double mfPosition
 

Detailed Description

A simple progress bar.

Definition at line 82 of file progressbar.hxx.

Constructor & Destructor Documentation

◆ ProgressBar()

oox::ProgressBar::ProgressBar ( const css::uno::Reference< css::task::XStatusIndicator > &  rxIndicator,
const OUString &  rText 
)
explicit

◆ ~ProgressBar()

oox::ProgressBar::~ProgressBar ( )
overridevirtual

Definition at line 54 of file progressbar.cxx.

References mxIndicator.

Member Function Documentation

◆ getPosition()

double oox::ProgressBar::getPosition ( ) const
overridevirtual

Returns the current position of the progress bar.

Implements oox::IProgressBar.

Definition at line 60 of file progressbar.cxx.

References mfPosition.

Referenced by oox::SegmentProgressBar::getPosition().

◆ setPosition()

void oox::ProgressBar::setPosition ( double  fPosition)
overridevirtual

Sets the current position of the progress bar.

Implements oox::IProgressBar.

Definition at line 65 of file progressbar.cxx.

References mfPosition, mxIndicator, and SAL_WARN_IF.

Referenced by oox::SegmentProgressBar::setPosition().

Member Data Documentation

◆ mfPosition

double oox::ProgressBar::mfPosition
private

Definition at line 99 of file progressbar.hxx.

Referenced by getPosition(), and setPosition().

◆ mxIndicator

css::uno::Reference< css::task::XStatusIndicator > oox::ProgressBar::mxIndicator
private

Definition at line 98 of file progressbar.hxx.

Referenced by setPosition(), and ~ProgressBar().


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