LibreOffice Module desktop (master) 1
|
#include <dp_gui_dialog2.hxx>
Public Member Functions | |
UpdateRequiredDialog (weld::Window *pParent, TheExtensionManager *pManager) | |
virtual | ~UpdateRequiredDialog () override |
virtual short | run () 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 |
virtual void | addPackageToList (const css::uno::Reference< css::deployment::XPackage > &, bool bLicenseMissing=false) override |
virtual void | prepareChecking () override |
virtual void | checkEntries () override |
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 | |
DECL_LINK (HandleUpdateBtn, weld::Button &, void) | |
DECL_LINK (HandleCloseBtn, weld::Button &, void) | |
DECL_LINK (HandleCancelBtn, weld::Button &, void) | |
DECL_LINK (TimeOutHdl, Timer *, void) | |
DECL_LINK (startProgress, void *, void) | |
bool | hasActiveEntries () |
void | disableAllEntries () |
Static Private Member Functions | |
static bool | isEnabled (const css::uno::Reference< css::deployment::XPackage > &xPackage) |
static bool | checkDependencies (const css::uno::Reference< css::deployment::XPackage > &xPackage) |
Private Attributes | |
const OUString | m_sCloseText |
OUString | m_sProgressText |
std::mutex | m_aMutex |
bool | m_bHasProgress |
bool | m_bProgressChanged |
bool | m_bStartProgress |
bool | m_bStopProgress |
bool | m_bHasLockedEntries |
tools::Long | m_nProgress |
Idle | m_aIdle |
TheExtensionManager * | m_pManager |
css::uno::Reference< css::task::XAbortChannel > | m_xAbortChannel |
std::unique_ptr< ExtensionBox_Impl > | m_xExtensionBox |
std::unique_ptr< weld::CustomWeld > | m_xExtensionBoxWnd |
std::unique_ptr< weld::Label > | m_xUpdateNeeded |
std::unique_ptr< weld::Button > | m_xUpdateBtn |
std::unique_ptr< weld::Button > | m_xCloseBtn |
std::unique_ptr< weld::Button > | m_xCancelBtn |
std::unique_ptr< weld::Label > | m_xProgressText |
std::unique_ptr< weld::ProgressBar > | m_xProgressBar |
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 182 of file dp_gui_dialog2.hxx.
dp_gui::UpdateRequiredDialog::UpdateRequiredDialog | ( | weld::Window * | pParent, |
TheExtensionManager * | pManager | ||
) |
Definition at line 987 of file dp_gui_dialog2.cxx.
References get(), utl::ConfigManager::getProductName(), LINK, m_aIdle, m_pManager, m_xCancelBtn, m_xCloseBtn, m_xDialog, m_xExtensionBox, m_xProgressBar, m_xUpdateBtn, m_xUpdateNeeded, Timer::SetInvokeHandler(), and Task::SetPriority().
|
overridevirtual |
Definition at line 1027 of file dp_gui_dialog2.cxx.
References m_aIdle, and Task::Stop().
|
overridevirtual |
Implements dp_gui::DialogHelper.
Definition at line 1032 of file dp_gui_dialog2.cxx.
References checkDependencies(), dp_gui::TheExtensionManager::isReadOnly(), m_bHasLockedEntries, m_pManager, m_xExtensionBox, and m_xUpdateBtn.
|
staticprivate |
Definition at line 1292 of file dp_gui_dialog2.cxx.
Referenced by addPackageToList(), hasActiveEntries(), and updatePackageInfo().
|
overridevirtual |
Implements dp_gui::DialogHelper.
Definition at line 1052 of file dp_gui_dialog2.cxx.
References hasActiveEntries(), m_sCloseText, m_xCloseBtn, and m_xExtensionBox.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 1324 of file dp_gui_dialog2.cxx.
References dp_gui::DialogHelper::decBusy(), dp_gui::ExtensionCmdQueue::enableExtension(), dp_gui::TheExtensionManager::getCmdQueue(), hasActiveEntries(), dp_gui::DialogHelper::incBusy(), m_aMutex, m_pManager, m_sCloseText, m_xCloseBtn, m_xExtensionBox, nCount, and nIndex.
|
private |
Definition at line 1303 of file dp_gui_dialog2.cxx.
References checkDependencies(), isEnabled(), m_aMutex, m_xExtensionBox, nCount, and nIndex.
Referenced by checkEntries(), disableAllEntries(), and updatePackageInfo().
|
staticprivate |
Definition at line 1265 of file dp_gui_dialog2.cxx.
References option, and TOOLS_WARN_EXCEPTION.
Referenced by hasActiveEntries(), and updatePackageInfo().
|
overridevirtual |
Implements dp_gui::DialogHelper.
Definition at line 1046 of file dp_gui_dialog2.cxx.
References m_xExtensionBox.
|
overridevirtual |
Reimplemented from weld::DialogController.
Definition at line 1242 of file dp_gui_dialog2.cxx.
References DpResId(), m_bHasLockedEntries, m_xCloseBtn, m_xExtensionBox, m_xUpdateBtn, and m_xUpdateNeeded.
|
overridevirtual |
Implements dp_gui::DialogHelper.
Definition at line 1107 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().
|
overridevirtual |
Implements dp_gui::DialogHelper.
Definition at line 1154 of file dp_gui_dialog2.cxx.
References checkDependencies(), hasActiveEntries(), isEnabled(), m_sCloseText, m_xCloseBtn, and m_xExtensionBox.
|
overridevirtual |
Implements dp_gui::DialogHelper.
|
overridevirtual |
Implements dp_gui::DialogHelper.
Definition at line 1131 of file dp_gui_dialog2.cxx.
References m_aIdle, m_aMutex, m_nProgress, and Idle::Start().
|
private |
Definition at line 194 of file dp_gui_dialog2.hxx.
Referenced by showProgress(), updateProgress(), UpdateRequiredDialog(), and ~UpdateRequiredDialog().
|
private |
Definition at line 187 of file dp_gui_dialog2.hxx.
Referenced by disableAllEntries(), hasActiveEntries(), showProgress(), and updateProgress().
|
private |
Definition at line 192 of file dp_gui_dialog2.hxx.
Referenced by addPackageToList(), and run().
|
private |
Definition at line 188 of file dp_gui_dialog2.hxx.
|
private |
Definition at line 189 of file dp_gui_dialog2.hxx.
|
private |
Definition at line 190 of file dp_gui_dialog2.hxx.
Referenced by showProgress().
|
private |
Definition at line 191 of file dp_gui_dialog2.hxx.
Referenced by showProgress().
|
private |
Definition at line 193 of file dp_gui_dialog2.hxx.
Referenced by showProgress(), and updateProgress().
|
private |
Definition at line 195 of file dp_gui_dialog2.hxx.
Referenced by addPackageToList(), and disableAllEntries().
|
private |
Definition at line 185 of file dp_gui_dialog2.hxx.
Referenced by checkEntries(), disableAllEntries(), and updatePackageInfo().
|
private |
Definition at line 186 of file dp_gui_dialog2.hxx.
|
private |
Definition at line 197 of file dp_gui_dialog2.hxx.
|
private |
Definition at line 204 of file dp_gui_dialog2.hxx.
Referenced by UpdateRequiredDialog().
|
private |
Definition at line 203 of file dp_gui_dialog2.hxx.
Referenced by checkEntries(), disableAllEntries(), run(), updatePackageInfo(), and UpdateRequiredDialog().
|
private |
Definition at line 199 of file dp_gui_dialog2.hxx.
Referenced by addPackageToList(), checkEntries(), disableAllEntries(), hasActiveEntries(), prepareChecking(), run(), updatePackageInfo(), and UpdateRequiredDialog().
|
private |
Definition at line 200 of file dp_gui_dialog2.hxx.
|
private |
Definition at line 206 of file dp_gui_dialog2.hxx.
Referenced by UpdateRequiredDialog().
|
private |
Definition at line 205 of file dp_gui_dialog2.hxx.
|
private |
Definition at line 202 of file dp_gui_dialog2.hxx.
Referenced by addPackageToList(), run(), and UpdateRequiredDialog().
|
private |
Definition at line 201 of file dp_gui_dialog2.hxx.
Referenced by run(), and UpdateRequiredDialog().