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
dd9fd8f3
Kaydet (Commit)
dd9fd8f3
authored
Şub 12, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool->bool
Change-Id: Ide1fd8bdc6a6c3e5fc454b248c35f563c2ef8841
üst
e0c9266f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
miscuno.hxx
sc/inc/miscuno.hxx
+4
-4
miscuno.cxx
sc/source/ui/unoobj/miscuno.cxx
+7
-6
No files found.
sc/inc/miscuno.hxx
Dosyayı görüntüle @
dd9fd8f3
...
@@ -157,9 +157,9 @@ class SC_DLLPUBLIC ScUnoHelpFunctions
...
@@ -157,9 +157,9 @@ class SC_DLLPUBLIC ScUnoHelpFunctions
public
:
public
:
static
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XInterface
>
static
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XInterface
>
AnyToInterface
(
const
com
::
sun
::
star
::
uno
::
Any
&
rAny
);
AnyToInterface
(
const
com
::
sun
::
star
::
uno
::
Any
&
rAny
);
static
sal_Bool
GetBoolProperty
(
const
com
::
sun
::
star
::
uno
::
Reference
<
static
bool
GetBoolProperty
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
beans
::
XPropertySet
>&
xProp
,
com
::
sun
::
star
::
beans
::
XPropertySet
>&
xProp
,
const
OUString
&
rName
,
sal_B
ool
bDefault
=
false
);
const
OUString
&
rName
,
b
ool
bDefault
=
false
);
static
sal_Int32
GetLongProperty
(
const
com
::
sun
::
star
::
uno
::
Reference
<
static
sal_Int32
GetLongProperty
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
beans
::
XPropertySet
>&
xProp
,
com
::
sun
::
star
::
beans
::
XPropertySet
>&
xProp
,
const
OUString
&
rName
,
long
nDefault
=
0
);
const
OUString
&
rName
,
long
nDefault
=
0
);
...
@@ -170,11 +170,11 @@ public:
...
@@ -170,11 +170,11 @@ public:
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
beans
::
XPropertySet
>&
xProp
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
beans
::
XPropertySet
>&
xProp
,
const
OUString
&
rName
,
const
OUString
&
rDefault
);
const
OUString
&
rName
,
const
OUString
&
rDefault
);
static
sal_Bool
GetBoolFromAny
(
const
com
::
sun
::
star
::
uno
::
Any
&
aAny
);
static
bool
GetBoolFromAny
(
const
com
::
sun
::
star
::
uno
::
Any
&
aAny
);
static
sal_Int16
GetInt16FromAny
(
const
com
::
sun
::
star
::
uno
::
Any
&
aAny
);
static
sal_Int16
GetInt16FromAny
(
const
com
::
sun
::
star
::
uno
::
Any
&
aAny
);
static
sal_Int32
GetInt32FromAny
(
const
com
::
sun
::
star
::
uno
::
Any
&
aAny
);
static
sal_Int32
GetInt32FromAny
(
const
com
::
sun
::
star
::
uno
::
Any
&
aAny
);
static
sal_Int32
GetEnumFromAny
(
const
com
::
sun
::
star
::
uno
::
Any
&
aAny
);
static
sal_Int32
GetEnumFromAny
(
const
com
::
sun
::
star
::
uno
::
Any
&
aAny
);
static
void
SetBoolInAny
(
com
::
sun
::
star
::
uno
::
Any
&
rAny
,
sal_B
ool
bValue
);
static
void
SetBoolInAny
(
com
::
sun
::
star
::
uno
::
Any
&
rAny
,
b
ool
bValue
);
static
void
SetOptionalPropertyValue
(
static
void
SetOptionalPropertyValue
(
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
>&
rPropSet
,
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
beans
::
XPropertySet
>&
rPropSet
,
...
...
sc/source/ui/unoobj/miscuno.cxx
Dosyayı görüntüle @
dd9fd8f3
...
@@ -41,10 +41,10 @@ uno::Reference<uno::XInterface> ScUnoHelpFunctions::AnyToInterface( const uno::A
...
@@ -41,10 +41,10 @@ uno::Reference<uno::XInterface> ScUnoHelpFunctions::AnyToInterface( const uno::A
return
uno
::
Reference
<
uno
::
XInterface
>
();
//! Exception?
return
uno
::
Reference
<
uno
::
XInterface
>
();
//! Exception?
}
}
sal_B
ool
ScUnoHelpFunctions
::
GetBoolProperty
(
const
uno
::
Reference
<
beans
::
XPropertySet
>&
xProp
,
b
ool
ScUnoHelpFunctions
::
GetBoolProperty
(
const
uno
::
Reference
<
beans
::
XPropertySet
>&
xProp
,
const
OUString
&
rName
,
sal_B
ool
bDefault
)
const
OUString
&
rName
,
b
ool
bDefault
)
{
{
sal_B
ool
bRet
=
bDefault
;
b
ool
bRet
=
bDefault
;
if
(
xProp
.
is
()
)
if
(
xProp
.
is
()
)
{
{
try
try
...
@@ -133,7 +133,7 @@ OUString ScUnoHelpFunctions::GetStringProperty(
...
@@ -133,7 +133,7 @@ OUString ScUnoHelpFunctions::GetStringProperty(
return
aRet
;
return
aRet
;
}
}
sal_B
ool
ScUnoHelpFunctions
::
GetBoolFromAny
(
const
uno
::
Any
&
aAny
)
b
ool
ScUnoHelpFunctions
::
GetBoolFromAny
(
const
uno
::
Any
&
aAny
)
{
{
if
(
aAny
.
getValueTypeClass
()
==
uno
::
TypeClass_BOOLEAN
)
if
(
aAny
.
getValueTypeClass
()
==
uno
::
TypeClass_BOOLEAN
)
return
*
(
sal_Bool
*
)
aAny
.
getValue
();
return
*
(
sal_Bool
*
)
aAny
.
getValue
();
...
@@ -166,9 +166,10 @@ sal_Int32 ScUnoHelpFunctions::GetEnumFromAny( const uno::Any& aAny )
...
@@ -166,9 +166,10 @@ sal_Int32 ScUnoHelpFunctions::GetEnumFromAny( const uno::Any& aAny )
return
nRet
;
return
nRet
;
}
}
void
ScUnoHelpFunctions
::
SetBoolInAny
(
uno
::
Any
&
rAny
,
sal_B
ool
bValue
)
void
ScUnoHelpFunctions
::
SetBoolInAny
(
uno
::
Any
&
rAny
,
b
ool
bValue
)
{
{
rAny
.
setValue
(
&
bValue
,
getBooleanCppuType
()
);
sal_Bool
bTemp
=
bValue
?
1
:
0
;
rAny
.
setValue
(
&
bTemp
,
getBooleanCppuType
()
);
}
}
void
ScUnoHelpFunctions
::
SetOptionalPropertyValue
(
void
ScUnoHelpFunctions
::
SetOptionalPropertyValue
(
...
...
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