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
c76b4dd2
Kaydet (Commit)
c76b4dd2
authored
Nis 30, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1296216 Uncaught exception
Change-Id: Id34a655c554e78476e3bd83c87de3cbe1b557980
üst
c675a2d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
26 deletions
+53
-26
DataSeriesPointWrapper.cxx
...rce/controller/chartapiwrapper/DataSeriesPointWrapper.cxx
+53
-26
No files found.
chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx
Dosyayı görüntüle @
c76b4dd2
...
...
@@ -55,6 +55,8 @@
#include <com/sun/star/drawing/FillStyle.hpp>
#include <com/sun/star/drawing/LineJoint.hpp>
#include <com/sun/star/drawing/LineStyle.hpp>
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include <cppuhelper/exc_hlp.hxx>
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
chart
::
wrapper
;
...
...
@@ -640,38 +642,63 @@ beans::PropertyState SAL_CALL DataSeriesPointWrapper::getPropertyState( const OU
throw
(
beans
::
UnknownPropertyException
,
uno
::
RuntimeException
,
std
::
exception
)
{
beans
::
PropertyState
aState
(
beans
::
PropertyState_DIRECT_VALUE
);
if
(
rPropertyName
==
"SymbolBitmapURL"
)
try
{
uno
::
Any
aAny
=
WrappedPropertySet
::
getPropertyValue
(
"SymbolType"
);
sal_Int32
nVal
=
com
::
sun
::
star
::
chart
::
ChartSymbolType
::
NONE
;
if
(
aAny
>>=
nVal
)
if
(
rPropertyName
==
"SymbolBitmapURL"
)
{
if
(
nVal
!=
com
::
sun
::
star
::
chart
::
ChartSymbolType
::
BITMAPURL
)
return
beans
::
PropertyState
::
PropertyState_DEFAULT_VALUE
;
uno
::
Any
aAny
=
WrappedPropertySet
::
getPropertyValue
(
"SymbolType"
);
sal_Int32
nVal
=
com
::
sun
::
star
::
chart
::
ChartSymbolType
::
NONE
;
if
(
aAny
>>=
nVal
)
{
if
(
nVal
!=
com
::
sun
::
star
::
chart
::
ChartSymbolType
::
BITMAPURL
)
return
beans
::
PropertyState
::
PropertyState_DEFAULT_VALUE
;
}
}
}
if
(
m_eType
==
DATA_SERIES
)
aState
=
WrappedPropertySet
::
getPropertyState
(
rPropertyName
);
else
{
if
(
rPropertyName
==
"FillColor"
)
if
(
m_eType
==
DATA_SERIES
)
aState
=
WrappedPropertySet
::
getPropertyState
(
rPropertyName
);
else
{
Reference
<
beans
::
XPropertySet
>
xSeriesProp
(
getDataSeries
(),
uno
::
UNO_QUERY
);
bool
bVaryColorsByPoint
=
false
;
if
(
xSeriesProp
.
is
()
&&
(
xSeriesProp
->
getPropertyValue
(
"VaryColorsByPoint"
)
>>=
bVaryColorsByPoint
)
&&
bVaryColorsByPoint
)
return
beans
::
PropertyState_DIRECT_VALUE
;
if
(
rPropertyName
==
"FillColor"
)
{
Reference
<
beans
::
XPropertySet
>
xSeriesProp
(
getDataSeries
(),
uno
::
UNO_QUERY
);
bool
bVaryColorsByPoint
=
false
;
if
(
xSeriesProp
.
is
()
&&
(
xSeriesProp
->
getPropertyValue
(
"VaryColorsByPoint"
)
>>=
bVaryColorsByPoint
)
&&
bVaryColorsByPoint
)
return
beans
::
PropertyState_DIRECT_VALUE
;
}
else
if
(
rPropertyName
==
"Lines"
||
rPropertyName
==
"SymbolType"
||
rPropertyName
==
"SymbolSize"
)
return
WrappedPropertySet
::
getPropertyState
(
rPropertyName
);
uno
::
Any
aDefault
(
getPropertyDefault
(
rPropertyName
)
);
uno
::
Any
aValue
(
getPropertyValue
(
rPropertyName
)
);
if
(
aDefault
==
aValue
)
aState
=
beans
::
PropertyState_DEFAULT_VALUE
;
}
else
if
(
rPropertyName
==
"Lines"
||
rPropertyName
==
"SymbolType"
||
rPropertyName
==
"SymbolSize"
)
return
WrappedPropertySet
::
getPropertyState
(
rPropertyName
);
uno
::
Any
aDefault
(
getPropertyDefault
(
rPropertyName
)
);
uno
::
Any
aValue
(
getPropertyValue
(
rPropertyName
)
);
if
(
aDefault
==
aValue
)
aState
=
beans
::
PropertyState_DEFAULT_VALUE
;
}
catch
(
const
beans
::
UnknownPropertyException
&
)
{
throw
;
}
catch
(
const
uno
::
RuntimeException
&
)
{
throw
;
}
catch
(
const
lang
::
WrappedTargetException
&
e
)
{
css
::
uno
::
Any
a
(
e
.
TargetException
);
throw
css
::
lang
::
WrappedTargetRuntimeException
(
"wrapped Exception "
+
e
.
Message
,
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
(),
a
);
}
catch
(
const
uno
::
Exception
&
e
)
{
css
::
uno
::
Any
a
(
cppu
::
getCaughtException
());
throw
css
::
lang
::
WrappedTargetRuntimeException
(
"wrapped Exception "
+
e
.
Message
,
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
(),
a
);
}
return
aState
;
}
...
...
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