LibreOffice Module oox (master) 1
|
A progress bar containing several independent segments. More...
#include <progressbar.hxx>
Public Member Functions | |
SegmentProgressBar (const css::uno::Reference< css::task::XStatusIndicator > &rxIndicator, const OUString &rText) | |
virtual double | getPosition () const override |
Returns the current position of the progress bar segment. More... | |
virtual void | setPosition (double fPosition) override |
Sets the current position of the progress bar segment. More... | |
virtual double | getFreeLength () const override |
Returns the length that is still free for creating sub segments. More... | |
virtual ISegmentProgressBarRef | createSegment (double fLength) override |
Adds a new segment with the specified length. More... | |
Public Member Functions inherited from oox::ISegmentProgressBar | |
virtual | ~ISegmentProgressBar () override |
virtual double | getFreeLength () const =0 |
Returns the length that is still free for creating sub segments. More... | |
virtual ISegmentProgressBarRef | createSegment (double fLength)=0 |
Adds a new segment with the specified length. 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 | |
ProgressBar | maProgress |
double | mfFreeStart |
A progress bar containing several independent segments.
Definition at line 105 of file progressbar.hxx.
|
explicit |
Definition at line 135 of file progressbar.cxx.
|
overridevirtual |
Adds a new segment with the specified length.
Implements oox::ISegmentProgressBar.
Definition at line 156 of file progressbar.cxx.
References getFreeLength(), maProgress, mfFreeStart, and SAL_WARN_IF.
|
overridevirtual |
Returns the length that is still free for creating sub segments.
Implements oox::ISegmentProgressBar.
Definition at line 151 of file progressbar.cxx.
References mfFreeStart.
Referenced by createSegment().
|
overridevirtual |
Returns the current position of the progress bar segment.
Implements oox::IProgressBar.
Definition at line 141 of file progressbar.cxx.
References oox::ProgressBar::getPosition(), and maProgress.
|
overridevirtual |
Sets the current position of the progress bar segment.
Implements oox::IProgressBar.
Definition at line 146 of file progressbar.cxx.
References maProgress, and oox::ProgressBar::setPosition().
|
private |
Definition at line 123 of file progressbar.hxx.
Referenced by createSegment(), getPosition(), and setPosition().
|
private |
Definition at line 124 of file progressbar.hxx.
Referenced by createSegment(), and getFreeLength().