24#include <com/sun/star/ui/UIElementType.hpp>
25#include <com/sun/star/lang/DisposedException.hpp>
37 , m_bOwnsInstance( false )
63 catch (
const uno::Exception& )
78 return uno::Reference< awt::XWindow >();
86 uno::Reference< awt::XWindow > xWindow;
106 if ( !(pWindow && pWindow->GetType() == WindowType::STATUSBAR) )
120 pStatusBar->
Show(
true, ShowFlags::NoFocusChange | ShowFlags::NoActivate );
125 uno::Reference< awt::XWindow > xWindow;
142 if ( pWindow && pWindow->GetType() == WindowType::STATUSBAR )
153 uno::Reference< awt::XWindow > xWindow;
172 if ( !(pWindow && pWindow->GetType() == WindowType::STATUSBAR) )
190 uno::Reference< awt::XWindow > xWindow;
192 bool bSetValue(
false );
206 fVal = std::clamp( fVal, 0.0, 100.0 );
219 if ( xWindow.is() && bSetValue )
223 if ( pWindow && pWindow->GetType() == WindowType::STATUSBAR )
254 uno::Reference< lang::XComponent > xThis(
this);
264 lang::EventObject
aEvent( xThis );
275 catch (
const lang::DisposedException& )
291 return uno::Reference< uno::XInterface >();
void StartProgressMode(const OUString &rText)
void SetText(const OUString &rText) override
void SetProgressValue(sal_uInt16 nPercent)
bool IsProgressMode() const
static vcl::Window * GetWindow(const css::uno::Reference< css::awt::XWindow > &rxWindow)
reference_type * get() const
void disposeAndClear(const css::lang::EventObject &rEvt)
virtual ~ProgressBarWrapper() override
virtual void SAL_CALL update() override
virtual void SAL_CALL dispose() override
void start(const OUString &Text, ::sal_Int32 Range)
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getRealInterface() override
css::uno::WeakReference< css::uno::XInterface > m_xProgressBarIfacWrapper
css::uno::Reference< css::awt::XWindow > getStatusBar() const
void setValue(::sal_Int32 Value)
void setText(const OUString &Text)
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
void setStatusBar(const css::uno::Reference< css::awt::XWindow > &rStatusBar, bool bOwnsInstance=false)
css::uno::Reference< css::awt::XWindow > m_xStatusBar
comphelper::OMultiTypeInterfaceContainerHelper2 m_aListenerContainer
void SetUpdateMode(bool bUpdate)
void Show(bool bVisible=true, ShowFlags nFlags=ShowFlags::NONE)
const sal_Int16 PROGRESSBAR