23#include <osl/diagnose.h>
31 const bool bTempStrict)
32: m_xStatusIndicator(
std::move(xTempStatusIndicator))
37, m_bStrict(bTempStrict)
51 if((nNewReference <= 0) || (nNewReference ==
m_nReference))
56 double fPercent(
static_cast<double>(nNewReference) /
m_nReference);
58 m_nValue =
static_cast<sal_Int32
>(fValue);
92 double fPercent((fNewValue * 100) /
m_nRange);
102 OSL_FAIL(
"tried to set a wrong value on the progressbar");
const float fProgressStep
const sal_Int32 nDefaultProgressBarRange
ProgressBarHelper(css::uno::Reference< css::task::XStatusIndicator > xStatusIndicator, const bool bStrict)
void SetValue(sal_Int32 nValue)
css::uno::Reference< css::task::XStatusIndicator > m_xStatusIndicator
void ChangeReference(sal_Int32 nNewReference)