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
9d48e8fd
Kaydet (Commit)
9d48e8fd
authored
May 13, 2014
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Int32 ComboBox::InsertEntryWithImage()
Change-Id: Iaa1ddc931b71fcdf08d571c7e3573a936d378709
üst
99595346
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
combobox.hxx
include/vcl/combobox.hxx
+1
-1
combobox.cxx
vcl/source/control/combobox.cxx
+4
-3
No files found.
include/vcl/combobox.hxx
Dosyayı görüntüle @
9d48e8fd
...
@@ -130,7 +130,7 @@ public:
...
@@ -130,7 +130,7 @@ public:
virtual
void
SetText
(
const
OUString
&
rStr
,
const
Selection
&
rNewSelection
)
SAL_OVERRIDE
;
virtual
void
SetText
(
const
OUString
&
rStr
,
const
Selection
&
rNewSelection
)
SAL_OVERRIDE
;
virtual
sal_Int32
InsertEntry
(
const
OUString
&
rStr
,
sal_Int32
nPos
=
COMBOBOX_APPEND
);
virtual
sal_Int32
InsertEntry
(
const
OUString
&
rStr
,
sal_Int32
nPos
=
COMBOBOX_APPEND
);
void
InsertEntryWithImage
(
const
OUString
&
rStr
,
const
Image
&
rImage
,
sal_Int32
nPos
=
COMBOBOX_APPEND
);
sal_Int32
InsertEntryWithImage
(
const
OUString
&
rStr
,
const
Image
&
rImage
,
sal_Int32
nPos
=
COMBOBOX_APPEND
);
void
RemoveEntry
(
const
OUString
&
rStr
);
void
RemoveEntry
(
const
OUString
&
rStr
);
virtual
void
RemoveEntryAt
(
sal_Int32
nPos
);
virtual
void
RemoveEntryAt
(
sal_Int32
nPos
);
...
...
vcl/source/control/combobox.cxx
Dosyayı görüntüle @
9d48e8fd
...
@@ -872,11 +872,11 @@ sal_Int32 ComboBox::InsertEntry(const OUString& rStr, sal_Int32 const nPos)
...
@@ -872,11 +872,11 @@ sal_Int32 ComboBox::InsertEntry(const OUString& rStr, sal_Int32 const nPos)
return
nRealPos
;
return
nRealPos
;
}
}
void
ComboBox
::
InsertEntryWithImage
(
sal_Int32
ComboBox
::
InsertEntryWithImage
(
const
OUString
&
rStr
,
const
Image
&
rImage
,
sal_Int32
const
nPos
)
const
OUString
&
rStr
,
const
Image
&
rImage
,
sal_Int32
const
nPos
)
{
{
if
(
nPos
<
0
||
COMBOBOX_MAX_ENTRIES
<=
mpImplLB
->
GetEntryList
()
->
GetEntryCount
())
if
(
nPos
<
0
||
COMBOBOX_MAX_ENTRIES
<=
mpImplLB
->
GetEntryList
()
->
GetEntryCount
())
return
;
return
COMBOBOX_ERROR
;
sal_Int32
nRealPos
;
sal_Int32
nRealPos
;
if
(
nPos
==
COMBOBOX_APPEND
)
if
(
nPos
==
COMBOBOX_APPEND
)
...
@@ -885,13 +885,14 @@ void ComboBox::InsertEntryWithImage(
...
@@ -885,13 +885,14 @@ void ComboBox::InsertEntryWithImage(
{
{
const
sal_Int32
nMRUCount
=
mpImplLB
->
GetEntryList
()
->
GetMRUCount
();
const
sal_Int32
nMRUCount
=
mpImplLB
->
GetEntryList
()
->
GetMRUCount
();
if
(
nPos
>
COMBOBOX_MAX_ENTRIES
-
nMRUCount
)
if
(
nPos
>
COMBOBOX_MAX_ENTRIES
-
nMRUCount
)
return
;
return
COMBOBOX_ERROR
;
nRealPos
=
nPos
+
nMRUCount
;
nRealPos
=
nPos
+
nMRUCount
;
}
}
nRealPos
=
mpImplLB
->
InsertEntry
(
nRealPos
,
rStr
,
rImage
);
nRealPos
=
mpImplLB
->
InsertEntry
(
nRealPos
,
rStr
,
rImage
);
nRealPos
-=
mpImplLB
->
GetEntryList
()
->
GetMRUCount
();
nRealPos
-=
mpImplLB
->
GetEntryList
()
->
GetMRUCount
();
CallEventListeners
(
VCLEVENT_COMBOBOX_ITEMADDED
,
(
void
*
)
sal_IntPtr
(
nRealPos
)
);
CallEventListeners
(
VCLEVENT_COMBOBOX_ITEMADDED
,
(
void
*
)
sal_IntPtr
(
nRealPos
)
);
return
nRealPos
;
}
}
void
ComboBox
::
RemoveEntry
(
const
OUString
&
rStr
)
void
ComboBox
::
RemoveEntry
(
const
OUString
&
rStr
)
...
...
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