LibreOffice Module desktop (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
dp_gui::ProgressCmdEnv Class Reference
Inheritance diagram for dp_gui::ProgressCmdEnv:
[legend]
Collaboration diagram for dp_gui::ProgressCmdEnv:
[legend]

Public Member Functions

 ProgressCmdEnv (const uno::Reference< uno::XComponentContext > &rContext, DialogHelper *pDialogHelper, const OUString &rTitle)
 When param bAskWhenInstalling = true, then the user is asked if he agrees to install this extension. More...
 
weld::WindowactiveDialog ()
 
void startProgress ()
 
void stopProgress ()
 
void progressSection (const OUString &rText, const uno::Reference< task::XAbortChannel > &xAbortChannel)
 
void setWarnUser (bool bNewVal)
 
virtual uno::Reference< task::XInteractionHandler > SAL_CALL getInteractionHandler () override
 
virtual uno::Reference< ucb::XProgressHandler > SAL_CALL getProgressHandler () override
 
virtual void SAL_CALL handle (uno::Reference< task::XInteractionRequest > const &xRequest) override
 
virtual void SAL_CALL push (uno::Any const &Status) override
 
virtual void SAL_CALL update (uno::Any const &Status) override
 
virtual void SAL_CALL pop () override
 

Private Member Functions

void updateProgress ()
 
void update_ (uno::Any const &Status)
 

Private Attributes

uno::Reference< task::XInteractionHandler2 > m_xHandler
 
uno::Reference< uno::XComponentContext > m_xContext
 
uno::Reference< task::XAbortChannel > m_xAbortChannel
 
DialogHelperm_pDialogHelper
 
OUString m_sTitle
 
bool m_bWarnUser
 
sal_Int32 m_nCurrentProgress
 

Detailed Description

Definition at line 112 of file dp_gui_extensioncmdqueue.cxx.

Constructor & Destructor Documentation

dp_gui::ProgressCmdEnv::ProgressCmdEnv ( const uno::Reference< uno::XComponentContext > &  rContext,
DialogHelper pDialogHelper,
const OUString &  rTitle 
)
inline

When param bAskWhenInstalling = true, then the user is asked if he agrees to install this extension.

In case this extension is already installed then the user is also notified and asked if he wants to replace that existing extension. In first case an interaction request with an InstallException will be handled and in the second case a VersionException will be handled.

Definition at line 139 of file dp_gui_extensioncmdqueue.cxx.

Member Function Documentation

weld::Window* dp_gui::ProgressCmdEnv::activeDialog ( )
inline
uno::Reference< task::XInteractionHandler > dp_gui::ProgressCmdEnv::getInteractionHandler ( )
overridevirtual

Definition at line 304 of file dp_gui_extensioncmdqueue.cxx.

uno::Reference< ucb::XProgressHandler > dp_gui::ProgressCmdEnv::getProgressHandler ( )
overridevirtual

Definition at line 310 of file dp_gui_extensioncmdqueue.cxx.

void dp_gui::ProgressCmdEnv::handle ( uno::Reference< task::XInteractionRequest > const &  xRequest)
overridevirtual
void dp_gui::ProgressCmdEnv::pop ( )
overridevirtual

Definition at line 559 of file dp_gui_extensioncmdqueue.cxx.

References update_().

void dp_gui::ProgressCmdEnv::progressSection ( const OUString &  rText,
const uno::Reference< task::XAbortChannel > &  xAbortChannel 
)
void dp_gui::ProgressCmdEnv::push ( uno::Any const &  Status)
overridevirtual

Definition at line 527 of file dp_gui_extensioncmdqueue.cxx.

References update_().

void dp_gui::ProgressCmdEnv::setWarnUser ( bool  bNewVal)
inline

Definition at line 155 of file dp_gui_extensioncmdqueue.cxx.

void dp_gui::ProgressCmdEnv::startProgress ( )
void dp_gui::ProgressCmdEnv::stopProgress ( )
void dp_gui::ProgressCmdEnv::update ( uno::Any const &  Status)
overridevirtual

Definition at line 553 of file dp_gui_extensioncmdqueue.cxx.

References update_().

void dp_gui::ProgressCmdEnv::update_ ( uno::Any const &  Status)
private
void dp_gui::ProgressCmdEnv::updateProgress ( )
private

Member Data Documentation

bool dp_gui::ProgressCmdEnv::m_bWarnUser
private

Definition at line 123 of file dp_gui_extensioncmdqueue.cxx.

Referenced by handle().

sal_Int32 dp_gui::ProgressCmdEnv::m_nCurrentProgress
private
DialogHelper* dp_gui::ProgressCmdEnv::m_pDialogHelper
private
OUString dp_gui::ProgressCmdEnv::m_sTitle
private

Definition at line 122 of file dp_gui_extensioncmdqueue.cxx.

Referenced by handle().

uno::Reference< task::XAbortChannel> dp_gui::ProgressCmdEnv::m_xAbortChannel
private

Definition at line 119 of file dp_gui_extensioncmdqueue.cxx.

Referenced by progressSection().

uno::Reference< uno::XComponentContext > dp_gui::ProgressCmdEnv::m_xContext
private

Definition at line 118 of file dp_gui_extensioncmdqueue.cxx.

Referenced by handle().

uno::Reference< task::XInteractionHandler2> dp_gui::ProgressCmdEnv::m_xHandler
private

Definition at line 117 of file dp_gui_extensioncmdqueue.cxx.

Referenced by handle().


The documentation for this class was generated from the following file: