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
d7b6b1dc
Kaydet (Commit)
d7b6b1dc
authored
Nis 11, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use getCells() here
Change-Id: Iff3997af302a6ddbfd21fb25cd7f0b94a9a107fe
üst
e5796e02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
unotbl.cxx
sw/source/core/unocore/unotbl.cxx
+7
-10
No files found.
sw/source/core/unocore/unotbl.cxx
Dosyayı görüntüle @
d7b6b1dc
...
...
@@ -3639,28 +3639,25 @@ uno::Sequence< uno::Sequence< uno::Any > > SAL_CALL SwXCellRange::getDataArray()
const
sal_uInt16
nColCount
=
getColumnCount
();
if
(
!
nRowCount
||
!
nColCount
)
throw
uno
::
RuntimeException
(
"Table too complex"
,
static_cast
<
cppu
::
OWeakObject
*>
(
this
));
SwFrmFmt
*
pFmt
(
GetFrmFmt
(
));
lcl_EnsureCoreConnected
(
GetFrmFmt
(),
static_cast
<
cppu
::
OWeakObject
*>
(
this
));
uno
::
Sequence
<
uno
::
Sequence
<
uno
::
Any
>
>
aRowSeq
(
nRowCount
);
if
(
!
pFmt
)
throw
uno
::
RuntimeException
();
sal_uInt16
nRow
=
0
;
auto
vCells
(
getCells
());
auto
pCurrentCell
(
vCells
.
begin
());
for
(
auto
&
rRow
:
aRowSeq
)
{
rRow
=
uno
::
Sequence
<
uno
::
Any
>
(
nColCount
);
sal_uInt16
nCol
=
0
;
for
(
auto
&
rCellAny
:
rRow
)
{
SwXCell
*
pXCell
(
lcl_CreateXCell
(
pFmt
,
nCol
++
,
nRow
));
uno
::
Reference
<
table
::
XCell
>
xCell
=
pXCell
;
// to prevent distruction in UNO calls
SwTableBox
*
pBox
=
pXCell
?
pXCell
->
GetTblBox
()
:
nullptr
;
auto
pCell
(
static_cast
<
SwXCell
*>
(
pCurrentCell
->
get
()));
SwTableBox
*
pBox
=
pCell
?
pCell
->
GetTblBox
()
:
nullptr
;
if
(
!
pBox
)
throw
uno
::
RuntimeException
();
// check if table box value item is set
SwFrmFmt
*
pBoxFmt
(
pBox
->
GetFrmFmt
());
const
bool
bIsNum
=
pBoxFmt
->
GetItemState
(
RES_BOXATR_VALUE
,
false
)
==
SfxItemState
::
SET
;
rCellAny
=
bIsNum
?
uno
::
makeAny
(
sw_getValue
(
*
pXCell
))
:
uno
::
makeAny
(
lcl_getString
(
*
pXCell
));
rCellAny
=
bIsNum
?
uno
::
makeAny
(
sw_getValue
(
*
pCell
))
:
uno
::
makeAny
(
lcl_getString
(
*
pCell
));
++
pCurrentCell
;
}
++
nRow
;
}
return
aRowSeq
;
}
...
...
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