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
516b5115
Kaydet (Commit)
516b5115
authored
Eki 20, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert Link<> to typed
Change-Id: I822561725683231709343b80d7065c905226ebc1
üst
798d7bc0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
indexfieldscontrol.cxx
dbaccess/source/ui/dlg/indexfieldscontrol.cxx
+8
-9
indexfieldscontrol.hxx
dbaccess/source/ui/inc/indexfieldscontrol.hxx
+4
-2
No files found.
dbaccess/source/ui/dlg/indexfieldscontrol.cxx
Dosyayı görüntüle @
516b5115
...
...
@@ -40,7 +40,7 @@ namespace dbaui
class
DbaMouseDownListBoxController
:
public
ListBoxCellController
{
protected
:
Link
<>
m_aAdditionalModifyHdl
;
Link
<
DbaMouseDownListBoxController
&
,
void
>
m_aAdditionalModifyHdl
;
public
:
explicit
DbaMouseDownListBoxController
(
ListBoxControl
*
_pParent
)
...
...
@@ -48,21 +48,21 @@ namespace dbaui
{
}
void
SetAdditionalModifyHdl
(
const
Link
<>&
_rHdl
);
void
SetAdditionalModifyHdl
(
const
Link
<
DbaMouseDownListBoxController
&
,
void
>&
_rHdl
);
protected
:
virtual
bool
WantMouseEvent
()
const
override
{
return
true
;
}
virtual
void
callModifyHdl
()
override
;
};
void
DbaMouseDownListBoxController
::
SetAdditionalModifyHdl
(
const
Link
<>&
_rHdl
)
void
DbaMouseDownListBoxController
::
SetAdditionalModifyHdl
(
const
Link
<
DbaMouseDownListBoxController
&
,
void
>&
_rHdl
)
{
m_aAdditionalModifyHdl
=
_rHdl
;
}
void
DbaMouseDownListBoxController
::
callModifyHdl
()
{
m_aAdditionalModifyHdl
.
Call
(
nullptr
);
m_aAdditionalModifyHdl
.
Call
(
*
this
);
ListBoxCellController
::
callModifyHdl
();
}
...
...
@@ -383,13 +383,13 @@ namespace dbaui
}
}
IMPL_LINK
(
IndexFieldsControl
,
OnListEntrySelected
,
void
*
,
p
)
IMPL_LINK
_TYPED
(
IndexFieldsControl
,
OnListEntrySelected
,
DbaMouseDownListBoxController
&
,
rController
,
void
)
{
ListBox
*
_pBox
=
static_cast
<
ListBox
*>
(
p
);
if
(
!
_pBox
->
IsTravelSelect
())
ListBox
Control
&
rListBox
=
rController
.
GetListBox
(
);
if
(
!
rListBox
.
IsTravelSelect
())
m_aModifyHdl
.
Call
(
this
);
if
(
_pBox
==
m_pFieldNameCell
)
if
(
&
rListBox
==
m_pFieldNameCell
.
get
()
)
{
// a field has been selected
if
(
GetCurRow
()
>=
GetRowCount
()
-
2
)
{
// and we're in one of the last two rows
...
...
@@ -417,7 +417,6 @@ namespace dbaui
SaveModified
();
}
return
0L
;
}
OUString
IndexFieldsControl
::
GetCellText
(
long
_nRow
,
sal_uInt16
nColId
)
const
{
...
...
dbaccess/source/ui/inc/indexfieldscontrol.hxx
Dosyayı görüntüle @
516b5115
...
...
@@ -28,10 +28,12 @@
namespace
dbaui
{
class
DbaMouseDownListBoxController
;
// IndexFieldsControl
class
IndexFieldsControl
:
public
::
svt
::
EditBrowseBox
{
OModuleClient
m_aModuleClient
;
OModuleClient
m_aModuleClient
;
protected
:
IndexFields
m_aSavedValue
;
...
...
@@ -84,7 +86,7 @@ namespace dbaui
bool
isNewField
()
const
{
return
GetCurRow
()
>=
(
sal_Int32
)
m_aFields
.
size
();
}
DECL_LINK
(
OnListEntrySelected
,
void
*
);
DECL_LINK
_TYPED
(
OnListEntrySelected
,
DbaMouseDownListBoxController
&
,
void
);
private
:
using
::
svt
::
EditBrowseBox
::
Init
;
...
...
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