29 : m_xParentWindow (
std::move(xParentWindow ))
30 , m_pStatusBar (nullptr )
35 throw css::uno::RuntimeException(
36 "Can't work without a parent window!",
37 static_cast< css::task::XStatusIndicator*
>(
this));
60 pParentWindow->Show();
61 pParentWindow->Invalidate(InvalidateFlags::Children);
62 pParentWindow->GetOutDev()->Flush();
114 sal_uInt16 nPercent = sal::static_int_cast< sal_uInt16 >(
116 ((
nValue*100) / ::std::max(nRange,sal_Int32(1))), sal_Int32(100)));
constexpr tools::Long Height() const
constexpr tools::Long Width() const
static vcl::Window * GetWindow(const css::uno::Reference< css::awt::XWindow > &rxWindow)
static VclPtr< reference_type > Create(Arg &&... arg)
virtual void SAL_CALL start(const OUString &sText, sal_Int32 nRange) override
XStatusIndicator.
static void impl_recalcLayout(vcl::Window *pStatusBar, vcl::Window const *pParentWindow)
virtual void SAL_CALL end() override
virtual void SAL_CALL setText(const OUString &sText) override
virtual void SAL_CALL setValue(sal_Int32 nValue) override
VclPtr< StatusBar > m_pStatusBar
shows the progress.
css::uno::Reference< css::awt::XWindow > m_xParentWindow
points to the parent window of this progress and hold it alive.
VCLStatusIndicator(css::uno::Reference< css::awt::XWindow > xParentWindow)
ctor
virtual ~VCLStatusIndicator() override
dtor
sal_Int32 m_nValue
knows the current value of the progress.
virtual void SAL_CALL reset() override
sal_Int32 m_nRange
knows the current range of the progress.
virtual void setPosSizePixel(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, PosSizeFlags nFlags=PosSizeFlags::All)
virtual Size GetSizePixel() const