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
e47fef4b
Kaydet (Commit)
e47fef4b
authored
May 09, 2014
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Kill sd::any2bool: cppu::bool2any does the same thing (extracts, or throws).
Change-Id: I477f2888fba585f41bb70309247a3e4fa9bf7517
üst
a45973a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
29 deletions
+4
-29
unohelp.hxx
sd/source/ui/unoidl/unohelp.hxx
+0
-17
unolayer.cxx
sd/source/ui/unoidl/unolayer.cxx
+4
-12
No files found.
sd/source/ui/unoidl/unohelp.hxx
Dosyayı görüntüle @
e47fef4b
...
...
@@ -19,23 +19,6 @@
namespace
sd
{
inline
bool
any2bool
(
const
::
com
::
sun
::
star
::
uno
::
Any
&
rAny
,
bool
&
rBool
)
{
if
(
rAny
.
getValueType
()
==
::
getCppuBooleanType
()
)
{
rBool
=
*
(
sal_Bool
*
)
rAny
.
getValue
();
}
else
{
sal_Int32
nValue
=
0
;
if
(
!
(
rAny
>>=
nValue
))
return
false
;
rBool
=
nValue
!=
0
;
}
return
true
;
}
inline
void
bool2any
(
bool
bBool
,
::
com
::
sun
::
star
::
uno
::
Any
&
rAny
)
{
rAny
.
setValue
(
&
bBool
,
::
getCppuBooleanType
()
);
...
...
sd/source/ui/unoidl/unolayer.cxx
Dosyayı görüntüle @
e47fef4b
...
...
@@ -22,6 +22,7 @@
#include "unolayer.hxx"
#include <osl/mutex.hxx>
#include <comphelper/extract.hxx>
#include <svx/svdpagv.hxx>
#include <svx/unoshape.hxx>
#include <svx/svdobj.hxx>
...
...
@@ -192,26 +193,17 @@ void SAL_CALL SdLayer::setPropertyValue( const OUString& aPropertyName, const un
{
case
WID_LAYER_LOCKED
:
{
bool
bValue
=
false
;
if
(
!
sd
::
any2bool
(
aValue
,
bValue
))
throw
lang
::
IllegalArgumentException
();
set
(
LOCKED
,
bValue
);
set
(
LOCKED
,
cppu
::
any2bool
(
aValue
));
break
;
}
case
WID_LAYER_PRINTABLE
:
{
bool
bValue
=
false
;
if
(
!
sd
::
any2bool
(
aValue
,
bValue
))
throw
lang
::
IllegalArgumentException
();
set
(
PRINTABLE
,
bValue
);
set
(
PRINTABLE
,
cppu
::
any2bool
(
aValue
));
break
;
}
case
WID_LAYER_VISIBLE
:
{
bool
bValue
=
false
;
if
(
!
sd
::
any2bool
(
aValue
,
bValue
))
throw
lang
::
IllegalArgumentException
();
set
(
VISIBLE
,
bValue
);
set
(
VISIBLE
,
cppu
::
any2bool
(
aValue
));
break
;
}
case
WID_LAYER_NAME
:
...
...
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