30#include <rtl/ustring.hxx>
35#include <com/sun/star/deployment/XPackage.hpp>
36#include <com/sun/star/uno/XComponentContext.hpp>
37#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
38#include <com/sun/star/lang/XServiceInfo.hpp>
44class ExtBoxWithBtns_Impl;
45class ExtensionBox_Impl;
46class TheExtensionManager;
50 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
56 DialogHelper(
const css::uno::Reference< css::uno::XComponentContext > &,
67 const css::uno::Reference< css::task::XAbortChannel > &xAbortChannel) = 0;
70 virtual void updatePackageInfo(
const css::uno::Reference< css::deployment::XPackage > &xPackage ) = 0;
71 virtual void addPackageToList(
const css::uno::Reference< css::deployment::XPackage > &xPackage,
72 bool bLicenseMissing =
false ) = 0;
77 static bool IsSharedPkgMgr(
const css::uno::Reference< css::deployment::XPackage > &);
147 const css::uno::Reference< css::task::XAbortChannel > &xAbortChannel)
override;
150 virtual void updatePackageInfo(
const css::uno::Reference< css::deployment::XPackage > &xPackage )
override;
153 virtual void addPackageToList(
const css::uno::Reference< css::deployment::XPackage > &,
154 bool bLicenseMissing =
false )
override;
155 void enablePackage(
const css::uno::Reference< css::deployment::XPackage > &xPackage,
157 void removePackage(
const css::uno::Reference< css::deployment::XPackage > &xPackage );
158 void updatePackage(
const css::uno::Reference< css::deployment::XPackage > &xPackage );
159 bool acceptLicense(
const css::uno::Reference< css::deployment::XPackage > &xPackage );
214 static bool isEnabled(
const css::uno::Reference< css::deployment::XPackage > &xPackage );
215 static bool checkDependencies(
const css::uno::Reference< css::deployment::XPackage > &xPackage );
223 virtual short run()
override;
227 const css::uno::Reference< css::task::XAbortChannel > &xAbortChannel)
override;
230 virtual void updatePackageInfo(
const css::uno::Reference< css::deployment::XPackage > &xPackage )
override;
232 virtual void addPackageToList(
const css::uno::Reference< css::deployment::XPackage > &,
233 bool bLicenseMissing =
false )
override;
253 css::uno::Reference< css::uno::XComponentContext> xComponentContext );
261 virtual void SAL_CALL
setTitle( OUString
const & title )
override;
262 virtual sal_Int16 SAL_CALL
execute()
override;
void incBusy(const weld::Widget *pIgnore)
bool installForAllUsers(bool &bInstallForAll)
void openWebBrowser(const OUString &rURL, const OUString &rTitle)
bool continueOnSharedExtension(const css::uno::Reference< css::deployment::XPackage > &, weld::Widget *pParent, TranslateId pResID, bool &bHadWarning)
virtual void updateProgress(const OUString &rText, const css::uno::Reference< css::task::XAbortChannel > &xAbortChannel)=0
TopLevelWindowLocker m_aBusy
css::uno::Reference< css::uno::XComponentContext > m_xContext
weld::Window * getFrameWeld() const
virtual void updatePackageInfo(const css::uno::Reference< css::deployment::XPackage > &xPackage)=0
virtual void showProgress(bool bStart)=0
virtual void addPackageToList(const css::uno::Reference< css::deployment::XPackage > &xPackage, bool bLicenseMissing=false)=0
virtual void prepareChecking()=0
bool installExtensionWarn(std::u16string_view rExtensionURL)
virtual void updateProgress(const tools::Long nProgress)=0
DialogHelper(const css::uno::Reference< css::uno::XComponentContext > &, weld::Window *pWindow)
void PostUserEvent(const Link< void *, void > &rLink, void *pCaller)
virtual void checkEntries()=0
static bool IsSharedPkgMgr(const css::uno::Reference< css::deployment::XPackage > &)
void enableButtontoEnable(bool bEnable)
css::uno::Reference< css::task::XAbortChannel > m_xAbortChannel
DECL_LINK(HandleAddBtn, weld::Button &, void)
std::unique_ptr< weld::Button > m_xRemoveBtn
DECL_LINK(HandleExtTypeCbx, weld::Toggleable &, void)
virtual void showProgress(bool bStart) override
DECL_LINK(HandleSearch, weld::Entry &, void)
TheExtensionManager * m_pManager
std::unique_ptr< weld::LinkButton > m_xGetExtensions
DECL_LINK(HandleRemoveBtn, weld::Button &, void)
std::unique_ptr< weld::Button > m_xCancelBtn
bool acceptLicense(const css::uno::Reference< css::deployment::XPackage > &xPackage)
virtual ~ExtMgrDialog() override
void removePackage(const css::uno::Reference< css::deployment::XPackage > &xPackage)
bool removeExtensionWarn(std::u16string_view rExtensionTitle)
const OUString m_sAddPackages
DECL_LINK(startProgress, void *, void)
std::unique_ptr< weld::Button > m_xCloseBtn
DECL_LINK(TimeOutHdl, Timer *, void)
std::unique_ptr< weld::Label > m_xProgressText
void updatePackage(const css::uno::Reference< css::deployment::XPackage > &xPackage)
DECL_LINK(HandleUpdateBtn, weld::Button &, void)
std::unique_ptr< weld::Button > m_xUpdateBtn
std::unique_ptr< weld::CustomWeld > m_xExtensionBoxWnd
virtual void prepareChecking() override
void enableEnableButton(bool bEnable)
DECL_LINK(HandleCloseBtn, weld::Button &, void)
DECL_LINK(HandleOptionsBtn, weld::Button &, void)
std::unique_ptr< weld::CheckButton > m_xBundledCbx
void enableRemoveButton(bool bEnable)
DECL_LINK(HandleEnableBtn, weld::Button &, void)
std::unique_ptr< weld::Button > m_xAddBtn
ExtMgrDialog(weld::Window *pParent, TheExtensionManager *pManager)
virtual void updatePackageInfo(const css::uno::Reference< css::deployment::XPackage > &xPackage) override
void enablePackage(const css::uno::Reference< css::deployment::XPackage > &xPackage, bool bEnable)
std::unique_ptr< weld::CheckButton > m_xSharedCbx
virtual void updateProgress(const OUString &rText, const css::uno::Reference< css::task::XAbortChannel > &xAbortChannel) override
std::unique_ptr< weld::CheckButton > m_xUserCbx
css::uno::Sequence< OUString > raiseAddPicker()
std::unique_ptr< weld::Button > m_xEnableBtn
TheExtensionManager * getExtensionManager() const
void enableOptionsButton(bool bEnable)
std::unique_ptr< weld::Entry > m_xSearchEntry
virtual void addPackageToList(const css::uno::Reference< css::deployment::XPackage > &, bool bLicenseMissing=false) override
void setGetExtensionsURL(const OUString &rURL)
std::unique_ptr< ExtBoxWithBtns_Impl > m_xExtensionBox
std::unique_ptr< weld::ProgressBar > m_xProgressBar
std::unique_ptr< weld::Button > m_xOptionsBtn
virtual void checkEntries() override
DECL_LINK(HandleCancelBtn, weld::Button &, void)
virtual ~ShowLicenseDialog() override
ShowLicenseDialog(weld::Window *pParent, const css::uno::Reference< css::deployment::XPackage > &xPackage)
std::unique_ptr< weld::TextView > m_xLicenseText
virtual void SAL_CALL setTitle(OUString const &title) override
css::uno::Reference< css::uno::XComponentContext > const m_xComponentContext
UpdateRequiredDialogService(css::uno::Sequence< css::uno::Any > const &args, css::uno::Reference< css::uno::XComponentContext > xComponentContext)
virtual sal_Int16 SAL_CALL execute() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
static bool isEnabled(const css::uno::Reference< css::deployment::XPackage > &xPackage)
std::unique_ptr< ExtensionBox_Impl > m_xExtensionBox
virtual void checkEntries() override
std::unique_ptr< weld::Button > m_xUpdateBtn
std::unique_ptr< weld::ProgressBar > m_xProgressBar
DECL_LINK(startProgress, void *, void)
virtual void updatePackageInfo(const css::uno::Reference< css::deployment::XPackage > &xPackage) override
static bool checkDependencies(const css::uno::Reference< css::deployment::XPackage > &xPackage)
virtual void showProgress(bool bStart) override
virtual ~UpdateRequiredDialog() override
TheExtensionManager * m_pManager
std::unique_ptr< weld::Label > m_xUpdateNeeded
DECL_LINK(HandleCloseBtn, weld::Button &, void)
std::unique_ptr< weld::Label > m_xProgressText
virtual void updateProgress(const OUString &rText, const css::uno::Reference< css::task::XAbortChannel > &xAbortChannel) override
DECL_LINK(HandleUpdateBtn, weld::Button &, void)
std::unique_ptr< weld::Button > m_xCloseBtn
std::unique_ptr< weld::Button > m_xCancelBtn
css::uno::Reference< css::task::XAbortChannel > m_xAbortChannel
const OUString m_sCloseText
DECL_LINK(TimeOutHdl, Timer *, void)
std::unique_ptr< weld::CustomWeld > m_xExtensionBoxWnd
virtual void prepareChecking() override
UpdateRequiredDialog(weld::Window *pParent, TheExtensionManager *pManager)
DECL_LINK(HandleCancelBtn, weld::Button &, void)
virtual short run() override
virtual void addPackageToList(const css::uno::Reference< css::deployment::XPackage > &, bool bLicenseMissing=false) override