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
cf53a5d4
Kaydet (Commit)
cf53a5d4
authored
May 21, 2014
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
we have GetEntryPos(), use it
Change-Id: Iebb19951efa81817793a155164862076d1198e6e
üst
34f0e4f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
langbox.hxx
include/svx/langbox.hxx
+3
-0
langbox.cxx
svx/source/dialog/langbox.cxx
+12
-8
No files found.
include/svx/langbox.hxx
Dosyayı görüntüle @
cf53a5d4
...
...
@@ -101,6 +101,7 @@ protected:
SVX_DLLPRIVATE
virtual
void
*
ImplGetEntryData
(
sal_Int32
nPos
)
const
=
0
;
SVX_DLLPRIVATE
virtual
void
ImplSelectEntryPos
(
sal_Int32
nPos
,
bool
bSelect
)
=
0
;
SVX_DLLPRIVATE
virtual
bool
ImplIsEntryPosSelected
(
sal_Int32
nPos
)
const
=
0
;
SVX_DLLPRIVATE
virtual
sal_Int32
ImplGetEntryPos
(
const
void
*
pData
)
const
=
0
;
SVX_DLLPRIVATE
virtual
sal_Int32
ImplGetEntryCount
()
const
=
0
;
SVX_DLLPRIVATE
virtual
void
ImplSetNoSelection
()
=
0
;
SVX_DLLPRIVATE
virtual
void
ImplHide
()
=
0
;
...
...
@@ -127,6 +128,7 @@ private:
SVX_DLLPRIVATE
virtual
void
*
ImplGetEntryData
(
sal_Int32
nPos
)
const
SAL_OVERRIDE
;
SVX_DLLPRIVATE
virtual
void
ImplSelectEntryPos
(
sal_Int32
nPos
,
bool
bSelect
)
SAL_OVERRIDE
;
SVX_DLLPRIVATE
virtual
bool
ImplIsEntryPosSelected
(
sal_Int32
nPos
)
const
SAL_OVERRIDE
;
SVX_DLLPRIVATE
virtual
sal_Int32
ImplGetEntryPos
(
const
void
*
pData
)
const
SAL_OVERRIDE
;
SVX_DLLPRIVATE
virtual
sal_Int32
ImplGetEntryCount
()
const
SAL_OVERRIDE
;
SVX_DLLPRIVATE
virtual
void
ImplSetNoSelection
()
SAL_OVERRIDE
;
SVX_DLLPRIVATE
virtual
void
ImplHide
()
SAL_OVERRIDE
;
...
...
@@ -155,6 +157,7 @@ private:
SVX_DLLPRIVATE
virtual
void
*
ImplGetEntryData
(
sal_Int32
nPos
)
const
SAL_OVERRIDE
;
SVX_DLLPRIVATE
virtual
void
ImplSelectEntryPos
(
sal_Int32
nPos
,
bool
bSelect
)
SAL_OVERRIDE
;
SVX_DLLPRIVATE
virtual
bool
ImplIsEntryPosSelected
(
sal_Int32
nPos
)
const
SAL_OVERRIDE
;
SVX_DLLPRIVATE
virtual
sal_Int32
ImplGetEntryPos
(
const
void
*
pData
)
const
SAL_OVERRIDE
;
SVX_DLLPRIVATE
virtual
sal_Int32
ImplGetEntryCount
()
const
SAL_OVERRIDE
;
SVX_DLLPRIVATE
virtual
void
ImplSetNoSelection
()
SAL_OVERRIDE
;
SVX_DLLPRIVATE
virtual
void
ImplHide
()
SAL_OVERRIDE
;
...
...
svx/source/dialog/langbox.cxx
Dosyayı görüntüle @
cf53a5d4
...
...
@@ -448,14 +448,7 @@ bool SvxLanguageBoxBase::IsLanguageSelected( const LanguageType eLangType ) cons
sal_Int32
SvxLanguageBoxBase
::
ImplTypeToPos
(
LanguageType
eType
)
const
{
sal_Int32
nPos
=
LISTBOX_ENTRY_NOTFOUND
;
sal_Int32
nCount
=
ImplGetEntryCount
();
for
(
sal_Int32
i
=
0
;
nPos
==
LISTBOX_ENTRY_NOTFOUND
&&
i
<
nCount
;
i
++
)
if
(
eType
==
LanguageType
((
sal_uIntPtr
)
ImplGetEntryData
(
i
))
)
nPos
=
i
;
return
nPos
;
return
ImplGetEntryPos
(
(
void
*
)(
sal_uIntPtr
)
eType
);
}
...
...
@@ -627,6 +620,17 @@ bool SvxLanguageComboBox::ImplIsEntryPosSelected( sal_Int32 nPos ) const
}
sal_Int32
SvxLanguageBox
::
ImplGetEntryPos
(
const
void
*
pData
)
const
{
return
GetEntryPos
(
pData
);
}
sal_Int32
SvxLanguageComboBox
::
ImplGetEntryPos
(
const
void
*
pData
)
const
{
return
GetEntryPos
(
pData
);
}
sal_Int32
SvxLanguageBox
::
ImplGetEntryCount
()
const
{
return
GetEntryCount
();
...
...
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