68 std::u16string_view sExtensionName,
69 const OUString & sLicenseText);
71 bool IsEndReached()
const;
76LicenseDialogImpl::LicenseDialogImpl(
78 std::u16string_view sExtensionName,
79 const OUString & sLicenseText)
80 : GenericDialogController(pParent,
"desktop/ui/licensedialog.ui",
"LicenseDialog")
82 ,
m_aResized(
"desktop LicenseDialogImpl m_aResized")
83 ,
m_aRepeat(
"LicenseDialogImpl m_aRepeat")
84 ,
m_xFtHead(m_xBuilder->weld_label(
"head"))
85 ,
m_xArrow1(m_xBuilder->weld_widget(
"arrow1"))
86 ,
m_xArrow2(m_xBuilder->weld_widget(
"arrow2"))
87 ,
m_xLicense(m_xBuilder->weld_text_view(
"textview"))
88 ,
m_xDown(m_xBuilder->weld_button(
"down"))
95 m_xLicense->connect_size_allocate(
LINK(
this, LicenseDialogImpl, SizeAllocHdl));
105 m_xLicense->connect_vadjustment_changed(
LINK(
this, LicenseDialogImpl, ScrolledHdl));
106 m_xDown->connect_mouse_press(
LINK(
this, LicenseDialogImpl, MousePressHdl));
107 m_xDown->connect_mouse_release(
LINK(
this, LicenseDialogImpl, MouseReleaseHdl));
108 m_xDown->connect_key_press(
LINK(
this, LicenseDialogImpl, KeyInputHdl));
109 m_xDown->connect_key_release(
LINK(
this, LicenseDialogImpl, KeyReleaseHdl));
133bool LicenseDialogImpl::IsEndReached()
const
158void LicenseDialogImpl::PageDown()
201LicenseDialog::LicenseDialog( Sequence<Any>
const& args,
202 Reference<XComponentContext>
const& )
208OUString LicenseDialog::getImplementationName()
210 return "com.sun.star.comp.deployment.ui.LicenseDialog";
213sal_Bool LicenseDialog::supportsService(
const OUString& ServiceName )
218css::uno::Sequence< OUString > LicenseDialog::getSupportedServiceNames()
220 return {
"com.sun.star.deployment.ui.LicenseDialog" };
226void LicenseDialog::setTitle( OUString
const & )
230sal_Int16 LicenseDialog::execute()
233 std::bind(&LicenseDialog::solar_execute,
this));
236sal_Int16 LicenseDialog::solar_execute()
Reference< XExecutableDialog > m_xDialog
static weld::Window * GetFrameWeld(const css::uno::Reference< css::awt::XWindow > &rWindow)
static const AllSettings & GetSettings()
virtual void Start(bool bStartTimer=true) override
void SetPriority(TaskPriority ePriority)
void SetTimeout(sal_uInt64 nTimeoutMs)
void SetInvokeHandler(const Link< Timer *, void > &rLink)
virtual void Start(bool bStartTimer=true) override
sal_uInt16 GetCode() const
DECL_LINK(CheckNameHdl, SvxNameDialog &, bool)
std::optional< Reference< awt::XWindow > > m_parent
constexpr sal_uInt16 KEY_RETURN
constexpr sal_uInt16 KEY_SPACE
std::unique_ptr< weld::Button > m_xDeclineButton
std::unique_ptr< weld::Label > m_xFtHead
std::unique_ptr< weld::Button > m_xDown
std::unique_ptr< weld::Button > m_xAcceptButton
std::unique_ptr< weld::Widget > m_xArrow2
std::unique_ptr< weld::Widget > m_xArrow1
std::unique_ptr< weld::TextView > m_xLicense
#define LINK(Instance, Class, Member)
#define DECL_STATIC_LINK(Class, Member, ArgType, RetType)
void unwrapArgs(const css::uno::Sequence< css::uno::Any > &seq, Args &... args)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
IMPL_LINK(LicenseDialogImpl, KeyInputHdl, const KeyEvent &, rKEvt, bool)
IMPL_STATIC_LINK_NOARG(LicenseDialogImpl, KeyReleaseHdl, const KeyEvent &, bool)
IMPL_LINK_NOARG(LicenseDialogImpl, MouseReleaseHdl, const MouseEvent &, bool)
auto syncExecute(FuncT const &func) -> decltype(func())