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
b845d236
Kaydet (Commit)
b845d236
authored
Nis 11, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use getCells()
Change-Id: I11ac9c87ac1d17b2ebc847e268d935c23f129ce1
üst
d7b6b1dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
unotbl.cxx
sw/source/core/unocore/unotbl.cxx
+15
-15
No files found.
sw/source/core/unocore/unotbl.cxx
Dosyayı görüntüle @
b845d236
...
@@ -3704,25 +3704,25 @@ uno::Sequence< uno::Sequence< double > > SwXCellRange::getData(void) throw( uno:
...
@@ -3704,25 +3704,25 @@ uno::Sequence< uno::Sequence< double > > SwXCellRange::getData(void) throw( uno:
const
sal_uInt16
nColCount
=
getColumnCount
();
const
sal_uInt16
nColCount
=
getColumnCount
();
if
(
!
nRowCount
||
!
nColCount
)
if
(
!
nRowCount
||
!
nColCount
)
throw
uno
::
RuntimeException
(
"Table too complex"
,
static_cast
<
cppu
::
OWeakObject
*>
(
this
));
throw
uno
::
RuntimeException
(
"Table too complex"
,
static_cast
<
cppu
::
OWeakObject
*>
(
this
));
uno
::
Sequence
<
uno
::
Sequence
<
double
>
>
aRowSeq
(
m_bFirstRowAsLabel
?
nRowCount
-
1
:
nRowCount
);
if
(
m_bFirstColumnAsLabel
||
m_bFirstRowAsLabel
)
lcl_EnsureCoreConnected
(
GetFrmFmt
(),
static_cast
<
cppu
::
OWeakObject
*>
(
this
));
uno
::
Sequence
<
double
>*
pRowArray
=
aRowSeq
.
getArray
();
const
sal_uInt16
nRowStart
=
m_bFirstRowAsLabel
?
1
:
0
;
for
(
sal_uInt16
nRow
=
nRowStart
;
nRow
<
nRowCount
;
nRow
++
)
{
{
uno
::
Sequence
<
double
>
aColSeq
(
m_bFirstColumnAsLabel
?
nColCount
-
1
:
nColCount
);
uno
::
Reference
<
chart
::
XChartDataArray
>
xDataRange
(
getCellRangeByPosition
(
m_bFirstRowAsLabel
?
1
:
0
,
m_bFirstColumnAsLabel
?
1
:
0
,
double
*
pArray
=
aColSeq
.
getArray
();
nRowCount
,
nColCount
),
uno
::
UNO_QUERY
);
const
sal_uInt16
nColStart
=
m_bFirstColumnAsLabel
?
1
:
0
;
return
xDataRange
->
getData
();
for
(
sal_uInt16
nCol
=
nColStart
;
nCol
<
nColCount
;
nCol
++
)
}
uno
::
Sequence
<
uno
::
Sequence
<
double
>
>
vRows
(
nColCount
);
auto
vCells
(
getCells
());
auto
pCurrentCell
(
vCells
.
begin
());
for
(
auto
&
rRow
:
vRows
)
{
rRow
=
uno
::
Sequence
<
double
>
(
nRowCount
);
for
(
auto
&
rValue
:
rRow
)
{
{
uno
::
Reference
<
table
::
XCell
>
xCell
=
getCellByPosition
(
nCol
,
nRow
);
rValue
=
(
*
pCurrentCell
)
->
getValue
();
if
(
!
xCell
.
is
())
++
pCurrentCell
;
throw
uno
::
RuntimeException
();
pArray
[
nCol
-
nColStart
]
=
xCell
->
getValue
();
}
}
pRowArray
[
nRow
-
nRowStart
]
=
aColSeq
;
}
}
return
aRowSeq
;
return
vRows
;
}
}
void
SwXCellRange
::
setData
(
const
uno
::
Sequence
<
uno
::
Sequence
<
double
>
>&
rData
)
void
SwXCellRange
::
setData
(
const
uno
::
Sequence
<
uno
::
Sequence
<
double
>
>&
rData
)
...
...
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