LibreOffice Module desktop (master) 1
|
#include <dp_gui_theextmgr.hxx>
Public Member Functions | |
TheExtensionManager (css::uno::Reference< css::awt::XWindow > xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext) | |
virtual | ~TheExtensionManager () override |
void | createDialog (const bool bCreateUpdDlg) |
sal_Int16 | execute () |
bool | isModified () const |
void | clearModified () |
weld::Window * | getDialog () |
DialogHelper * | getDialogHelper () |
ExtensionCmdQueue * | getCmdQueue () const |
void | SetText (const OUString &rTitle) |
void | Show () |
void | ToTop () |
void | Close () |
bool | isVisible () |
void | checkUpdates () |
bool | installPackage (const OUString &rPackageURL, bool bWarnUser=false) |
void | createPackageList () |
void | terminateDialog () |
bool | supportsOptions (const css::uno::Reference< css::deployment::XPackage > &xPackage) const |
const css::uno::Reference< css::uno::XComponentContext > & | getContext () const |
const css::uno::Reference< css::deployment::XExtensionManager > & | getExtensionManager () const |
bool | isReadOnly (const css::uno::Reference< css::deployment::XPackage > &xPackage) const |
static ::rtl::Reference< TheExtensionManager > | get (css::uno::Reference< css::uno::XComponentContext > const &xContext, css::uno::Reference< css::awt::XWindow > const &xParent=nullptr, OUString const &view=OUString()) |
virtual void SAL_CALL | disposing (css::lang::EventObject const &evt) override |
virtual void SAL_CALL | queryTermination (css::lang::EventObject const &evt) override |
virtual void SAL_CALL | notifyTermination (css::lang::EventObject const &evt) override |
virtual void SAL_CALL | modified (css::lang::EventObject const &evt) override |
Static Public Member Functions | |
static PackageState | getPackageState (const css::uno::Reference< css::deployment::XPackage > &xPackage) |
Public Attributes | |
static ::rtl::Reference< TheExtensionManager > | s_ExtMgr |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
css::uno::Reference< css::frame::XDesktop2 > | m_xDesktop |
css::uno::Reference< css::deployment::XExtensionManager > | m_xExtensionManager |
css::uno::Reference< css::container::XNameAccess > | m_xNameAccessNodes |
css::uno::Reference< css::awt::XWindow > | m_xParent |
std::shared_ptr< ExtMgrDialog > | m_xExtMgrDialog |
std::unique_ptr< UpdateRequiredDialog > | m_xUpdReqDialog |
std::unique_ptr< ExtensionCmdQueue > | m_xExecuteCmdQueue |
OUString | m_sGetExtensionsURL |
bool | m_bModified |
bool | m_bExtMgrDialogExecuting |
Definition at line 41 of file dp_gui_theextmgr.hxx.
dp_gui::TheExtensionManager::TheExtensionManager | ( | css::uno::Reference< css::awt::XWindow > | xParent, |
const css::uno::Reference< css::uno::XComponentContext > & | xContext | ||
) |
Definition at line 57 of file dp_gui_theextmgr.cxx.
References args, dp_registry::backend::bundle::create(), comphelper::InitAnyPropertySequence(), m_sGetExtensionsURL, m_xDesktop, m_xExtensionManager, m_xNameAccessNodes, dp_misc::office_is_running(), value, and xContext.
Referenced by get().
|
overridevirtual |
Definition at line 103 of file dp_gui_theextmgr.cxx.
References m_bExtMgrDialogExecuting, m_xExtMgrDialog, m_xUpdReqDialog, and RET_CANCEL.
void dp_gui::TheExtensionManager::checkUpdates | ( | ) |
Definition at line 206 of file dp_gui_theextmgr.cxx.
References cppu::getCaughtException(), dp_misc::getExtensionWithHighestVersion(), i, m_xExecuteCmdQueue, and m_xExtensionManager.
|
inline |
Definition at line 70 of file dp_gui_theextmgr.hxx.
References m_bModified.
Referenced by queryTermination().
void dp_gui::TheExtensionManager::Close | ( | ) |
Definition at line 174 of file dp_gui_theextmgr.cxx.
References m_bExtMgrDialogExecuting, m_xExtMgrDialog, m_xUpdReqDialog, and RET_CANCEL.
void dp_gui::TheExtensionManager::createDialog | ( | const bool | bCreateUpdDlg | ) |
Definition at line 121 of file dp_gui_theextmgr.cxx.
References createPackageList(), Application::GetFrameWeld(), m_sGetExtensionsURL, m_xContext, m_xExecuteCmdQueue, m_xExtMgrDialog, m_xParent, and m_xUpdReqDialog.
Referenced by installPackage().
void dp_gui::TheExtensionManager::createPackageList | ( | ) |
Definition at line 290 of file dp_gui_theextmgr.cxx.
References dp_gui::DialogHelper::addPackageToList(), cppu::getCaughtException(), getDialogHelper(), getPackageState(), m_xExtensionManager, dp_gui::NOT_AVAILABLE, dp_gui::REGISTERED, and dp_gui::SHARED_PACKAGE_MANAGER.
Referenced by createDialog(), modified(), and dp_gui::ExtMgrDialog::updateList().
|
overridevirtual |
Definition at line 428 of file dp_gui_theextmgr.cxx.
References m_bExtMgrDialogExecuting, m_xDesktop, m_xExtMgrDialog, m_xUpdReqDialog, dp_misc::office_is_running(), RET_CANCEL, and s_ExtMgr.
Referenced by notifyTermination().
sal_Int16 dp_gui::TheExtensionManager::execute | ( | ) |
Definition at line 187 of file dp_gui_theextmgr.cxx.
References m_xUpdReqDialog.
rtl::Reference< TheExtensionManager > dp_gui::TheExtensionManager::get | ( | css::uno::Reference< css::uno::XComponentContext > const & | xContext, |
css::uno::Reference< css::awt::XWindow > const & | xParent = nullptr , |
||
OUString const & | view = OUString() |
||
) |
Definition at line 510 of file dp_gui_theextmgr.cxx.
References s_ExtMgr, TheExtensionManager(), and xContext.
Referenced by dp_gui::UpdateRequiredDialogService::execute().
|
inline |
Definition at line 86 of file dp_gui_theextmgr.hxx.
References m_xExecuteCmdQueue.
Referenced by dp_gui::ExtMgrDialog::acceptLicense(), dp_gui::UpdateRequiredDialog::disableAllEntries(), dp_gui::ExtMgrDialog::enablePackage(), dp_gui::ExtMgrDialog::removePackage(), and dp_gui::ExtMgrDialog::updatePackage().
|
inline |
Definition at line 104 of file dp_gui_theextmgr.hxx.
References m_xContext.
|
inline |
Definition at line 72 of file dp_gui_theextmgr.hxx.
References m_xExtMgrDialog, and m_xUpdReqDialog.
Referenced by isVisible(), SetText(), and ToTop().
|
inline |
Definition at line 80 of file dp_gui_theextmgr.hxx.
References m_xExtMgrDialog, and m_xUpdReqDialog.
Referenced by createPackageList(), installPackage(), modified(), and queryTermination().
|
inline |
Definition at line 105 of file dp_gui_theextmgr.hxx.
References m_xExtensionManager.
Referenced by dp_gui::ExtMgrDialog::raiseAddPicker(), and dp_gui::ExtMgrDialog::updatePackage().
|
static |
Definition at line 337 of file dp_gui_theextmgr.cxx.
References dp_gui::AMBIGUOUS, dp_gui::NOT_AVAILABLE, dp_gui::NOT_REGISTERED, option, dp_gui::REGISTERED, and TOOLS_WARN_EXCEPTION.
Referenced by dp_gui::ExtensionBox_Impl::addEntry(), createPackageList(), and dp_gui::ExtensionBox_Impl::updateEntry().
bool dp_gui::TheExtensionManager::installPackage | ( | const OUString & | rPackageURL, |
bool | bWarnUser = false |
||
) |
Definition at line 240 of file dp_gui_theextmgr.cxx.
References createDialog(), getDialogHelper(), dp_gui::DialogHelper::installForAllUsers(), m_xExecuteCmdQueue, m_xExtensionManager, dp_gui::SHARED_PACKAGE_MANAGER, and dp_gui::USER_PACKAGE_MANAGER.
|
inline |
Definition at line 69 of file dp_gui_theextmgr.hxx.
References m_bModified.
bool dp_gui::TheExtensionManager::isReadOnly | ( | const css::uno::Reference< css::deployment::XPackage > & | xPackage | ) | const |
Definition at line 364 of file dp_gui_theextmgr.cxx.
References m_xExtensionManager.
Referenced by dp_gui::ExtensionBox_Impl::addEntry(), and dp_gui::UpdateRequiredDialog::addPackageToList().
bool dp_gui::TheExtensionManager::isVisible | ( | ) |
Definition at line 200 of file dp_gui_theextmgr.cxx.
References weld::Widget::get_visible(), and getDialog().
|
overridevirtual |
Definition at line 498 of file dp_gui_theextmgr.cxx.
References dp_gui::DialogHelper::checkEntries(), createPackageList(), getDialogHelper(), m_bModified, and dp_gui::DialogHelper::prepareChecking().
|
overridevirtual |
Definition at line 492 of file dp_gui_theextmgr.cxx.
References disposing().
|
overridevirtual |
Definition at line 463 of file dp_gui_theextmgr.cxx.
References clearModified(), getDialogHelper(), dp_gui::DialogHelper::isBusy(), m_bExtMgrDialogExecuting, m_xExecuteCmdQueue, m_xExtMgrDialog, m_xUpdReqDialog, RET_CANCEL, and ToTop().
void dp_gui::TheExtensionManager::SetText | ( | const OUString & | rTitle | ) |
Definition at line 157 of file dp_gui_theextmgr.cxx.
References getDialog().
void dp_gui::TheExtensionManager::Show | ( | ) |
Definition at line 143 of file dp_gui_theextmgr.cxx.
References m_bExtMgrDialogExecuting, m_xExtMgrDialog, and weld::DialogController::runAsync().
bool dp_gui::TheExtensionManager::supportsOptions | ( | const css::uno::Reference< css::deployment::XPackage > & | xPackage | ) | const |
Definition at line 376 of file dp_gui_theextmgr.cxx.
References m_xNameAccessNodes, and sId.
Referenced by dp_gui::ExtensionBox_Impl::addEntry(), and dp_gui::ExtensionBox_Impl::updateEntry().
void dp_gui::TheExtensionManager::terminateDialog | ( | ) |
Definition at line 266 of file dp_gui_theextmgr.cxx.
References m_bExtMgrDialogExecuting, m_xExtMgrDialog, m_xUpdReqDialog, dp_misc::office_is_running(), Application::Quit(), and RET_CANCEL.
Referenced by dp_gui::ExtMgrDialog::Close().
void dp_gui::TheExtensionManager::ToTop | ( | ) |
Definition at line 166 of file dp_gui_theextmgr.cxx.
References getDialog().
Referenced by queryTermination().
|
private |
Definition at line 57 of file dp_gui_theextmgr.hxx.
Referenced by Close(), disposing(), queryTermination(), Show(), terminateDialog(), and ~TheExtensionManager().
|
private |
Definition at line 56 of file dp_gui_theextmgr.hxx.
Referenced by clearModified(), isModified(), and modified().
|
private |
Definition at line 55 of file dp_gui_theextmgr.hxx.
Referenced by createDialog(), and TheExtensionManager().
|
private |
Definition at line 46 of file dp_gui_theextmgr.hxx.
Referenced by createDialog(), and getContext().
|
private |
Definition at line 47 of file dp_gui_theextmgr.hxx.
Referenced by disposing(), and TheExtensionManager().
|
private |
Definition at line 53 of file dp_gui_theextmgr.hxx.
Referenced by checkUpdates(), createDialog(), getCmdQueue(), installPackage(), and queryTermination().
|
private |
Definition at line 48 of file dp_gui_theextmgr.hxx.
Referenced by checkUpdates(), createPackageList(), getExtensionManager(), installPackage(), isReadOnly(), and TheExtensionManager().
|
private |
Definition at line 51 of file dp_gui_theextmgr.hxx.
Referenced by Close(), createDialog(), disposing(), getDialog(), getDialogHelper(), queryTermination(), Show(), terminateDialog(), and ~TheExtensionManager().
|
private |
Definition at line 49 of file dp_gui_theextmgr.hxx.
Referenced by supportsOptions(), and TheExtensionManager().
|
private |
Definition at line 50 of file dp_gui_theextmgr.hxx.
Referenced by createDialog().
|
private |
Definition at line 52 of file dp_gui_theextmgr.hxx.
Referenced by Close(), createDialog(), disposing(), execute(), getDialog(), getDialogHelper(), queryTermination(), terminateDialog(), and ~TheExtensionManager().
rtl::Reference< TheExtensionManager > dp_gui::TheExtensionManager::s_ExtMgr |
Definition at line 60 of file dp_gui_theextmgr.hxx.
Referenced by disposing(), and get().