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
cf5fbc12
Kaydet (Commit)
cf5fbc12
authored
Şub 21, 2014
tarafından
Markus Mohrhard
Kaydeden (comit)
Markus Mohrhard
Şub 22, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
try to limit the getPropertyValue calls
Change-Id: I70b7a3b5f508ecb89d4e4e43cc4297805e83c9f7
üst
02b73e77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
9 deletions
+31
-9
PropertyMapper.cxx
chart2/source/view/main/PropertyMapper.cxx
+31
-9
No files found.
chart2/source/view/main/PropertyMapper.cxx
Dosyayı görüntüle @
cf5fbc12
...
...
@@ -80,19 +80,41 @@ void PropertyMapper::getValueMap(
tPropertyNameMap
::
const_iterator
aIt
(
rNameMap
.
begin
()
);
tPropertyNameMap
::
const_iterator
aEnd
(
rNameMap
.
end
()
);
for
(
;
aIt
!=
aEnd
;
++
aIt
)
uno
::
Reference
<
beans
::
XMultiPropertySet
>
xMultiPropSet
(
xSourceProp
,
uno
::
UNO_QUERY
);
if
(
xMultiPropSet
.
is
())
{
OUString
aTarget
=
aIt
->
first
;
OUString
aSource
=
aIt
->
second
;
try
uno
::
Sequence
<
rtl
::
OUString
>
aPropSourceNames
(
rNameMap
.
size
())
;
uno
::
Sequence
<
rtl
::
OUString
>
aPropTargetNames
(
rNameMap
.
size
())
;
for
(
sal_Int32
i
=
0
;
aIt
!=
aEnd
;
++
aIt
,
++
i
)
{
uno
::
Any
aAny
(
xSourceProp
->
getPropertyValue
(
aSource
)
);
if
(
aAny
.
hasValue
()
)
rValueMap
.
insert
(
tPropertyNameValueMap
::
value_type
(
aTarget
,
aAny
)
);
aPropSourceNames
[
i
]
=
aIt
->
first
;
aPropTargetNames
[
i
]
=
aIt
->
second
;
}
catch
(
const
uno
::
Exception
&
e
)
uno
::
Sequence
<
uno
::
Any
>
xValues
=
xMultiPropSet
->
getPropertyValues
(
aPropSourceNames
);
for
(
sal_Int32
i
=
0
,
n
=
rNameMap
.
size
();
i
<
n
;
++
i
)
{
if
(
xValues
[
i
].
hasValue
()
)
rValueMap
.
insert
(
tPropertyNameValueMap
::
value_type
(
aPropTargetNames
[
i
],
xValues
[
i
]
)
);
}
}
else
{
for
(
;
aIt
!=
aEnd
;
++
aIt
)
{
ASSERT_EXCEPTION
(
e
);
OUString
aTarget
=
aIt
->
first
;
OUString
aSource
=
aIt
->
second
;
try
{
uno
::
Any
aAny
(
xSourceProp
->
getPropertyValue
(
aSource
)
);
if
(
aAny
.
hasValue
()
)
rValueMap
.
insert
(
tPropertyNameValueMap
::
value_type
(
aTarget
,
aAny
)
);
}
catch
(
const
uno
::
Exception
&
e
)
{
ASSERT_EXCEPTION
(
e
);
}
}
}
}
...
...
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