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
1ad4751b
Kaydet (Commit)
1ad4751b
authored
Haz 28, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
now use GetAny() here
Change-Id: I23b6f2c53841a4f105d911d72c4d7fe1c077ed82
üst
f7d603a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
28 deletions
+14
-28
unochart.cxx
sw/source/core/unocore/unochart.cxx
+14
-28
No files found.
sw/source/core/unocore/unochart.cxx
Dosyayı görüntüle @
1ad4751b
...
@@ -2009,34 +2009,6 @@ sal_Int64 SAL_CALL SwChartDataSequence::getSomething( const uno::Sequence< sal_I
...
@@ -2009,34 +2009,6 @@ sal_Int64 SAL_CALL SwChartDataSequence::getSomething( const uno::Sequence< sal_I
return
0
;
return
0
;
}
}
uno
::
Sequence
<
uno
::
Any
>
SAL_CALL
SwChartDataSequence
::
getData
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
SolarMutexGuard
aGuard
;
if
(
bDisposed
)
throw
lang
::
DisposedException
();
SwFrameFormat
*
pTableFormat
=
GetFrameFormat
();
if
(
!
pTableFormat
)
return
{};
SwTable
*
pTable
=
SwTable
::
FindTable
(
pTableFormat
);
if
(
pTable
->
IsTableComplex
())
return
{};
SwRangeDescriptor
aDesc
;
if
(
!
FillRangeDescriptor
(
aDesc
,
GetCellRangeName
(
*
pTableFormat
,
*
pTableCrsr
)))
return
{};
auto
vData
(
SwXCellRange
(
pTableCrsr
,
*
pTableFormat
,
aDesc
).
getDataArray
());
if
(
!
vData
.
getLength
())
return
{};
std
::
vector
<
uno
::
Any
>
vResult
;
vResult
.
reserve
(
vData
.
getLength
()
*
vData
[
0
].
getLength
());
for
(
auto
&
rRow
:
vData
)
std
::
copy
(
rRow
.
begin
(),
rRow
.
end
(),
std
::
back_inserter
(
vResult
));
return
comphelper
::
containerToSequence
(
vResult
);
}
OUString
SAL_CALL
SwChartDataSequence
::
getSourceRangeRepresentation
(
)
OUString
SAL_CALL
SwChartDataSequence
::
getSourceRangeRepresentation
(
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
...
@@ -2199,6 +2171,20 @@ uno::Sequence< OUString > SAL_CALL SwChartDataSequence::getTextualData()
...
@@ -2199,6 +2171,20 @@ uno::Sequence< OUString > SAL_CALL SwChartDataSequence::getTextualData()
return
vTextData
;
return
vTextData
;
}
}
uno
::
Sequence
<
uno
::
Any
>
SAL_CALL
SwChartDataSequence
::
getData
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
SolarMutexGuard
aGuard
;
auto
vCells
(
getCells
());
uno
::
Sequence
<
uno
::
Any
>
vAnyData
(
vCells
.
size
());
std
::
transform
(
vCells
.
begin
(),
vCells
.
end
(),
vAnyData
.
begin
(),
[]
(
decltype
(
vCells
)
::
value_type
&
xCell
)
{
return
static_cast
<
SwXCell
*>
(
xCell
.
get
())
->
GetAny
();
});
return
vAnyData
;
}
uno
::
Sequence
<
double
>
SAL_CALL
SwChartDataSequence
::
getNumericalData
()
uno
::
Sequence
<
double
>
SAL_CALL
SwChartDataSequence
::
getNumericalData
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
{
...
...
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