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
5c03dca7
Kaydet (Commit)
5c03dca7
authored
Nis 30, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
More descriptive method name.
Change-Id: I7f0d68ee59e7a36254267d652de398cc371c7f8c
üst
8ac758d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
xpropertyset.hxx
test/inc/test/beans/xpropertyset.hxx
+1
-1
xpropertyset.cxx
test/source/beans/xpropertyset.cxx
+3
-2
No files found.
test/inc/test/beans/xpropertyset.hxx
Dosyayı görüntüle @
5c03dca7
...
@@ -57,7 +57,7 @@ public:
...
@@ -57,7 +57,7 @@ public:
void
testRemoveVetoableChangeListener
();
void
testRemoveVetoableChangeListener
();
protected
:
protected
:
virtual
bool
isChangeable
(
const
rtl
::
OUString
&
rName
);
virtual
bool
is
PropertyValue
Changeable
(
const
rtl
::
OUString
&
rName
);
private
:
private
:
void
fillPropsToTest
(
const
uno
::
Reference
<
beans
::
XPropertySetInfo
>&
xPropInfo
);
void
fillPropsToTest
(
const
uno
::
Reference
<
beans
::
XPropertySetInfo
>&
xPropInfo
);
...
...
test/source/beans/xpropertyset.cxx
Dosyayı görüntüle @
5c03dca7
...
@@ -69,6 +69,7 @@ void XPropertySet::testAddVetoableChangeListener()
...
@@ -69,6 +69,7 @@ void XPropertySet::testAddVetoableChangeListener()
void
XPropertySet
::
testSetPropertyValue
()
void
XPropertySet
::
testSetPropertyValue
()
{
{
testGetPropertySetInfo
();
testGetPropertySetInfo
();
uno
::
Reference
<
beans
::
XPropertySet
>
xPropSet
(
init
(),
UNO_QUERY_THROW
);
// TODO: implement this.
// TODO: implement this.
}
}
...
@@ -103,7 +104,7 @@ void XPropertySet::testRemoveVetoableChangeListener()
...
@@ -103,7 +104,7 @@ void XPropertySet::testRemoveVetoableChangeListener()
// TODO: implement this.
// TODO: implement this.
}
}
bool
XPropertySet
::
isChangeable
(
const
rtl
::
OUString
&
rName
)
bool
XPropertySet
::
is
PropertyValue
Changeable
(
const
rtl
::
OUString
&
rName
)
{
{
uno
::
Reference
<
beans
::
XPropertySet
>
xPropSet
(
init
(),
UNO_QUERY_THROW
);
uno
::
Reference
<
beans
::
XPropertySet
>
xPropSet
(
init
(),
UNO_QUERY_THROW
);
try
try
...
@@ -177,7 +178,7 @@ void XPropertySet::fillPropsToTest(const uno::Reference<beans::XPropertySetInfo>
...
@@ -177,7 +178,7 @@ void XPropertySet::fillPropsToTest(const uno::Reference<beans::XPropertySetInfo>
bool
bBound
=
(
aProp
.
Attributes
&
beans
::
PropertyAttribute
::
BOUND
)
!=
0
;
bool
bBound
=
(
aProp
.
Attributes
&
beans
::
PropertyAttribute
::
BOUND
)
!=
0
;
bool
bConstrained
=
(
aProp
.
Attributes
&
beans
::
PropertyAttribute
::
CONSTRAINED
)
!=
0
;
bool
bConstrained
=
(
aProp
.
Attributes
&
beans
::
PropertyAttribute
::
CONSTRAINED
)
!=
0
;
bool
bCanChange
=
isChangeable
(
aProp
.
Name
);
bool
bCanChange
=
is
PropertyValue
Changeable
(
aProp
.
Name
);
if
(
bBound
&&
bCanChange
)
if
(
bBound
&&
bCanChange
)
maPropsToTest
.
bound
.
push_back
(
aProp
.
Name
);
maPropsToTest
.
bound
.
push_back
(
aProp
.
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