LibreOffice Module desktop (master) 1
|
#include <dp_gui_dialog2.hxx>
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 () |
TheExtensionManager * | getExtensionManager () 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 Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () 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::Window * | getFrameWeld () 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) | |
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::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Definition at line 90 of file dp_gui_dialog2.hxx.
dp_gui::ExtMgrDialog::ExtMgrDialog | ( | weld::Window * | pParent, |
TheExtensionManager * | pManager | ||
) |
Definition at line 410 of file dp_gui_dialog2.cxx.
References DpResId(), get(), HID_EXTENSION_MANAGER_LISTBOX_ENABLE, LINK, m_aIdle, m_pManager, m_xAddBtn, m_xBundledCbx, m_xCancelBtn, m_xCloseBtn, m_xDialog, m_xEnableBtn, m_xExtensionBox, m_xOptionsBtn, m_xProgressBar, m_xRemoveBtn, m_xSearchEntry, m_xSharedCbx, m_xUpdateBtn, m_xUserCbx, Timer::SetInvokeHandler(), and Task::SetPriority().
|
overridevirtual |
Definition at line 488 of file dp_gui_dialog2.cxx.
References m_aIdle, and Task::Stop().
bool dp_gui::ExtMgrDialog::acceptLicense | ( | const css::uno::Reference< css::deployment::XPackage > & | xPackage | ) |
Definition at line 625 of file dp_gui_dialog2.cxx.
References dp_gui::ExtensionCmdQueue::acceptLicense(), dp_gui::TheExtensionManager::getCmdQueue(), and m_pManager.
|
overridevirtual |
Implements dp_gui::DialogHelper.
Definition at line 498 of file dp_gui_dialog2.cxx.
References dp_gui::BUNDLED_PACKAGE_MANAGER, m_xBundledCbx, m_xExtensionBox, m_xSearchEntry, m_xSharedCbx, m_xUpdateBtn, m_xUserCbx, dp_gui::SHARED_PACKAGE_MANAGER, and dp_gui::USER_PACKAGE_MANAGER.
|
overridevirtual |
Implements dp_gui::DialogHelper.
Definition at line 543 of file dp_gui_dialog2.cxx.
References m_xExtensionBox.
Referenced by updateList().
void dp_gui::ExtMgrDialog::Close | ( | ) |
Definition at line 980 of file dp_gui_dialog2.cxx.
References m_bClosed, m_pManager, and dp_gui::TheExtensionManager::terminateDialog().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
void dp_gui::ExtMgrDialog::enableButtontoEnable | ( | bool | bEnable | ) |
Definition at line 726 of file dp_gui_dialog2.cxx.
References DpResId(), HID_EXTENSION_MANAGER_LISTBOX_DISABLE, HID_EXTENSION_MANAGER_LISTBOX_ENABLE, and m_xEnableBtn.
Referenced by dp_gui::ExtBoxWithBtns_Impl::SetButtonStatus().
void dp_gui::ExtMgrDialog::enableEnableButton | ( | bool | bEnable | ) |
Definition at line 721 of file dp_gui_dialog2.cxx.
References m_xEnableBtn.
Referenced by dp_gui::ExtBoxWithBtns_Impl::enableButtons(), dp_gui::ExtBoxWithBtns_Impl::RecalcAll(), and dp_gui::ExtBoxWithBtns_Impl::SetButtonStatus().
void dp_gui::ExtMgrDialog::enableOptionsButton | ( | bool | bEnable | ) |
Definition at line 702 of file dp_gui_dialog2.cxx.
References m_xOptionsBtn.
Referenced by dp_gui::ExtBoxWithBtns_Impl::enableButtons(), dp_gui::ExtBoxWithBtns_Impl::RecalcAll(), and dp_gui::ExtBoxWithBtns_Impl::SetButtonStatus().
void dp_gui::ExtMgrDialog::enablePackage | ( | const css::uno::Reference< css::deployment::XPackage > & | xPackage, |
bool | bEnable | ||
) |
Definition at line 568 of file dp_gui_dialog2.cxx.
References dp_gui::DialogHelper::continueOnSharedExtension(), dp_gui::ExtensionCmdQueue::enableExtension(), dp_gui::TheExtensionManager::getCmdQueue(), m_bDisableWarning, m_bEnableWarning, m_pManager, and weld::GenericDialogController::m_xDialog.
Referenced by dp_gui::ExtBoxWithBtns_Impl::Command().
void dp_gui::ExtMgrDialog::enableRemoveButton | ( | bool | bEnable | ) |
Definition at line 707 of file dp_gui_dialog2.cxx.
References DpResId(), and m_xRemoveBtn.
Referenced by dp_gui::ExtBoxWithBtns_Impl::enableButtons(), dp_gui::ExtBoxWithBtns_Impl::RecalcAll(), and dp_gui::ExtBoxWithBtns_Impl::SetButtonStatus().
|
inline |
Definition at line 163 of file dp_gui_dialog2.hxx.
References m_pManager.
Referenced by dp_gui::ExtBoxWithBtns_Impl::InitFromDialog().
|
overridevirtual |
Implements dp_gui::DialogHelper.
Definition at line 538 of file dp_gui_dialog2.cxx.
References m_xExtensionBox.
Referenced by updateList().
uno::Sequence< OUString > dp_gui::ExtMgrDialog::raiseAddPicker | ( | ) |
Definition at line 636 of file dp_gui_dialog2.cxx.
References Translate::Create(), DpResId(), sfx2::FileDialogHelper::ExtensionManager, Translate::get(), dp_gui::TheExtensionManager::getExtensionManager(), sfx2::FileDialogHelper::GetFilePicker(), m_pManager, m_sAddPackages, weld::GenericDialogController::m_xDialog, sfx2::FileDialogHelper::SetContext(), and TOOLS_WARN_EXCEPTION.
|
private |
Definition at line 549 of file dp_gui_dialog2.cxx.
References Application::CreateMessageDialog(), dp_gui::DialogHelper::decBusy(), DpResId(), dp_gui::DialogHelper::incBusy(), weld::GenericDialogController::m_xDialog, and RET_OK.
Referenced by removePackage().
void dp_gui::ExtMgrDialog::removePackage | ( | const css::uno::Reference< css::deployment::XPackage > & | xPackage | ) |
Definition at line 589 of file dp_gui_dialog2.cxx.
References dp_gui::DialogHelper::continueOnSharedExtension(), dp_gui::TheExtensionManager::getCmdQueue(), dp_gui::DialogHelper::IsSharedPkgMgr(), m_bDeleteWarning, m_pManager, weld::GenericDialogController::m_xDialog, dp_gui::ExtensionCmdQueue::removeExtension(), and removeExtensionWarn().
Referenced by dp_gui::ExtBoxWithBtns_Impl::Command().
void dp_gui::ExtMgrDialog::setGetExtensionsURL | ( | const OUString & | rURL | ) |
Definition at line 493 of file dp_gui_dialog2.cxx.
References m_xGetExtensions.
|
overridevirtual |
Implements dp_gui::DialogHelper.
Definition at line 817 of file dp_gui_dialog2.cxx.
References LINK, m_aIdle, m_aMutex, m_bStartProgress, m_bStopProgress, m_nProgress, dp_gui::DialogHelper::PostUserEvent(), SAL_INFO, and Idle::Start().
void dp_gui::ExtMgrDialog::updateList | ( | ) |
Definition at line 530 of file dp_gui_dialog2.cxx.
References checkEntries(), dp_gui::TheExtensionManager::createPackageList(), m_pManager, and prepareChecking().
void dp_gui::ExtMgrDialog::updatePackage | ( | const css::uno::Reference< css::deployment::XPackage > & | xPackage | ) |
Definition at line 607 of file dp_gui_dialog2.cxx.
References dp_gui::ExtensionCmdQueue::checkForUpdates(), dp_gui::TheExtensionManager::getCmdQueue(), dp_gui::TheExtensionManager::getExtensionManager(), dp_misc::getExtensionWithHighestVersion(), dp_misc::getIdentifier(), and m_pManager.
Referenced by dp_gui::ExtBoxWithBtns_Impl::Command().
|
overridevirtual |
Implements dp_gui::DialogHelper.
Definition at line 864 of file dp_gui_dialog2.cxx.
References m_xExtensionBox.
|
overridevirtual |
Implements dp_gui::DialogHelper.
|
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().
|
private |
Definition at line 105 of file dp_gui_dialog2.hxx.
Referenced by ExtMgrDialog(), showProgress(), updateProgress(), and ~ExtMgrDialog().
|
private |
Definition at line 95 of file dp_gui_dialog2.hxx.
Referenced by showProgress(), and updateProgress().
|
private |
Definition at line 103 of file dp_gui_dialog2.hxx.
Referenced by Close().
|
private |
Definition at line 102 of file dp_gui_dialog2.hxx.
Referenced by removePackage().
|
private |
Definition at line 101 of file dp_gui_dialog2.hxx.
Referenced by enablePackage().
|
private |
Definition at line 100 of file dp_gui_dialog2.hxx.
Referenced by enablePackage().
|
private |
Definition at line 96 of file dp_gui_dialog2.hxx.
|
private |
Definition at line 97 of file dp_gui_dialog2.hxx.
|
private |
Definition at line 98 of file dp_gui_dialog2.hxx.
Referenced by showProgress().
|
private |
Definition at line 99 of file dp_gui_dialog2.hxx.
Referenced by showProgress().
|
private |
Definition at line 104 of file dp_gui_dialog2.hxx.
Referenced by showProgress(), and updateProgress().
|
private |
Definition at line 106 of file dp_gui_dialog2.hxx.
Referenced by acceptLicense(), Close(), enablePackage(), getExtensionManager(), raiseAddPicker(), removePackage(), updateList(), and updatePackage().
|
private |
Definition at line 93 of file dp_gui_dialog2.hxx.
Referenced by raiseAddPicker().
|
private |
Definition at line 94 of file dp_gui_dialog2.hxx.
|
private |
Definition at line 108 of file dp_gui_dialog2.hxx.
|
private |
Definition at line 113 of file dp_gui_dialog2.hxx.
Referenced by ExtMgrDialog().
|
private |
Definition at line 118 of file dp_gui_dialog2.hxx.
Referenced by addPackageToList(), and ExtMgrDialog().
|
private |
Definition at line 124 of file dp_gui_dialog2.hxx.
Referenced by ExtMgrDialog().
|
private |
Definition at line 117 of file dp_gui_dialog2.hxx.
Referenced by ExtMgrDialog().
|
private |
Definition at line 115 of file dp_gui_dialog2.hxx.
Referenced by enableButtontoEnable(), enableEnableButton(), and ExtMgrDialog().
|
private |
Definition at line 110 of file dp_gui_dialog2.hxx.
Referenced by addPackageToList(), checkEntries(), ExtMgrDialog(), prepareChecking(), and updatePackageInfo().
|
private |
Definition at line 111 of file dp_gui_dialog2.hxx.
|
private |
Definition at line 121 of file dp_gui_dialog2.hxx.
Referenced by setGetExtensionsURL().
|
private |
Definition at line 112 of file dp_gui_dialog2.hxx.
Referenced by enableOptionsButton(), and ExtMgrDialog().
|
private |
Definition at line 123 of file dp_gui_dialog2.hxx.
Referenced by ExtMgrDialog().
|
private |
Definition at line 122 of file dp_gui_dialog2.hxx.
|
private |
Definition at line 114 of file dp_gui_dialog2.hxx.
Referenced by enableRemoveButton(), and ExtMgrDialog().
|
private |
Definition at line 125 of file dp_gui_dialog2.hxx.
Referenced by addPackageToList(), and ExtMgrDialog().
|
private |
Definition at line 119 of file dp_gui_dialog2.hxx.
Referenced by addPackageToList(), and ExtMgrDialog().
|
private |
Definition at line 116 of file dp_gui_dialog2.hxx.
Referenced by addPackageToList(), and ExtMgrDialog().
|
private |
Definition at line 120 of file dp_gui_dialog2.hxx.
Referenced by addPackageToList(), and ExtMgrDialog().