LibreOffice Module desktop (master)
1
|
#include <dp_gui_dialog2.hxx>
Public Member Functions | |
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, const char *pResID, bool &bHadWarning) |
void | incBusy () |
void | decBusy () |
bool | isBusy () const |
bool | installExtensionWarn (std::u16string_view rExtensionURL) |
bool | installForAllUsers (bool &bInstallForAll) |
Static Public Member Functions | |
static bool | IsSharedPkgMgr (const css::uno::Reference< css::deployment::XPackage > &) |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
weld::Window * | m_pWindow |
ImplSVEvent * | m_nEventID |
TopLevelWindowLocker | m_aBusy |
Definition at line 47 of file dp_gui_dialog2.hxx.
dp_gui::DialogHelper::DialogHelper | ( | const css::uno::Reference< css::uno::XComponentContext > & | , |
weld::Window * | pWindow | ||
) |
Definition at line 296 of file dp_gui_dialog2.cxx.
References m_xContext, and xContext.
|
virtual |
Definition at line 304 of file dp_gui_dialog2.cxx.
References m_nEventID, and Application::RemoveUserEvent().
|
pure virtual |
Implemented in dp_gui::UpdateRequiredDialog, and dp_gui::ExtMgrDialog.
Referenced by dp_gui::TheExtensionManager::createPackageList().
|
pure virtual |
Implemented in dp_gui::UpdateRequiredDialog, and dp_gui::ExtMgrDialog.
Referenced by dp_gui::TheExtensionManager::modified().
|
inline |
Definition at line 62 of file dp_gui_dialog2.hxx.
bool dp_gui::DialogHelper::continueOnSharedExtension | ( | const css::uno::Reference< css::deployment::XPackage > & | , |
weld::Widget * | pParent, | ||
const char * | pResID, | ||
bool & | bHadWarning | ||
) |
Definition at line 316 of file dp_gui_dialog2.cxx.
References Application::CreateMessageDialog(), decBusy(), DpResId(), incBusy(), IsSharedPkgMgr(), and RET_OK.
Referenced by dp_gui::ExtMgrDialog::enablePackage(), and dp_gui::ExtMgrDialog::removePackage().
|
inline |
Definition at line 83 of file dp_gui_dialog2.hxx.
References TopLevelWindowLocker::decBusy().
Referenced by dp_gui::ExtBoxWithBtns_Impl::Command(), continueOnSharedExtension(), dp_gui::UpdateRequiredDialog::disableAllEntries(), installExtensionWarn(), installForAllUsers(), openWebBrowser(), and dp_gui::ExtMgrDialog::removeExtensionWarn().
|
inline |
Definition at line 60 of file dp_gui_dialog2.hxx.
References m_pWindow.
Referenced by installExtensionWarn(), installForAllUsers(), and openWebBrowser().
|
inline |
Definition at line 82 of file dp_gui_dialog2.hxx.
References TopLevelWindowLocker::incBusy().
Referenced by dp_gui::ExtBoxWithBtns_Impl::Command(), continueOnSharedExtension(), dp_gui::UpdateRequiredDialog::disableAllEntries(), installExtensionWarn(), installForAllUsers(), openWebBrowser(), and dp_gui::ExtMgrDialog::removeExtensionWarn().
bool dp_gui::DialogHelper::installExtensionWarn | ( | std::u16string_view | rExtensionURL | ) |
Definition at line 365 of file dp_gui_dialog2.cxx.
References Application::CreateMessageDialog(), decBusy(), DpResId(), getFrameWeld(), incBusy(), and RET_OK.
bool dp_gui::DialogHelper::installForAllUsers | ( | bool & | bInstallForAll | ) |
Definition at line 397 of file dp_gui_dialog2.cxx.
References Application::CreateBuilder(), decBusy(), getFrameWeld(), incBusy(), RET_CANCEL, and RET_NO.
Referenced by dp_gui::TheExtensionManager::installPackage().
|
inline |
Definition at line 84 of file dp_gui_dialog2.hxx.
References TopLevelWindowLocker::isBusy().
Referenced by dp_gui::TheExtensionManager::queryTermination().
|
static |
Definition at line 311 of file dp_gui_dialog2.cxx.
References SHARED_PACKAGE_MANAGER.
Referenced by continueOnSharedExtension(), and dp_gui::ExtMgrDialog::removePackage().
void dp_gui::DialogHelper::openWebBrowser | ( | const OUString & | rURL, |
const OUString & | rTitle | ||
) |
Definition at line 338 of file dp_gui_dialog2.cxx.
References comphelper::anyToString(), dp_registry::backend::bundle::create(), Application::CreateMessageDialog(), decBusy(), cppu::getCaughtException(), getFrameWeld(), incBusy(), and m_xContext.
Definition at line 413 of file dp_gui_dialog2.cxx.
References m_nEventID, Application::PostUserEvent(), and Application::RemoveUserEvent().
Referenced by dp_gui::ExtMgrDialog::showProgress(), and dp_gui::UpdateRequiredDialog::showProgress().
|
pure virtual |
Implemented in dp_gui::UpdateRequiredDialog, and dp_gui::ExtMgrDialog.
Referenced by dp_gui::TheExtensionManager::modified().
|
pure virtual |
Implemented in dp_gui::UpdateRequiredDialog, and dp_gui::ExtMgrDialog.
|
pure virtual |
Implemented in dp_gui::UpdateRequiredDialog, and dp_gui::ExtMgrDialog.
|
pure virtual |
Implemented in dp_gui::UpdateRequiredDialog, and dp_gui::ExtMgrDialog.
|
pure virtual |
Implemented in dp_gui::UpdateRequiredDialog, and dp_gui::ExtMgrDialog.
|
private |
Definition at line 52 of file dp_gui_dialog2.hxx.
|
private |
Definition at line 51 of file dp_gui_dialog2.hxx.
Referenced by PostUserEvent(), and ~DialogHelper().
|
private |
Definition at line 50 of file dp_gui_dialog2.hxx.
Referenced by getFrameWeld().
|
private |
Definition at line 49 of file dp_gui_dialog2.hxx.
Referenced by DialogHelper(), and openWebBrowser().