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
2743241b
Kaydet (Commit)
2743241b
authored
Nis 19, 2013
tarafından
Noel Power
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ListBox.MultiSelection takes fmMultiSelect enum not bool
Change-Id: Ic9ea60feadc551b232b393faafea9760cc3b82f0
üst
37cc1bb2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
7 deletions
+23
-7
XListBox.idl
oovbaapi/ooo/vba/msforms/XListBox.idl
+1
-1
vbalistbox.cxx
vbahelper/source/msforms/vbalistbox.cxx
+20
-4
vbalistbox.hxx
vbahelper/source/msforms/vbalistbox.hxx
+2
-2
No files found.
oovbaapi/ooo/vba/msforms/XListBox.idl
Dosyayı görüntüle @
2743241b
...
...
@@ -31,7 +31,7 @@ interface XListBox
{
[
attribute
]
any
Value
;
[
attribute
]
string
Text
;
[
attribute
]
boolean
MultiSelect
;
[
attribute
]
long
MultiSelect
;
[
attribute
]
any
ListIndex
;
[
attribute
,
readonly
]
long
ListCount
;
[
attribute
,
readonly
]
XNewFont
Font
;
...
...
vbahelper/source/msforms/vbalistbox.cxx
Dosyayı görüntüle @
2743241b
...
...
@@ -22,6 +22,7 @@
#include <comphelper/anytostring.hxx>
#include <com/sun/star/script/ArrayWrapper.hpp>
#include <com/sun/star/form/validation/XValidatableFormComponent.hpp>
#include <ooo/vba/msforms/fmMultiSelect.hpp>
using
namespace
com
::
sun
::
star
;
using
namespace
ooo
::
vba
;
...
...
@@ -120,18 +121,33 @@ ScVbaListBox::setText( const OUString& _text ) throw (uno::RuntimeException)
setValue
(
uno
::
makeAny
(
_text
)
);
// seems the same
}
sal_
Bool
SAL_CALL
sal_
Int32
SAL_CALL
ScVbaListBox
::
getMultiSelect
()
throw
(
css
::
uno
::
RuntimeException
)
{
sal_Bool
bMultiSelect
=
sal_False
;
m_xProps
->
getPropertyValue
(
"MultiSelection"
)
>>=
bMultiSelect
;
return
bMultiSelect
;
return
bMultiSelect
?
msforms
::
fmMultiSelect
::
fmMultiSelectMulti
:
msforms
::
fmMultiSelect
::
fmMultiSelectSingle
;
}
void
SAL_CALL
ScVbaListBox
::
setMultiSelect
(
sal_
Bool
_multiselect
)
throw
(
css
::
uno
::
RuntimeException
)
ScVbaListBox
::
setMultiSelect
(
sal_
Int32
_multiselect
)
throw
(
css
::
uno
::
RuntimeException
)
{
m_xProps
->
setPropertyValue
(
"MultiSelection"
,
uno
::
makeAny
(
_multiselect
)
);
sal_Bool
bBoolVal
=
false
;
switch
(
_multiselect
)
{
case
msforms
:
:
fmMultiSelect
::
fmMultiSelectMulti
:
case
msforms
:
:
fmMultiSelect
::
fmMultiSelectExtended
:
bBoolVal
=
sal_True
;
break
;
case
msforms
:
:
fmMultiSelect
::
fmMultiSelectSingle
:
bBoolVal
=
sal_True
;
break
;
default
:
throw
lang
::
IllegalArgumentException
();
break
;
}
m_xProps
->
setPropertyValue
(
"MultiSelection"
,
uno
::
makeAny
(
bBoolVal
)
);
}
...
...
vbahelper/source/msforms/vbalistbox.hxx
Dosyayı görüntüle @
2743241b
...
...
@@ -52,8 +52,8 @@ public:
virtual
void
SAL_CALL
setValue
(
const
css
::
uno
::
Any
&
_value
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
OUString
SAL_CALL
getText
()
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setText
(
const
OUString
&
_text
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
sal_
Bool
SAL_CALL
getMultiSelect
()
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setMultiSelect
(
sal_
Bool
_multiselect
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
sal_
Int32
SAL_CALL
getMultiSelect
()
throw
(
css
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
setMultiSelect
(
sal_
Int32
_multiselect
)
throw
(
css
::
uno
::
RuntimeException
);
virtual
css
::
uno
::
Reference
<
ov
::
msforms
::
XNewFont
>
SAL_CALL
getFont
()
throw
(
css
::
uno
::
RuntimeException
);
// Methods
...
...
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