28 #include <osl/mutex.hxx>
30 #include <rtl/ustring.hxx>
34 #include <com/sun/star/deployment/XPackage.hpp>
35 #include <com/sun/star/uno/XComponentContext.hpp>
36 #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
37 #include <com/sun/star/lang/XServiceInfo.hpp>
42 class ExtBoxWithBtns_Impl;
43 class ExtensionBox_Impl;
44 class TheExtensionManager;
49 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
55 DialogHelper(
const css::uno::Reference< css::uno::XComponentContext > &,
66 const css::uno::Reference< css::task::XAbortChannel > &xAbortChannel) = 0;
69 virtual void updatePackageInfo(
const css::uno::Reference< css::deployment::XPackage > &xPackage ) = 0;
70 virtual void addPackageToList(
const css::uno::Reference< css::deployment::XPackage > &xPackage,
71 bool bLicenseMissing =
false ) = 0;
76 static bool IsSharedPkgMgr(
const css::uno::Reference< css::deployment::XPackage > &);
137 DECL_LINK( startProgress,
void *,
void );
145 const css::uno::Reference< css::task::XAbortChannel > &xAbortChannel)
override;
148 virtual void updatePackageInfo(
const css::uno::Reference< css::deployment::XPackage > &xPackage )
override;
151 virtual void addPackageToList(
const css::uno::Reference< css::deployment::XPackage > &,
152 bool bLicenseMissing =
false )
override;
153 void enablePackage(
const css::uno::Reference< css::deployment::XPackage > &xPackage,
155 void removePackage(
const css::uno::Reference< css::deployment::XPackage > &xPackage );
156 void updatePackage(
const css::uno::Reference< css::deployment::XPackage > &xPackage );
157 bool acceptLicense(
const css::uno::Reference< css::deployment::XPackage > &xPackage );
209 DECL_LINK( startProgress,
void *,
void );
211 static bool isEnabled(
const css::uno::Reference< css::deployment::XPackage > &xPackage );
212 static bool checkDependencies(
const css::uno::Reference< css::deployment::XPackage > &xPackage );
220 virtual short run()
override;
224 const css::uno::Reference< css::task::XAbortChannel > &xAbortChannel)
override;
227 virtual void updatePackageInfo(
const css::uno::Reference< css::deployment::XPackage > &xPackage )
override;
229 virtual void addPackageToList(
const css::uno::Reference< css::deployment::XPackage > &,
230 bool bLicenseMissing =
false )
override;
250 css::uno::Reference< css::uno::XComponentContext>
const & xComponentContext );
258 virtual void SAL_CALL
setTitle( OUString
const & title )
override;
259 virtual sal_Int16 SAL_CALL
execute()
override;
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void updateProgress(const OUString &rText, const css::uno::Reference< css::task::XAbortChannel > &xAbortChannel)=0
UpdateRequiredDialog(weld::Window *pParent, TheExtensionManager *pManager)
virtual void addPackageToList(const css::uno::Reference< css::deployment::XPackage > &, bool bLicenseMissing=false) override
virtual ~ShowLicenseDialog() override
void setGetExtensionsURL(const OUString &rURL)
css::uno::Sequence< OUString > raiseAddPicker()
static bool isEnabled(const css::uno::Reference< css::deployment::XPackage > &xPackage)
virtual short run() override
css::uno::Reference< css::task::XAbortChannel > m_xAbortChannel
TopLevelWindowLocker m_aBusy
virtual void prepareChecking() override
virtual ~UpdateRequiredDialog() override
std::unique_ptr< weld::CustomWeld > m_xExtensionBoxWnd
DialogHelper(const css::uno::Reference< css::uno::XComponentContext > &, weld::Window *pWindow)
virtual void updateProgress(const OUString &rText, const css::uno::Reference< css::task::XAbortChannel > &xAbortChannel) override
std::unique_ptr< weld::Button > m_xOptionsBtn
std::unique_ptr< weld::CheckButton > m_xSharedCbx
void PostUserEvent(const Link< void *, void > &rLink, void *pCaller)
virtual ~ExtMgrDialog() override
std::unique_ptr< weld::ProgressBar > m_xProgressBar
std::unique_ptr< weld::CheckButton > m_xUserCbx
std::unique_ptr< weld::Button > m_xUpdateBtn
virtual void addPackageToList(const css::uno::Reference< css::deployment::XPackage > &xPackage, bool bLicenseMissing=false)=0
std::unique_ptr< weld::LinkButton > m_xGetExtensions
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void checkEntries()=0
std::unique_ptr< weld::Button > m_xEnableBtn
ShowLicenseDialog(weld::Window *pParent, const css::uno::Reference< css::deployment::XPackage > &xPackage)
virtual void updatePackageInfo(const css::uno::Reference< css::deployment::XPackage > &xPackage) override
virtual void showProgress(bool bStart)=0
virtual void showProgress(bool bStart) override
virtual void prepareChecking()=0
std::unique_ptr< weld::Label > m_xUpdateNeeded
css::uno::Reference< css::uno::XComponentContext > m_xContext
void removePackage(const css::uno::Reference< css::deployment::XPackage > &xPackage)
void enablePackage(const css::uno::Reference< css::deployment::XPackage > &xPackage, bool bEnable)
css::uno::Reference< css::task::XAbortChannel > m_xAbortChannel
std::unique_ptr< weld::Button > m_xUpdateBtn
void enableOptionsButton(bool bEnable)
DECL_LINK(HandleOptionsBtn, weld::Button &, void)
virtual void updateProgress(const OUString &rText, const css::uno::Reference< css::task::XAbortChannel > &xAbortChannel) override
std::unique_ptr< weld::Button > m_xCloseBtn
std::unique_ptr< weld::ProgressBar > m_xProgressBar
DECL_LINK(HandleUpdateBtn, weld::Button &, void)
bool acceptLicense(const css::uno::Reference< css::deployment::XPackage > &xPackage)
std::unique_ptr< weld::Label > m_xProgressText
std::unique_ptr< weld::CustomWeld > m_xExtensionBoxWnd
std::unique_ptr< ExtensionBox_Impl > m_xExtensionBox
virtual void checkEntries() override
void openWebBrowser(const OUString &rURL, const OUString &rTitle)
void updatePackage(const css::uno::Reference< css::deployment::XPackage > &xPackage)
static bool checkDependencies(const css::uno::Reference< css::deployment::XPackage > &xPackage)
ExtMgrDialog(weld::Window *pParent, TheExtensionManager *pManager)
void enableEnableButton(bool bEnable)
virtual void updatePackageInfo(const css::uno::Reference< css::deployment::XPackage > &xPackage) override
OUString m_sLastFolderURL
std::unique_ptr< weld::Button > m_xAddBtn
virtual sal_Int16 SAL_CALL execute() override
bool removeExtensionWarn(std::u16string_view rExtensionTitle)
void enableButtontoEnable(bool bEnable)
bool installForAllUsers(bool &bInstallForAll)
TheExtensionManager * m_pManager
std::unique_ptr< weld::Button > m_xCancelBtn
std::unique_ptr< weld::Button > m_xCancelBtn
std::unique_ptr< weld::Button > m_xCloseBtn
TheExtensionManager * getExtensionManager() const
std::unique_ptr< ExtBoxWithBtns_Impl > m_xExtensionBox
TheExtensionManager * m_pManager
bool continueOnSharedExtension(const css::uno::Reference< css::deployment::XPackage > &, weld::Widget *pParent, const char *pResID, bool &bHadWarning)
weld::Window * getFrameWeld() const
std::unique_ptr< weld::Button > m_xRemoveBtn
const OUString m_sAddPackages
virtual void updatePackageInfo(const css::uno::Reference< css::deployment::XPackage > &xPackage)=0
std::unique_ptr< weld::Label > m_xProgressText
virtual void checkEntries() override
UpdateRequiredDialogService(css::uno::Sequence< css::uno::Any > const &args, css::uno::Reference< css::uno::XComponentContext > const &xComponentContext)
bool installExtensionWarn(std::u16string_view rExtensionURL)
css::uno::Reference< css::uno::XComponentContext > const m_xComponentContext
virtual OUString SAL_CALL getImplementationName() override
std::unique_ptr< weld::CheckButton > m_xBundledCbx
virtual void prepareChecking() override
std::unique_ptr< weld::TextView > m_xLicenseText
void enableRemoveButton(bool bEnable)
virtual void SAL_CALL setTitle(OUString const &title) override
void incBusy(const weld::Widget *pIgnore)
const OUString m_sCloseText
virtual void showProgress(bool bStart) override
static bool IsSharedPkgMgr(const css::uno::Reference< css::deployment::XPackage > &)
virtual void addPackageToList(const css::uno::Reference< css::deployment::XPackage > &, bool bLicenseMissing=false) override