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
89e1382e
Kaydet (Commit)
89e1382e
authored
Nis 18, 2013
tarafından
Noel Power
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
handle bool value for checkbox, radiobutton, togglebutton consistently
Change-Id: I1f9057e58fe3625e0b76a09d79c7c56e1838d98a
üst
c058341b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
18 deletions
+22
-18
vbacheckbox.cxx
vbahelper/source/msforms/vbacheckbox.cxx
+7
-8
vbaradiobutton.cxx
vbahelper/source/msforms/vbaradiobutton.cxx
+7
-8
vbatogglebutton.cxx
vbahelper/source/msforms/vbatogglebutton.cxx
+8
-2
No files found.
vbahelper/source/msforms/vbacheckbox.cxx
Dosyayı görüntüle @
89e1382e
...
@@ -65,17 +65,16 @@ ScVbaCheckbox::setValue( const uno::Any& _value ) throw (css::uno::RuntimeExcept
...
@@ -65,17 +65,16 @@ ScVbaCheckbox::setValue( const uno::Any& _value ) throw (css::uno::RuntimeExcept
sal_Int16
nValue
=
0
;
sal_Int16
nValue
=
0
;
sal_Int16
nOldValue
=
0
;
sal_Int16
nOldValue
=
0
;
m_xProps
->
getPropertyValue
(
STATE
)
>>=
nOldValue
;
m_xProps
->
getPropertyValue
(
STATE
)
>>=
nOldValue
;
sal_Bool
bValue
=
false
;
if
(
!
(
_value
>>=
nValue
)
)
if
(
_value
>>=
nValue
)
{
if
(
nValue
==
-
1
)
nValue
=
1
;
}
else
if
(
_value
>>=
bValue
)
{
{
sal_Bool
bValue
=
false
;
_value
>>=
bValue
;
if
(
bValue
)
if
(
bValue
)
nValue
=
1
;
nValue
=
-
1
;
}
}
if
(
nValue
==
-
1
)
nValue
=
1
;
m_xProps
->
setPropertyValue
(
STATE
,
uno
::
makeAny
(
nValue
)
);
m_xProps
->
setPropertyValue
(
STATE
,
uno
::
makeAny
(
nValue
)
);
if
(
nValue
!=
nOldValue
)
if
(
nValue
!=
nOldValue
)
fireClickEvent
();
fireClickEvent
();
...
...
vbahelper/source/msforms/vbaradiobutton.cxx
Dosyayı görüntüle @
89e1382e
...
@@ -66,17 +66,16 @@ ScVbaRadioButton::setValue( const uno::Any& _value ) throw (uno::RuntimeExceptio
...
@@ -66,17 +66,16 @@ ScVbaRadioButton::setValue( const uno::Any& _value ) throw (uno::RuntimeExceptio
sal_Int16
nOldValue
=
0
;
sal_Int16
nOldValue
=
0
;
m_xProps
->
getPropertyValue
(
STATE
)
>>=
nOldValue
;
m_xProps
->
getPropertyValue
(
STATE
)
>>=
nOldValue
;
sal_Bool
bValue
=
sal_False
;
if
(
!
(
_value
>>=
nValue
)
)
if
(
_value
>>=
nValue
)
{
if
(
nValue
==
-
1
)
nValue
=
1
;
}
else
if
(
_value
>>=
bValue
)
{
{
sal_Bool
bValue
=
sal_False
;
_value
>>=
bValue
;
if
(
bValue
)
if
(
bValue
)
nValue
=
1
;
nValue
=
-
1
;
}
}
if
(
nValue
==
-
1
)
nValue
=
1
;
m_xProps
->
setPropertyValue
(
STATE
,
uno
::
makeAny
(
nValue
)
);
m_xProps
->
setPropertyValue
(
STATE
,
uno
::
makeAny
(
nValue
)
);
if
(
nValue
!=
nOldValue
)
if
(
nValue
!=
nOldValue
)
{
{
...
...
vbahelper/source/msforms/vbatogglebutton.cxx
Dosyayı görüntüle @
89e1382e
...
@@ -66,11 +66,17 @@ void SAL_CALL
...
@@ -66,11 +66,17 @@ void SAL_CALL
ScVbaToggleButton
::
setValue
(
const
uno
::
Any
&
_value
)
throw
(
uno
::
RuntimeException
)
ScVbaToggleButton
::
setValue
(
const
uno
::
Any
&
_value
)
throw
(
uno
::
RuntimeException
)
{
{
sal_Int16
nState
=
0
;
sal_Int16
nState
=
0
;
_value
>>=
nState
;
if
(
!
(
_value
>>=
nState
)
)
{
sal_Bool
bState
=
false
;
_value
>>=
bState
;
if
(
bState
)
nState
=
-
1
;
}
SAL_INFO
(
"vbahelper"
,
"nState - "
<<
nState
);
SAL_INFO
(
"vbahelper"
,
"nState - "
<<
nState
);
nState
=
(
nState
==
-
1
)
?
1
:
0
;
nState
=
(
nState
==
-
1
)
?
1
:
0
;
SAL_INFO
(
"vbahelper"
,
"nState - "
<<
nState
);
SAL_INFO
(
"vbahelper"
,
"nState - "
<<
nState
);
m_xProps
->
setPropertyValue
(
STATE
,
uno
::
makeAny
(
nState
)
);
m_xProps
->
setPropertyValue
(
STATE
,
uno
::
makeAny
(
nState
)
);
}
}
sal_Bool
SAL_CALL
ScVbaToggleButton
::
getAutoSize
()
throw
(
uno
::
RuntimeException
)
sal_Bool
SAL_CALL
ScVbaToggleButton
::
getAutoSize
()
throw
(
uno
::
RuntimeException
)
...
...
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