24#include <com/sun/star/container/XNameAccess.hpp>
25#include <com/sun/star/deployment/XExtensionManager.hpp>
26#include <com/sun/star/frame/XDesktop2.hpp>
27#include <com/sun/star/frame/XTerminateListener.hpp>
28#include <com/sun/star/uno/XComponentContext.hpp>
29#include <com/sun/star/util/XModifyListener.hpp>
38class ExtensionCmdQueue;
42 public ::cppu::WeakImplHelper< css::frame::XTerminateListener,
43 css::util::XModifyListener >
46 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
60 static ::rtl::Reference<TheExtensionManager>
s_ExtMgr;
63 const css::uno::Reference< css::uno::XComponentContext > &
xContext );
88 void SetText(
const OUString &rTitle );
96 bool installPackage(
const OUString &rPackageURL,
bool bWarnUser =
false );
102 bool supportsOptions(
const css::uno::Reference< css::deployment::XPackage > &xPackage )
const;
106 bool isReadOnly(
const css::uno::Reference< css::deployment::XPackage > &xPackage )
const;
109 static ::rtl::Reference<TheExtensionManager>
get(
110 css::uno::Reference< css::uno::XComponentContext>
const &
xContext,
111 css::uno::Reference< css::awt::XWindow>
const & xParent =
nullptr,
112 OUString
const & view = OUString() );
115 virtual void SAL_CALL
disposing( css::lang::EventObject
const & evt )
override;
118 virtual void SAL_CALL
queryTermination( css::lang::EventObject
const & evt )
override;
119 virtual void SAL_CALL
notifyTermination( css::lang::EventObject
const & evt )
override;
122 virtual void SAL_CALL
modified( css::lang::EventObject
const & evt )
override;
Manages installing of extensions in the GUI mode.
css::uno::Reference< css::deployment::XExtensionManager > m_xExtensionManager
void SetText(const OUString &rTitle)
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())
ExtensionCmdQueue * getCmdQueue() const
css::uno::Reference< css::container::XNameAccess > m_xNameAccessNodes
bool installPackage(const OUString &rPackageURL, bool bWarnUser=false)
virtual void SAL_CALL notifyTermination(css::lang::EventObject const &evt) override
std::shared_ptr< ExtMgrDialog > m_xExtMgrDialog
const css::uno::Reference< css::deployment::XExtensionManager > & getExtensionManager() const
static PackageState getPackageState(const css::uno::Reference< css::deployment::XPackage > &xPackage)
css::uno::Reference< css::awt::XWindow > m_xParent
static ::rtl::Reference< TheExtensionManager > s_ExtMgr
const css::uno::Reference< css::uno::XComponentContext > & getContext() const
virtual void SAL_CALL queryTermination(css::lang::EventObject const &evt) override
std::unique_ptr< ExtensionCmdQueue > m_xExecuteCmdQueue
DialogHelper * getDialogHelper()
css::uno::Reference< css::uno::XComponentContext > m_xContext
bool isReadOnly(const css::uno::Reference< css::deployment::XPackage > &xPackage) const
std::unique_ptr< UpdateRequiredDialog > m_xUpdReqDialog
TheExtensionManager(css::uno::Reference< css::awt::XWindow > xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext)
virtual void SAL_CALL disposing(css::lang::EventObject const &evt) override
weld::Window * getDialog()
bool supportsOptions(const css::uno::Reference< css::deployment::XPackage > &xPackage) const
virtual ~TheExtensionManager() override
void createDialog(const bool bCreateUpdDlg)
bool m_bExtMgrDialogExecuting
OUString m_sGetExtensionsURL
virtual void SAL_CALL modified(css::lang::EventObject const &evt) override
css::uno::Reference< css::frame::XDesktop2 > m_xDesktop
static uno::Reference< css::uno::XComponentContext > xContext