class ISegmentProgressBar; typedef std::shared_ptr< ISegmentProgressBar > ISegmentProgressBarRef;
/** Interface for a segment in a progress bar, that is able to create sub segmentsfromitself.
*/ class OOX_DLLPUBLIC ISegmentProgressBar : public IProgressBar
{ public: virtual ~ISegmentProgressBar() override;
/** Returns the length that is still free for creating sub segments. */ virtualdouble getFreeLength() const = 0;
/** Adds a new segment with the specified length. */ virtual ISegmentProgressBarRef createSegment( double fLength ) = 0;
};
/** A simple progress bar.
*/ class OOX_DLLPUBLIC ProgressBar final : public IProgressBar
{ public: explicit ProgressBar( const css::uno::Reference< css::task::XStatusIndicator >& rxIndicator, const OUString& rText );
virtual ~ProgressBar() override;
/** Returns the current position of the progress bar. */ virtualdouble getPosition() const override; /** Sets the current position of the progress bar. */ virtualvoid setPosition( double fPosition ) override;
/** A progress bar containing several independent segments.
*/ class OOX_DLLPUBLIC SegmentProgressBar final : public ISegmentProgressBar
{ public: explicit SegmentProgressBar( const css::uno::Reference< css::task::XStatusIndicator >& rxIndicator, const OUString& rText );
/** Returns the current position of the progress bar segment. */ virtualdouble getPosition() const override; /** Sets the current position of the progress bar segment. */ virtualvoid setPosition( double fPosition ) override;
/** Returns the length that is still free for creating sub segments. */ virtualdouble getFreeLength() const override; /** Adds a new segment with the specified length. */ virtual ISegmentProgressBarRef createSegment( double fLength ) override;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.