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 tools::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
 
void updateList ()
 
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 OUString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OUString &rHelpId)
 
OUString 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 ()
 
virtual void showProgress (bool bStart)=0
 
virtual void updateProgress (const OUString &rText, const css::uno::Reference< css::task::XAbortChannel > &xAbortChannel)=0
 
virtual void updateProgress (const tools::Long nProgress)=0
 
virtual void updatePackageInfo (const css::uno::Reference< css::deployment::XPackage > &xPackage)=0
 
virtual void addPackageToList (const css::uno::Reference< css::deployment::XPackage > &xPackage, bool bLicenseMissing=false)=0
 
virtual void prepareChecking ()=0
 
virtual void checkEntries ()=0
 
bool continueOnSharedExtension (const css::uno::Reference< css::deployment::XPackage > &, weld::Widget *pParent, TranslateId pResID, bool &bHadWarning)
 
void incBusy ()
 
void decBusy ()
 
bool isBusy () const
 
bool installExtensionWarn (std::u16string_view rExtensionURL)
 
bool installForAllUsers (bool &bInstallForAll)
 

Private Member Functions

bool removeExtensionWarn (std::u16string_view 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::Toggleable &, void)
 
 DECL_LINK (HandleSearch, weld::Entry &, void)
 
 DECL_LINK (TimeOutHdl, Timer *, void)
 
 DECL_LINK (startProgress, void *, void)
 

Private Attributes

const OUString m_sAddPackages
 
OUString m_sProgressText
 
std::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
 
tools::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
 
std::unique_ptr< weld::Entrym_xSearchEntry
 

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 90 of file dp_gui_dialog2.hxx.

Constructor & Destructor Documentation

◆ ExtMgrDialog()

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

◆ ~ExtMgrDialog()

dp_gui::ExtMgrDialog::~ExtMgrDialog ( )
overridevirtual

Definition at line 488 of file dp_gui_dialog2.cxx.

References m_aIdle, and Task::Stop().

Member Function Documentation

◆ acceptLicense()

bool dp_gui::ExtMgrDialog::acceptLicense ( const css::uno::Reference< css::deployment::XPackage > &  xPackage)

◆ addPackageToList()

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

◆ checkEntries()

void dp_gui::ExtMgrDialog::checkEntries ( )
overridevirtual

Implements dp_gui::DialogHelper.

Definition at line 543 of file dp_gui_dialog2.cxx.

References m_xExtensionBox.

Referenced by updateList().

◆ Close()

void dp_gui::ExtMgrDialog::Close ( )

◆ DECL_LINK() [1/11]

dp_gui::ExtMgrDialog::DECL_LINK ( HandleAddBtn  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/11]

dp_gui::ExtMgrDialog::DECL_LINK ( HandleCancelBtn  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [3/11]

dp_gui::ExtMgrDialog::DECL_LINK ( HandleCloseBtn  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [4/11]

dp_gui::ExtMgrDialog::DECL_LINK ( HandleEnableBtn  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [5/11]

dp_gui::ExtMgrDialog::DECL_LINK ( HandleExtTypeCbx  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [6/11]

dp_gui::ExtMgrDialog::DECL_LINK ( HandleOptionsBtn  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [7/11]

dp_gui::ExtMgrDialog::DECL_LINK ( HandleRemoveBtn  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [8/11]

dp_gui::ExtMgrDialog::DECL_LINK ( HandleSearch  ,
weld::Entry ,
void   
)
private

◆ DECL_LINK() [9/11]

dp_gui::ExtMgrDialog::DECL_LINK ( HandleUpdateBtn  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [10/11]

dp_gui::ExtMgrDialog::DECL_LINK ( startProgress  ,
void *  ,
void   
)
private

◆ DECL_LINK() [11/11]

dp_gui::ExtMgrDialog::DECL_LINK ( TimeOutHdl  ,
Timer ,
void   
)
private

◆ enableButtontoEnable()

void dp_gui::ExtMgrDialog::enableButtontoEnable ( bool  bEnable)

◆ enableEnableButton()

void dp_gui::ExtMgrDialog::enableEnableButton ( bool  bEnable)

◆ enableOptionsButton()

void dp_gui::ExtMgrDialog::enableOptionsButton ( bool  bEnable)

◆ enablePackage()

void dp_gui::ExtMgrDialog::enablePackage ( const css::uno::Reference< css::deployment::XPackage > &  xPackage,
bool  bEnable 
)

◆ enableRemoveButton()

void dp_gui::ExtMgrDialog::enableRemoveButton ( bool  bEnable)

◆ getExtensionManager()

TheExtensionManager * dp_gui::ExtMgrDialog::getExtensionManager ( ) const
inline

Definition at line 163 of file dp_gui_dialog2.hxx.

References m_pManager.

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

◆ prepareChecking()

void dp_gui::ExtMgrDialog::prepareChecking ( )
overridevirtual

Implements dp_gui::DialogHelper.

Definition at line 538 of file dp_gui_dialog2.cxx.

References m_xExtensionBox.

Referenced by updateList().

◆ raiseAddPicker()

uno::Sequence< OUString > dp_gui::ExtMgrDialog::raiseAddPicker ( )

◆ removeExtensionWarn()

bool dp_gui::ExtMgrDialog::removeExtensionWarn ( std::u16string_view  rExtensionTitle)
private

◆ removePackage()

void dp_gui::ExtMgrDialog::removePackage ( const css::uno::Reference< css::deployment::XPackage > &  xPackage)

◆ setGetExtensionsURL()

void dp_gui::ExtMgrDialog::setGetExtensionsURL ( const OUString &  rURL)

Definition at line 493 of file dp_gui_dialog2.cxx.

References m_xGetExtensions.

◆ showProgress()

void dp_gui::ExtMgrDialog::showProgress ( bool  bStart)
overridevirtual

◆ updateList()

void dp_gui::ExtMgrDialog::updateList ( )

◆ updatePackage()

void dp_gui::ExtMgrDialog::updatePackage ( const css::uno::Reference< css::deployment::XPackage > &  xPackage)

◆ updatePackageInfo()

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

Implements dp_gui::DialogHelper.

Definition at line 864 of file dp_gui_dialog2.cxx.

References m_xExtensionBox.

◆ updateProgress() [1/2]

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

Implements dp_gui::DialogHelper.

◆ updateProgress() [2/2]

void dp_gui::ExtMgrDialog::updateProgress ( const tools::Long  nProgress)
overridevirtual

Implements dp_gui::DialogHelper.

Definition at line 841 of file dp_gui_dialog2.cxx.

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

Member Data Documentation

◆ m_aIdle

Idle dp_gui::ExtMgrDialog::m_aIdle
private

Definition at line 105 of file dp_gui_dialog2.hxx.

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

◆ m_aMutex

std::mutex dp_gui::ExtMgrDialog::m_aMutex
private

Definition at line 95 of file dp_gui_dialog2.hxx.

Referenced by showProgress(), and updateProgress().

◆ m_bClosed

bool dp_gui::ExtMgrDialog::m_bClosed
private

Definition at line 103 of file dp_gui_dialog2.hxx.

Referenced by Close().

◆ m_bDeleteWarning

bool dp_gui::ExtMgrDialog::m_bDeleteWarning
private

Definition at line 102 of file dp_gui_dialog2.hxx.

Referenced by removePackage().

◆ m_bDisableWarning

bool dp_gui::ExtMgrDialog::m_bDisableWarning
private

Definition at line 101 of file dp_gui_dialog2.hxx.

Referenced by enablePackage().

◆ m_bEnableWarning

bool dp_gui::ExtMgrDialog::m_bEnableWarning
private

Definition at line 100 of file dp_gui_dialog2.hxx.

Referenced by enablePackage().

◆ m_bHasProgress

bool dp_gui::ExtMgrDialog::m_bHasProgress
private

Definition at line 96 of file dp_gui_dialog2.hxx.

◆ m_bProgressChanged

bool dp_gui::ExtMgrDialog::m_bProgressChanged
private

Definition at line 97 of file dp_gui_dialog2.hxx.

◆ m_bStartProgress

bool dp_gui::ExtMgrDialog::m_bStartProgress
private

Definition at line 98 of file dp_gui_dialog2.hxx.

Referenced by showProgress().

◆ m_bStopProgress

bool dp_gui::ExtMgrDialog::m_bStopProgress
private

Definition at line 99 of file dp_gui_dialog2.hxx.

Referenced by showProgress().

◆ m_nProgress

tools::Long dp_gui::ExtMgrDialog::m_nProgress
private

Definition at line 104 of file dp_gui_dialog2.hxx.

Referenced by showProgress(), and updateProgress().

◆ m_pManager

TheExtensionManager* dp_gui::ExtMgrDialog::m_pManager
private

◆ m_sAddPackages

const OUString dp_gui::ExtMgrDialog::m_sAddPackages
private

Definition at line 93 of file dp_gui_dialog2.hxx.

Referenced by raiseAddPicker().

◆ m_sProgressText

OUString dp_gui::ExtMgrDialog::m_sProgressText
private

Definition at line 94 of file dp_gui_dialog2.hxx.

◆ m_xAbortChannel

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

Definition at line 108 of file dp_gui_dialog2.hxx.

◆ m_xAddBtn

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

Definition at line 113 of file dp_gui_dialog2.hxx.

Referenced by ExtMgrDialog().

◆ m_xBundledCbx

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

Definition at line 118 of file dp_gui_dialog2.hxx.

Referenced by addPackageToList(), and ExtMgrDialog().

◆ m_xCancelBtn

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

Definition at line 124 of file dp_gui_dialog2.hxx.

Referenced by ExtMgrDialog().

◆ m_xCloseBtn

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

Definition at line 117 of file dp_gui_dialog2.hxx.

Referenced by ExtMgrDialog().

◆ m_xEnableBtn

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

Definition at line 115 of file dp_gui_dialog2.hxx.

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

◆ m_xExtensionBox

std::unique_ptr<ExtBoxWithBtns_Impl> dp_gui::ExtMgrDialog::m_xExtensionBox
private

◆ m_xExtensionBoxWnd

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

Definition at line 111 of file dp_gui_dialog2.hxx.

◆ m_xGetExtensions

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

Definition at line 121 of file dp_gui_dialog2.hxx.

Referenced by setGetExtensionsURL().

◆ m_xOptionsBtn

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

Definition at line 112 of file dp_gui_dialog2.hxx.

Referenced by enableOptionsButton(), and ExtMgrDialog().

◆ m_xProgressBar

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

Definition at line 123 of file dp_gui_dialog2.hxx.

Referenced by ExtMgrDialog().

◆ m_xProgressText

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

Definition at line 122 of file dp_gui_dialog2.hxx.

◆ m_xRemoveBtn

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

Definition at line 114 of file dp_gui_dialog2.hxx.

Referenced by enableRemoveButton(), and ExtMgrDialog().

◆ m_xSearchEntry

std::unique_ptr<weld::Entry> dp_gui::ExtMgrDialog::m_xSearchEntry
private

Definition at line 125 of file dp_gui_dialog2.hxx.

Referenced by addPackageToList(), and ExtMgrDialog().

◆ m_xSharedCbx

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

Definition at line 119 of file dp_gui_dialog2.hxx.

Referenced by addPackageToList(), and ExtMgrDialog().

◆ m_xUpdateBtn

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

Definition at line 116 of file dp_gui_dialog2.hxx.

Referenced by addPackageToList(), and ExtMgrDialog().

◆ m_xUserCbx

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

Definition at line 120 of file dp_gui_dialog2.hxx.

Referenced by addPackageToList(), and ExtMgrDialog().


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