LibreOffice Module desktop (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
dp_gui::ExtMgrDialog Class Reference

#include <dp_gui_dialog2.hxx>

Inheritance diagram for dp_gui::ExtMgrDialog:
[legend]
Collaboration diagram for dp_gui::ExtMgrDialog:
[legend]

Public Member Functions

 ExtMgrDialog (weld::Window *pParent, TheExtensionManager *pManager)
 
virtual ~ExtMgrDialog () override
 
virtual void showProgress (bool bStart) override
 
virtual void updateProgress (const OUString &rText, const css::uno::Reference< css::task::XAbortChannel > &xAbortChannel) override
 
virtual void updateProgress (const long nProgress) override
 
virtual void updatePackageInfo (const css::uno::Reference< css::deployment::XPackage > &xPackage) override
 
void setGetExtensionsURL (const OUString &rURL)
 
virtual void addPackageToList (const css::uno::Reference< css::deployment::XPackage > &, bool bLicenseMissing=false) override
 
void enablePackage (const css::uno::Reference< css::deployment::XPackage > &xPackage, bool bEnable)
 
void removePackage (const css::uno::Reference< css::deployment::XPackage > &xPackage)
 
void updatePackage (const css::uno::Reference< css::deployment::XPackage > &xPackage)
 
bool acceptLicense (const css::uno::Reference< css::deployment::XPackage > &xPackage)
 
void Close ()
 
TheExtensionManagergetExtensionManager () const
 
virtual void prepareChecking () override
 
virtual void checkEntries () override
 
css::uno::Sequence< OUString > raiseAddPicker ()
 
void enableOptionsButton (bool bEnable)
 
void enableRemoveButton (bool bEnable)
 
void enableEnableButton (bool bEnable)
 
void enableButtontoEnable (bool bEnable)
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OString &rDialogId)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OString &rHelpId)
 
OString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 
- Public Member Functions inherited from dp_gui::DialogHelper
 DialogHelper (const css::uno::Reference< css::uno::XComponentContext > &, weld::Window *pWindow)
 
virtual ~DialogHelper ()
 
void openWebBrowser (const OUString &rURL, const OUString &rTitle)
 
weld::WindowgetFrameWeld () const
 
void PostUserEvent (const Link< void *, void > &rLink, void *pCaller)
 
void clearEventID ()
 
bool continueOnSharedExtension (const css::uno::Reference< css::deployment::XPackage > &, weld::Widget *pParent, const char *pResID, bool &bHadWarning)
 
void incBusy ()
 
void decBusy ()
 
bool isBusy () const
 
bool installExtensionWarn (const OUString &rExtensionURL)
 
bool installForAllUsers (bool &bInstallForAll)
 

Private Member Functions

bool removeExtensionWarn (const OUString &rExtensionTitle)
 
 DECL_LINK (HandleOptionsBtn, weld::Button &, void)
 
 DECL_LINK (HandleAddBtn, weld::Button &, void)
 
 DECL_LINK (HandleRemoveBtn, weld::Button &, void)
 
 DECL_LINK (HandleEnableBtn, weld::Button &, void)
 
 DECL_LINK (HandleUpdateBtn, weld::Button &, void)
 
 DECL_LINK (HandleCancelBtn, weld::Button &, void)
 
 DECL_LINK (HandleCloseBtn, weld::Button &, void)
 
 DECL_LINK (HandleExtTypeCbx, weld::Button &, void)
 
 DECL_LINK (TimeOutHdl, Timer *, void)
 
 DECL_LINK (startProgress, void *, void)
 

Private Attributes

const OUString m_sAddPackages
 
OUString m_sProgressText
 
OUString m_sLastFolderURL
 
::osl::Mutex m_aMutex
 
bool m_bHasProgress
 
bool m_bProgressChanged
 
bool m_bStartProgress
 
bool m_bStopProgress
 
bool m_bEnableWarning
 
bool m_bDisableWarning
 
bool m_bDeleteWarning
 
bool m_bClosed
 
long m_nProgress
 
Idle m_aIdle
 
TheExtensionManagerm_pManager
 
css::uno::Reference< css::task::XAbortChannel > m_xAbortChannel
 
std::unique_ptr< ExtBoxWithBtns_Implm_xExtensionBox
 
std::unique_ptr< weld::CustomWeldm_xExtensionBoxWnd
 
std::unique_ptr< weld::Buttonm_xOptionsBtn
 
std::unique_ptr< weld::Buttonm_xAddBtn
 
std::unique_ptr< weld::Buttonm_xRemoveBtn
 
std::unique_ptr< weld::Buttonm_xEnableBtn
 
std::unique_ptr< weld::Buttonm_xUpdateBtn
 
std::unique_ptr< weld::Buttonm_xCloseBtn
 
std::unique_ptr< weld::CheckButtonm_xBundledCbx
 
std::unique_ptr< weld::CheckButtonm_xSharedCbx
 
std::unique_ptr< weld::CheckButtonm_xUserCbx
 
std::unique_ptr< weld::LinkButtonm_xGetExtensions
 
std::unique_ptr< weld::Labelm_xProgressText
 
std::unique_ptr< weld::ProgressBarm_xProgressBar
 
std::unique_ptr< weld::Buttonm_xCancelBtn
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 
- Static Public Member Functions inherited from dp_gui::DialogHelper
static bool IsSharedPkgMgr (const css::uno::Reference< css::deployment::XPackage > &)
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 98 of file dp_gui_dialog2.hxx.

Constructor & Destructor Documentation

dp_gui::ExtMgrDialog::ExtMgrDialog ( weld::Window pParent,
TheExtensionManager pManager 
)
dp_gui::ExtMgrDialog::~ExtMgrDialog ( )
overridevirtual

Definition at line 502 of file dp_gui_dialog2.cxx.

References m_aIdle, and Task::Stop().

Member Function Documentation

bool dp_gui::ExtMgrDialog::acceptLicense ( const css::uno::Reference< css::deployment::XPackage > &  xPackage)
void dp_gui::ExtMgrDialog::addPackageToList ( const css::uno::Reference< css::deployment::XPackage > &  ,
bool  bLicenseMissing = false 
)
overridevirtual
void dp_gui::ExtMgrDialog::checkEntries ( )
overridevirtual

Implements dp_gui::DialogHelper.

Definition at line 537 of file dp_gui_dialog2.cxx.

References m_xExtensionBox.

void dp_gui::ExtMgrDialog::Close ( )
dp_gui::ExtMgrDialog::DECL_LINK ( HandleOptionsBtn  ,
weld::Button ,
void   
)
private
dp_gui::ExtMgrDialog::DECL_LINK ( HandleAddBtn  ,
weld::Button ,
void   
)
private
dp_gui::ExtMgrDialog::DECL_LINK ( HandleRemoveBtn  ,
weld::Button ,
void   
)
private
dp_gui::ExtMgrDialog::DECL_LINK ( HandleEnableBtn  ,
weld::Button ,
void   
)
private
dp_gui::ExtMgrDialog::DECL_LINK ( HandleUpdateBtn  ,
weld::Button ,
void   
)
private
dp_gui::ExtMgrDialog::DECL_LINK ( HandleCancelBtn  ,
weld::Button ,
void   
)
private
dp_gui::ExtMgrDialog::DECL_LINK ( HandleCloseBtn  ,
weld::Button ,
void   
)
private
dp_gui::ExtMgrDialog::DECL_LINK ( HandleExtTypeCbx  ,
weld::Button ,
void   
)
private
dp_gui::ExtMgrDialog::DECL_LINK ( TimeOutHdl  ,
Timer ,
void   
)
private
dp_gui::ExtMgrDialog::DECL_LINK ( startProgress  ,
void ,
void   
)
private
void dp_gui::ExtMgrDialog::enableButtontoEnable ( bool  bEnable)
void dp_gui::ExtMgrDialog::enableEnableButton ( bool  bEnable)
void dp_gui::ExtMgrDialog::enableOptionsButton ( bool  bEnable)
void dp_gui::ExtMgrDialog::enablePackage ( const css::uno::Reference< css::deployment::XPackage > &  xPackage,
bool  bEnable 
)
void dp_gui::ExtMgrDialog::enableRemoveButton ( bool  bEnable)
TheExtensionManager* dp_gui::ExtMgrDialog::getExtensionManager ( ) const
inline

Definition at line 170 of file dp_gui_dialog2.hxx.

References m_pManager.

Referenced by dp_gui::ExtBoxWithBtns_Impl::InitFromDialog().

void dp_gui::ExtMgrDialog::prepareChecking ( )
overridevirtual

Implements dp_gui::DialogHelper.

Definition at line 532 of file dp_gui_dialog2.cxx.

References m_xExtensionBox.

uno::Sequence< OUString > dp_gui::ExtMgrDialog::raiseAddPicker ( )
bool dp_gui::ExtMgrDialog::removeExtensionWarn ( const OUString &  rExtensionTitle)
private
void dp_gui::ExtMgrDialog::removePackage ( const css::uno::Reference< css::deployment::XPackage > &  xPackage)
void dp_gui::ExtMgrDialog::setGetExtensionsURL ( const OUString &  rURL)

Definition at line 507 of file dp_gui_dialog2.cxx.

References m_xGetExtensions.

void dp_gui::ExtMgrDialog::showProgress ( bool  bStart)
overridevirtual
void dp_gui::ExtMgrDialog::updatePackage ( const css::uno::Reference< css::deployment::XPackage > &  xPackage)
void dp_gui::ExtMgrDialog::updatePackageInfo ( const css::uno::Reference< css::deployment::XPackage > &  xPackage)
overridevirtual

Implements dp_gui::DialogHelper.

Definition at line 857 of file dp_gui_dialog2.cxx.

References m_xExtensionBox.

virtual void dp_gui::ExtMgrDialog::updateProgress ( const OUString &  rText,
const css::uno::Reference< css::task::XAbortChannel > &  xAbortChannel 
)
overridevirtual

Implements dp_gui::DialogHelper.

void dp_gui::ExtMgrDialog::updateProgress ( const long  nProgress)
overridevirtual

Implements dp_gui::DialogHelper.

Definition at line 834 of file dp_gui_dialog2.cxx.

References m_aIdle, m_aMutex, m_nProgress, and Idle::Start().

Member Data Documentation

Idle dp_gui::ExtMgrDialog::m_aIdle
private

Definition at line 114 of file dp_gui_dialog2.hxx.

Referenced by ExtMgrDialog(), showProgress(), updateProgress(), and ~ExtMgrDialog().

::osl::Mutex dp_gui::ExtMgrDialog::m_aMutex
private

Definition at line 104 of file dp_gui_dialog2.hxx.

Referenced by showProgress(), and updateProgress().

bool dp_gui::ExtMgrDialog::m_bClosed
private

Definition at line 112 of file dp_gui_dialog2.hxx.

Referenced by Close().

bool dp_gui::ExtMgrDialog::m_bDeleteWarning
private

Definition at line 111 of file dp_gui_dialog2.hxx.

Referenced by removePackage().

bool dp_gui::ExtMgrDialog::m_bDisableWarning
private

Definition at line 110 of file dp_gui_dialog2.hxx.

Referenced by enablePackage().

bool dp_gui::ExtMgrDialog::m_bEnableWarning
private

Definition at line 109 of file dp_gui_dialog2.hxx.

Referenced by enablePackage().

bool dp_gui::ExtMgrDialog::m_bHasProgress
private

Definition at line 105 of file dp_gui_dialog2.hxx.

bool dp_gui::ExtMgrDialog::m_bProgressChanged
private

Definition at line 106 of file dp_gui_dialog2.hxx.

bool dp_gui::ExtMgrDialog::m_bStartProgress
private

Definition at line 107 of file dp_gui_dialog2.hxx.

Referenced by showProgress().

bool dp_gui::ExtMgrDialog::m_bStopProgress
private

Definition at line 108 of file dp_gui_dialog2.hxx.

Referenced by showProgress().

long dp_gui::ExtMgrDialog::m_nProgress
private

Definition at line 113 of file dp_gui_dialog2.hxx.

Referenced by showProgress(), and updateProgress().

TheExtensionManager* dp_gui::ExtMgrDialog::m_pManager
private
const OUString dp_gui::ExtMgrDialog::m_sAddPackages
private

Definition at line 101 of file dp_gui_dialog2.hxx.

Referenced by raiseAddPicker().

OUString dp_gui::ExtMgrDialog::m_sLastFolderURL
private

Definition at line 103 of file dp_gui_dialog2.hxx.

Referenced by raiseAddPicker().

OUString dp_gui::ExtMgrDialog::m_sProgressText
private

Definition at line 102 of file dp_gui_dialog2.hxx.

css::uno::Reference< css::task::XAbortChannel > dp_gui::ExtMgrDialog::m_xAbortChannel
private

Definition at line 117 of file dp_gui_dialog2.hxx.

std::unique_ptr<weld::Button> dp_gui::ExtMgrDialog::m_xAddBtn
private

Definition at line 122 of file dp_gui_dialog2.hxx.

Referenced by ExtMgrDialog().

std::unique_ptr<weld::CheckButton> dp_gui::ExtMgrDialog::m_xBundledCbx
private

Definition at line 127 of file dp_gui_dialog2.hxx.

Referenced by addPackageToList(), and ExtMgrDialog().

std::unique_ptr<weld::Button> dp_gui::ExtMgrDialog::m_xCancelBtn
private

Definition at line 133 of file dp_gui_dialog2.hxx.

Referenced by ExtMgrDialog().

std::unique_ptr<weld::Button> dp_gui::ExtMgrDialog::m_xCloseBtn
private

Definition at line 126 of file dp_gui_dialog2.hxx.

Referenced by ExtMgrDialog().

std::unique_ptr<weld::Button> dp_gui::ExtMgrDialog::m_xEnableBtn
private

Definition at line 124 of file dp_gui_dialog2.hxx.

Referenced by enableButtontoEnable(), enableEnableButton(), and ExtMgrDialog().

std::unique_ptr<ExtBoxWithBtns_Impl> dp_gui::ExtMgrDialog::m_xExtensionBox
private
std::unique_ptr<weld::CustomWeld> dp_gui::ExtMgrDialog::m_xExtensionBoxWnd
private

Definition at line 120 of file dp_gui_dialog2.hxx.

std::unique_ptr<weld::LinkButton> dp_gui::ExtMgrDialog::m_xGetExtensions
private

Definition at line 130 of file dp_gui_dialog2.hxx.

Referenced by setGetExtensionsURL().

std::unique_ptr<weld::Button> dp_gui::ExtMgrDialog::m_xOptionsBtn
private

Definition at line 121 of file dp_gui_dialog2.hxx.

Referenced by enableOptionsButton(), and ExtMgrDialog().

std::unique_ptr<weld::ProgressBar> dp_gui::ExtMgrDialog::m_xProgressBar
private

Definition at line 132 of file dp_gui_dialog2.hxx.

Referenced by ExtMgrDialog().

std::unique_ptr<weld::Label> dp_gui::ExtMgrDialog::m_xProgressText
private

Definition at line 131 of file dp_gui_dialog2.hxx.

std::unique_ptr<weld::Button> dp_gui::ExtMgrDialog::m_xRemoveBtn
private

Definition at line 123 of file dp_gui_dialog2.hxx.

Referenced by enableRemoveButton(), and ExtMgrDialog().

std::unique_ptr<weld::CheckButton> dp_gui::ExtMgrDialog::m_xSharedCbx
private

Definition at line 128 of file dp_gui_dialog2.hxx.

Referenced by addPackageToList(), and ExtMgrDialog().

std::unique_ptr<weld::Button> dp_gui::ExtMgrDialog::m_xUpdateBtn
private

Definition at line 125 of file dp_gui_dialog2.hxx.

Referenced by addPackageToList(), and ExtMgrDialog().

std::unique_ptr<weld::CheckButton> dp_gui::ExtMgrDialog::m_xUserCbx
private

Definition at line 129 of file dp_gui_dialog2.hxx.

Referenced by addPackageToList(), and ExtMgrDialog().


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