LibreOffice Module framework (master) 1
|
#include <progressbarwrapper.hxx>
Public Member Functions | |
ProgressBarWrapper () | |
virtual | ~ProgressBarWrapper () override |
void | setStatusBar (const css::uno::Reference< css::awt::XWindow > &rStatusBar, bool bOwnsInstance=false) |
css::uno::Reference< css::awt::XWindow > | getStatusBar () const |
void | start (const OUString &Text, ::sal_Int32 Range) |
void | end () |
void | setText (const OUString &Text) |
void | setValue (::sal_Int32 Value) |
void | reset () |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override |
virtual void SAL_CALL | update () override |
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL | getRealInterface () override |
Public Member Functions inherited from framework::UIElementWrapperBase | |
UIElementWrapperBase (sal_Int16 nType) | |
virtual | ~UIElementWrapperBase () override |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &type) override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual void SAL_CALL | dispose () override=0 |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override |
virtual void SAL_CALL | update () override |
virtual css::uno::Reference< css::frame::XFrame > SAL_CALL | getFrame () override |
virtual OUString SAL_CALL | getResourceURL () override |
virtual ::sal_Int16 SAL_CALL | getType () override |
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL | getRealInterface () override=0 |
Public Member Functions inherited from cppu::OBroadcastHelperVar< class container, class keyType > | |
OBroadcastHelperVar (::osl::Mutex &rMutex_) | |
void | addListener (const keyType &key, const css::uno::Reference< css::uno::XInterface > &r) |
void | removeListener (const keyType &key, const css::uno::Reference< css::uno::XInterface > &r) |
OInterfaceContainerHelper *SAL_CALL | getContainer (const keyType &key) const |
Public Member Functions inherited from cppu::OPropertySetHelper | |
OPropertySetHelper (OBroadcastHelper &rBHelper) | |
OPropertySetHelper (OBroadcastHelper &rBHelper, bool bIgnoreRuntimeExceptionsWhileFiring) | |
OPropertySetHelper (OBroadcastHelper &rBHelper, IEventNotificationHook *i_pFireEvents, bool bIgnoreRuntimeExceptionsWhileFiring=false) | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE |
css::uno::Sequence< css::uno::Type > | getTypes () |
void SAL_CALL | disposing () |
virtual void SAL_CALL | setPropertyValue (const ::rtl::OUString &rPropertyName, const css::uno::Any &aValue) SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | getPropertyValue (const ::rtl::OUString &aPropertyName) SAL_OVERRIDE |
virtual void SAL_CALL | addPropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | removePropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | addVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | removeVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | getFastPropertyValue (sal_Int32 nHandle) SAL_OVERRIDE |
virtual void SAL_CALL | setPropertyValues (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Sequence< css::uno::Any > &Values) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Any > SAL_CALL | getPropertyValues (const css::uno::Sequence< ::rtl::OUString > &PropertyNames) SAL_OVERRIDE |
virtual void SAL_CALL | addPropertiesChangeListener (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE |
virtual void SAL_CALL | removePropertiesChangeListener (const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE |
virtual void SAL_CALL | firePropertiesChangeEvent (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE |
Private Attributes | |
css::uno::Reference< css::awt::XWindow > | m_xStatusBar |
css::uno::WeakReference< css::uno::XInterface > | m_xProgressBarIfacWrapper |
bool | m_bOwnsInstance |
sal_Int32 | m_nRange |
sal_Int32 | m_nValue |
OUString | m_aText |
Additional Inherited Members | |
Static Public Member Functions inherited from cppu::OPropertySetHelper | |
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | createPropertySetInfo (IPropertyArrayHelper &rProperties) |
Public Attributes inherited from cppu::OBroadcastHelperVar< class container, class keyType > | |
::osl::Mutex & | rMutex |
container | aLC |
sal_Bool | bDisposed |
sal_Bool | bInDispose |
Protected Member Functions inherited from framework::UIElementWrapperBase | |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &aConvertedValue, css::uno::Any &aOldValue, sal_Int32 nHandle, const css::uno::Any &aValue) override |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &aValue) override |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &aValue, sal_Int32 nHandle) const override |
virtual ::cppu::IPropertyArrayHelper &SAL_CALL | getInfoHelper () override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
Protected Member Functions inherited from cppu::OPropertySetHelper | |
void SAL_CALL | fire (sal_Int32 *pnHandles, const css::uno::Any *pNewValues, const css::uno::Any *pOldValues, sal_Int32 nCount, sal_Bool bVetoable) |
void SAL_CALL | setFastPropertyValues (sal_Int32 nSeqLen, sal_Int32 *pHandles, const css::uno::Any *pValues, sal_Int32 nHitCount) |
virtual IPropertyArrayHelper &SAL_CALL | getInfoHelper ()=0 |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue)=0 |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue)=0 |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const=0 |
void | setDependentFastPropertyValue (sal_Int32 i_handle, const css::uno::Any &i_value) |
~OPropertySetHelper () | |
Static Protected Member Functions inherited from framework::UIElementWrapperBase | |
static css::uno::Sequence< css::beans::Property > | impl_getStaticPropertyDescriptor () |
Protected Attributes inherited from framework::UIElementWrapperBase | |
comphelper::OMultiTypeInterfaceContainerHelper2 | m_aListenerContainer |
OUString | m_aResourceURL |
container for ALL Listener More... | |
css::uno::WeakReference< css::frame::XFrame > | m_xWeakFrame |
sal_Int16 | m_nType |
bool | m_bInitialized: 1 |
bool | m_bDisposed |
Protected Attributes inherited from cppu::OPropertySetHelper | |
OBroadcastHelper & | rBHelper |
OMultiTypeInterfaceContainerHelperInt32 | aBoundLC |
OMultiTypeInterfaceContainerHelperInt32 | aVetoableLC |
Impl *const | m_pReserved |
Definition at line 30 of file progressbarwrapper.hxx.
framework::ProgressBarWrapper::ProgressBarWrapper | ( | ) |
Definition at line 35 of file progressbarwrapper.cxx.
References PROGRESSBAR.
|
overridevirtual |
Definition at line 43 of file progressbarwrapper.cxx.
|
overridevirtual |
Implements framework::UIElementWrapperBase.
Definition at line 252 of file progressbarwrapper.cxx.
References aEvent, comphelper::OMultiTypeInterfaceContainerHelper2::disposeAndClear(), framework::UIElementWrapperBase::m_aListenerContainer, framework::UIElementWrapperBase::m_bDisposed, m_bOwnsInstance, and m_xStatusBar.
void framework::ProgressBarWrapper::end | ( | ) |
css::uno::RuntimeException |
Definition at line 123 of file progressbarwrapper.cxx.
References StatusBar::EndProgressMode(), VclPtr< class reference_type >::get(), VCLUnoHelper::GetWindow(), StatusBar::IsProgressMode(), framework::UIElementWrapperBase::m_bDisposed, m_nRange, m_nValue, and m_xStatusBar.
Referenced by framework::StatusIndicatorInterfaceWrapper::end().
|
overridevirtual |
Implements framework::UIElementWrapperBase.
Definition at line 286 of file progressbarwrapper.cxx.
References framework::UIElementWrapperBase::m_bDisposed, and m_xProgressBarIfacWrapper.
uno::Reference< awt::XWindow > framework::ProgressBarWrapper::getStatusBar | ( | ) | const |
Definition at line 73 of file progressbarwrapper.cxx.
References framework::UIElementWrapperBase::m_bDisposed, and m_xStatusBar.
Referenced by framework::LayoutManager::implts_getStatusBarSize(), framework::LayoutManager::implts_hideProgressBar(), framework::LayoutManager::implts_setStatusBarPosSize(), and framework::LayoutManager::implts_showProgressBar().
|
overridevirtual |
Reimplemented from framework::UIElementWrapperBase.
Definition at line 240 of file progressbarwrapper.cxx.
void framework::ProgressBarWrapper::reset | ( | ) |
css::uno::RuntimeException |
Definition at line 233 of file progressbarwrapper.cxx.
References setText(), and setValue().
Referenced by framework::StatusIndicatorInterfaceWrapper::reset().
void framework::ProgressBarWrapper::setStatusBar | ( | const css::uno::Reference< css::awt::XWindow > & | rStatusBar, |
bool | bOwnsInstance = false |
||
) |
Definition at line 48 of file progressbarwrapper.cxx.
References framework::UIElementWrapperBase::m_bDisposed, m_bOwnsInstance, and m_xStatusBar.
Referenced by framework::LayoutManager::implts_backupProgressBarWrapper().
void framework::ProgressBarWrapper::setText | ( | const OUString & | Text | ) |
css::uno::RuntimeException |
Definition at line 151 of file progressbarwrapper.cxx.
References StatusBar::EndProgressMode(), VclPtr< class reference_type >::get(), VCLUnoHelper::GetWindow(), StatusBar::IsProgressMode(), m_aText, framework::UIElementWrapperBase::m_bDisposed, m_nValue, m_xStatusBar, nValue, StatusBar::SetProgressValue(), StatusBar::SetText(), vcl::Window::SetUpdateMode(), StatusBar::StartProgressMode(), and Text.
Referenced by reset(), and framework::StatusIndicatorInterfaceWrapper::setText().
void framework::ProgressBarWrapper::setValue | ( | ::sal_Int32 | Value | ) |
css::uno::RuntimeException |
Definition at line 188 of file progressbarwrapper.cxx.
References VclPtr< class reference_type >::get(), VCLUnoHelper::GetWindow(), StatusBar::IsProgressMode(), m_aText, framework::UIElementWrapperBase::m_bDisposed, m_nRange, m_nValue, m_xStatusBar, nValue, StatusBar::SetProgressValue(), and StatusBar::StartProgressMode().
Referenced by reset(), and framework::StatusIndicatorInterfaceWrapper::setValue().
void framework::ProgressBarWrapper::start | ( | const OUString & | Text, |
::sal_Int32 | Range | ||
) |
css::uno::RuntimeException |
Definition at line 84 of file progressbarwrapper.cxx.
References StatusBar::EndProgressMode(), VclPtr< class reference_type >::get(), VCLUnoHelper::GetWindow(), StatusBar::IsProgressMode(), framework::UIElementWrapperBase::m_bDisposed, m_nRange, m_nValue, m_xStatusBar, nValue, StatusBar::SetProgressValue(), vcl::Window::SetUpdateMode(), vcl::Window::Show(), StatusBar::StartProgressMode(), and Text.
Referenced by framework::StatusIndicatorInterfaceWrapper::start().
|
overridevirtual |
Reimplemented from framework::UIElementWrapperBase.
Definition at line 246 of file progressbarwrapper.cxx.
|
private |
Definition at line 77 of file progressbarwrapper.hxx.
Referenced by setText(), and setValue().
|
private |
Definition at line 74 of file progressbarwrapper.hxx.
Referenced by dispose(), and setStatusBar().
|
private |
Definition at line 75 of file progressbarwrapper.hxx.
Referenced by end(), setValue(), and start().
|
private |
Definition at line 76 of file progressbarwrapper.hxx.
Referenced by end(), setText(), setValue(), and start().
|
private |
Definition at line 73 of file progressbarwrapper.hxx.
Referenced by getRealInterface().
|
private |
Definition at line 72 of file progressbarwrapper.hxx.
Referenced by dispose(), end(), getStatusBar(), setStatusBar(), setText(), setValue(), and start().