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
1ed454c7
Kaydet (Commit)
1ed454c7
authored
Eyl 09, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make GetProperty more clear
Change-Id: I23ba7950364fa402f1337e8557c3cf8cd9c810cc
üst
d22a4d94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
21 deletions
+26
-21
drawingml.cxx
oox/source/export/drawingml.cxx
+26
-21
No files found.
oox/source/export/drawingml.cxx
Dosyayı görüntüle @
1ed454c7
...
...
@@ -118,32 +118,37 @@ void DrawingML::ResetCounters()
maWdpCache
.
clear
();
}
bool
DrawingML
::
GetProperty
(
Reference
<
XPropertySet
>
rXPropSet
,
const
OUString
&
aName
)
bool
DrawingML
::
GetProperty
(
Reference
<
XPropertySet
>
rXProp
erty
Set
,
const
OUString
&
aName
)
{
bool
bRetValue
=
false
;
try
{
mAny
=
rXPropSet
->
getPropertyValue
(
aName
);
if
(
mAny
.
hasValue
()
)
bRetValue
=
true
;
}
catch
(
const
Exception
&
)
{
/* printf ("exception when trying to get value of property: %s\n", USS(aName)); */
}
return
bRetValue
;
try
{
mAny
=
rXPropertySet
->
getPropertyValue
(
aName
);
if
(
mAny
.
hasValue
())
return
true
;
}
catch
(
const
Exception
&
)
{
/* printf ("exception when trying to get value of property: %s\n", USS(aName)); */
}
return
false
;
}
bool
DrawingML
::
GetPropertyAndState
(
Reference
<
XPropertySet
>
rXProp
Set
,
Reference
<
XPropertyState
>
rXProp
State
,
const
OUString
&
aName
,
PropertyState
&
eState
)
bool
DrawingML
::
GetPropertyAndState
(
Reference
<
XPropertySet
>
rXProp
ertySet
,
Reference
<
XPropertyState
>
rXProperty
State
,
const
OUString
&
aName
,
PropertyState
&
eState
)
{
bool
bRetValue
=
false
;
try
{
mAny
=
rXPropSet
->
getPropertyValue
(
aName
);
if
(
mAny
.
hasValue
()
)
{
bRetValue
=
true
;
eState
=
rXPropState
->
getPropertyState
(
aName
)
;
try
{
mAny
=
rXPropertySet
->
getPropertyValue
(
aName
);
if
(
mAny
.
hasValue
())
{
eState
=
rXPropertyState
->
getPropertyState
(
aName
)
;
return
true
;
}
}
catch
(
const
Exception
&
)
{
/* printf ("exception when trying to get value of property: %s\n", USS(aName)); */
}
return
bRetValue
;
}
catch
(
const
Exception
&
)
{
/* printf ("exception when trying to get value of property: %s\n", USS(aName)); */
}
return
false
;
}
void
DrawingML
::
WriteColor
(
sal_uInt32
nColor
,
sal_Int32
nAlpha
)
...
...
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