Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
0110ce98
Kaydet (Commit)
0110ce98
authored
Eyl 17, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert Link<> to typed
Change-Id: I48bfd997279586adafe0773de7f4e42c7940257a
üst
8315c4fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
16 deletions
+12
-16
license_dialog.cxx
desktop/source/deployment/gui/license_dialog.cxx
+12
-16
No files found.
desktop/source/deployment/gui/license_dialog.cxx
Dosyayı görüntüle @
0110ce98
...
...
@@ -50,8 +50,8 @@ namespace dp_gui {
class
LicenseView
:
public
MultiLineEdit
,
public
SfxListener
{
bool
mbEndReached
;
Link
<
>
maEndReachedHdl
;
Link
<
>
maScrolledHdl
;
Link
<
LicenseView
&
,
void
>
maEndReachedHdl
;
Link
<
LicenseView
&
,
void
>
maScrolledHdl
;
public
:
LicenseView
(
vcl
::
Window
*
pParent
,
WinBits
nStyle
);
...
...
@@ -63,9 +63,9 @@ public:
bool
IsEndReached
()
const
;
bool
EndReached
()
const
{
return
mbEndReached
;
}
void
SetEndReachedHdl
(
const
Link
<>&
rHdl
)
{
maEndReachedHdl
=
rHdl
;
}
void
SetEndReachedHdl
(
const
Link
<
LicenseView
&
,
void
>&
rHdl
)
{
maEndReachedHdl
=
rHdl
;
}
void
SetScrolledHdl
(
const
Link
<>&
rHdl
)
{
maScrolledHdl
=
rHdl
;
}
void
SetScrolledHdl
(
const
Link
<
LicenseView
&
,
void
>&
rHdl
)
{
maScrolledHdl
=
rHdl
;
}
virtual
void
Notify
(
SfxBroadcaster
&
rBC
,
const
SfxHint
&
rHint
)
SAL_OVERRIDE
;
...
...
@@ -86,8 +86,8 @@ struct LicenseDialogImpl : public ModalDialog
VclPtr
<
PushButton
>
m_pDeclineButton
;
DECL_LINK_TYPED
(
PageDownHdl
,
Button
*
,
void
);
DECL_LINK
(
ScrolledHdl
,
void
*
);
DECL_LINK
(
EndReachedHdl
,
void
*
);
DECL_LINK
_TYPED
(
ScrolledHdl
,
LicenseView
&
,
void
);
DECL_LINK
_TYPED
(
EndReachedHdl
,
LicenseView
&
,
void
);
DECL_LINK_TYPED
(
CancelHdl
,
Button
*
,
void
);
DECL_LINK_TYPED
(
AcceptHdl
,
Button
*
,
void
);
...
...
@@ -142,8 +142,8 @@ LicenseView::~LicenseView()
void
LicenseView
::
dispose
()
{
maEndReachedHdl
=
Link
<>
();
maScrolledHdl
=
Link
<>
();
maEndReachedHdl
=
Link
<
LicenseView
&
,
void
>
();
maScrolledHdl
=
Link
<
LicenseView
&
,
void
>
();
EndListeningAll
();
MultiLineEdit
::
dispose
();
}
...
...
@@ -190,12 +190,12 @@ void LicenseView::Notify( SfxBroadcaster&, const SfxHint& rHint )
{
if
(
!
mbEndReached
)
mbEndReached
=
IsEndReached
();
maScrolledHdl
.
Call
(
this
);
maScrolledHdl
.
Call
(
*
this
);
}
if
(
EndReached
()
&&
!
bLastVal
)
{
maEndReachedHdl
.
Call
(
this
);
maEndReachedHdl
.
Call
(
*
this
);
}
}
}
...
...
@@ -271,15 +271,12 @@ void LicenseDialogImpl::Activate()
}
}
IMPL_LINK_NOARG
(
LicenseDialogImpl
,
ScrolledHdl
)
IMPL_LINK_NOARG
_TYPED
(
LicenseDialogImpl
,
ScrolledHdl
,
LicenseView
&
,
void
)
{
if
(
m_pLicense
->
IsEndReached
())
m_pDown
->
Disable
();
else
m_pDown
->
Enable
();
return
0
;
}
IMPL_LINK_NOARG_TYPED
(
LicenseDialogImpl
,
PageDownHdl
,
Button
*
,
void
)
...
...
@@ -287,14 +284,13 @@ IMPL_LINK_NOARG_TYPED(LicenseDialogImpl, PageDownHdl, Button*, void)
m_pLicense
->
ScrollDown
(
SCROLL_PAGEDOWN
);
}
IMPL_LINK_NOARG
(
LicenseDialogImpl
,
EndReachedHdl
)
IMPL_LINK_NOARG
_TYPED
(
LicenseDialogImpl
,
EndReachedHdl
,
LicenseView
&
,
void
)
{
m_pAcceptButton
->
Enable
();
m_pAcceptButton
->
GrabFocus
();
m_pArrow1
->
Show
(
false
);
m_pArrow2
->
Show
(
true
);
m_bLicenseRead
=
true
;
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment