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
44460044
Kaydet (Commit)
44460044
authored
Agu 07, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#706946 Uncaught exception
Change-Id: I836e353ae3a8274842465719b3d8ae82ad433375
üst
e8815714
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
3 deletions
+28
-3
vbachartobjects.cxx
sc/source/ui/vba/vbachartobjects.cxx
+28
-3
No files found.
sc/source/ui/vba/vbachartobjects.cxx
Dosyayı görüntüle @
44460044
...
@@ -43,9 +43,34 @@ public:
...
@@ -43,9 +43,34 @@ public:
ChartObjectEnumerationImpl
(
const
uno
::
Reference
<
uno
::
XComponentContext
>&
xContext
,
const
uno
::
Reference
<
container
::
XEnumeration
>&
xEnumeration
,
const
uno
::
Reference
<
drawing
::
XDrawPageSupplier
>&
_xDrawPageSupplier
,
const
uno
::
Reference
<
XHelperInterface
>&
_xParent
)
throw
(
uno
::
RuntimeException
)
:
EnumerationHelperImpl
(
_xParent
,
xContext
,
xEnumeration
),
xDrawPageSupplier
(
_xDrawPageSupplier
)
{}
ChartObjectEnumerationImpl
(
const
uno
::
Reference
<
uno
::
XComponentContext
>&
xContext
,
const
uno
::
Reference
<
container
::
XEnumeration
>&
xEnumeration
,
const
uno
::
Reference
<
drawing
::
XDrawPageSupplier
>&
_xDrawPageSupplier
,
const
uno
::
Reference
<
XHelperInterface
>&
_xParent
)
throw
(
uno
::
RuntimeException
)
:
EnumerationHelperImpl
(
_xParent
,
xContext
,
xEnumeration
),
xDrawPageSupplier
(
_xDrawPageSupplier
)
{}
virtual
uno
::
Any
SAL_CALL
nextElement
(
)
throw
(
container
::
NoSuchElementException
,
lang
::
WrappedTargetException
,
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
virtual
uno
::
Any
SAL_CALL
nextElement
(
)
throw
(
container
::
NoSuchElementException
,
lang
::
WrappedTargetException
,
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
{
{
uno
::
Reference
<
table
::
XTableChart
>
xTableChart
(
m_xEnumeration
->
nextElement
(),
uno
::
UNO_QUERY_THROW
);
uno
::
Any
ret
;
// parent Object is sheet
return
uno
::
makeAny
(
uno
::
Reference
<
excel
::
XChartObject
>
(
new
ScVbaChartObject
(
m_xParent
,
m_xContext
,
xTableChart
,
xDrawPageSupplier
)
)
);
try
{
uno
::
Reference
<
table
::
XTableChart
>
xTableChart
(
m_xEnumeration
->
nextElement
(),
uno
::
UNO_QUERY_THROW
);
// parent Object is sheet
ret
=
uno
::
makeAny
(
uno
::
Reference
<
excel
::
XChartObject
>
(
new
ScVbaChartObject
(
m_xParent
,
m_xContext
,
xTableChart
,
xDrawPageSupplier
)
)
);
}
catch
(
const
lang
::
WrappedTargetException
&
)
{
throw
;
}
catch
(
const
container
::
NoSuchElementException
&
)
{
throw
;
}
catch
(
const
uno
::
RuntimeException
&
)
{
throw
;
}
catch
(
const
uno
::
Exception
&
e
)
{
throw
lang
::
WrappedTargetException
(
"Error creating ScVbaChartObject!"
,
static_cast
<
OWeakObject
*
>
(
this
),
makeAny
(
e
)
);
}
return
ret
;
}
}
};
};
...
...
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