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
6cf43679
Kaydet (Commit)
6cf43679
authored
May 31, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
More comphelper/extract.hxx clean up
Change-Id: I36c1ebea58bcd32b65a48d3447c106aeecdac230
üst
59dbfece
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
21 deletions
+10
-21
extract.hxx
include/comphelper/extract.hxx
+9
-20
unoobj.cxx
sd/source/ui/unoidl/unoobj.cxx
+1
-1
No files found.
include/comphelper/extract.hxx
Dosyayı görüntüle @
6cf43679
...
@@ -53,11 +53,11 @@ inline css::uno::Any SAL_CALL int2enum(
...
@@ -53,11 +53,11 @@ inline css::uno::Any SAL_CALL int2enum(
* @param rAny enum or int
* @param rAny enum or int
* @param sal_True if enum or int value was set else sal_False.
* @param sal_True if enum or int value was set else sal_False.
*/
*/
inline
bool
SAL_CALL
enum2int
(
sal_Int32
&
rnEnum
,
const
css
::
uno
::
Any
&
rAny
)
inline
bool
enum2int
(
sal_Int32
&
rnEnum
,
const
css
::
uno
::
Any
&
rAny
)
{
{
if
(
rAny
.
getValueTypeClass
()
==
css
::
uno
::
TypeClass_ENUM
)
if
(
rAny
.
getValueTypeClass
()
==
css
::
uno
::
TypeClass_ENUM
)
{
{
rnEnum
=
*
static_cast
<
const
int
*
>
(
rAny
.
getValue
()
);
rnEnum
=
*
static_cast
<
const
sal_Int32
*
>
(
rAny
.
getValue
()
);
return
true
;
return
true
;
}
}
...
@@ -72,7 +72,7 @@ inline bool SAL_CALL enum2int( sal_Int32 & rnEnum, const css::uno::Any & rAny )
...
@@ -72,7 +72,7 @@ inline bool SAL_CALL enum2int( sal_Int32 & rnEnum, const css::uno::Any & rAny )
* a css::lang::IllegalArgumentException is thrown
* a css::lang::IllegalArgumentException is thrown
*/
*/
template
<
typename
E
>
template
<
typename
E
>
inline
void
SAL_CALL
any2enum
(
E
&
eRet
,
const
css
::
uno
::
Any
&
rAny
)
inline
void
any2enum
(
E
&
eRet
,
const
css
::
uno
::
Any
&
rAny
)
throw
(
css
::
lang
::
IllegalArgumentException
)
throw
(
css
::
lang
::
IllegalArgumentException
)
{
{
// check for typesafe enum
// check for typesafe enum
...
@@ -88,29 +88,18 @@ inline void SAL_CALL any2enum( E & eRet, const css::uno::Any & rAny )
...
@@ -88,29 +88,18 @@ inline void SAL_CALL any2enum( E & eRet, const css::uno::Any & rAny )
}
}
/**
/**
* Template function to create an uno::Any from an enum
* extracts a boolean either as a bool or an integer from
*
* an any. If there is no bool or integer inside the any
* @DEPRECATED : use makeAny< E >()
*
*/
template
<
typename
E
>
inline
css
::
uno
::
Any
SAL_CALL
enum2any
(
E
eEnum
)
{
return
css
::
uno
::
Any
(
&
eEnum
,
::
cppu
::
UnoType
<
E
>::
get
()
);
}
/**
* extracts a boolean either as a sal_Bool or an integer from
* an any. If there is no sal_Bool or integer inside the any
* a css::lang::IllegalArgumentException is thrown
* a css::lang::IllegalArgumentException is thrown
*
*
*/
*/
inline
bool
SAL_CALL
any2bool
(
const
css
::
uno
::
Any
&
rAny
)
inline
bool
any2bool
(
const
css
::
uno
::
Any
&
rAny
)
throw
(
css
::
lang
::
IllegalArgumentException
)
throw
(
css
::
lang
::
IllegalArgumentException
)
{
{
if
(
rAny
.
getValueTypeClass
()
==
css
::
uno
::
TypeClass_BOOLEAN
)
bool
b
;
if
(
rAny
>>=
b
)
{
{
return
*
static_cast
<
sal_Bool
const
*>
(
rAny
.
getValue
())
;
return
b
;
}
}
else
else
{
{
...
...
sd/source/ui/unoidl/unoobj.cxx
Dosyayı görüntüle @
6cf43679
...
@@ -765,7 +765,7 @@ css::uno::Any SAL_CALL SdXShape::getPropertyValue( const OUString& PropertyName
...
@@ -765,7 +765,7 @@ css::uno::Any SAL_CALL SdXShape::getPropertyValue( const OUString& PropertyName
break
;
break
;
}
}
case
WID_CLICKACTION
:
case
WID_CLICKACTION
:
aRet
=
::
cppu
::
enum2any
<
presentation
::
ClickAction
>
(
pInfo
?
pInfo
->
meClickAction
:
presentation
::
ClickAction_NONE
);
aRet
<<=
(
pInfo
?
pInfo
->
meClickAction
:
presentation
::
ClickAction_NONE
);
break
;
break
;
case
WID_PLAYFULL
:
case
WID_PLAYFULL
:
aRet
<<=
(
pInfo
&&
pInfo
->
mbPlayFull
);
aRet
<<=
(
pInfo
&&
pInfo
->
mbPlayFull
);
...
...
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