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
db123d18
Kaydet (Commit)
db123d18
authored
Mar 30, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
lets get a XTest reference right away
Change-Id: Ib805a20cd3f121ae1d021a28e3b9908afdad4ab4
üst
84e71f3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
21 deletions
+8
-21
unotbl.cxx
sw/source/core/unocore/unotbl.cxx
+8
-21
No files found.
sw/source/core/unocore/unotbl.cxx
Dosyayı görüntüle @
db123d18
...
...
@@ -4025,11 +4025,8 @@ uno::Sequence<OUString> SwXCellRange::getRowDescriptions(void)
const
sal_uInt16
nStart
=
m_bFirstRowAsLabel
?
1
:
0
;
for
(
sal_uInt16
i
=
nStart
;
i
<
nRowCount
;
i
++
)
{
auto
xCell
=
getCellByPosition
(
0
,
i
);
if
(
!
xCell
.
is
())
throw
uno
::
RuntimeException
();
uno
::
Reference
<
text
::
XText
>
xText
(
xCell
,
uno
::
UNO_QUERY
);
pArray
[
i
-
nStart
]
=
xText
->
getString
();
const
uno
::
Reference
<
text
::
XText
>
xCell
(
getCellByPosition
(
0
,
i
),
uno
::
UNO_QUERY_THROW
);
pArray
[
i
-
nStart
]
=
xCell
->
getString
();
}
return
aRet
;
}
...
...
@@ -4048,16 +4045,12 @@ uno::Sequence<OUString> SwXCellRange::getColumnDescriptions(void)
const
sal_uInt16
nStart
=
m_bFirstColumnAsLabel
?
1
:
0
;
for
(
sal_uInt16
i
=
nStart
;
i
<
nColumnCount
;
i
++
)
{
auto
xCell
=
getCellByPosition
(
i
,
0
);
if
(
!
xCell
.
is
())
throw
uno
::
RuntimeException
();
uno
::
Reference
<
text
::
XText
>
xText
(
xCell
,
uno
::
UNO_QUERY
);
pArray
[
i
-
nStart
]
=
xText
->
getString
();
const
uno
::
Reference
<
text
::
XText
>
xCell
(
getCellByPosition
(
i
,
0
),
uno
::
UNO_QUERY_THROW
);
pArray
[
i
-
nStart
]
=
xCell
->
getString
();
}
return
aRet
;
}
///@see SwXTextTable::setRowDescriptions (TODO: seems to be copy and paste programming here)
void
SwXCellRange
::
setRowDescriptions
(
const
uno
::
Sequence
<
OUString
>&
rRowDesc
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
...
...
@@ -4072,11 +4065,8 @@ void SwXCellRange::setRowDescriptions(const uno::Sequence<OUString>& rRowDesc)
throw
uno
::
RuntimeException
(
"Illegal arguments"
,
static_cast
<
cppu
::
OWeakObject
*>
(
this
));
for
(
sal_uInt16
i
=
nStart
;
i
<
nRowCount
;
i
++
)
{
uno
::
Reference
<
table
::
XCell
>
xCell
=
getCellByPosition
(
0
,
i
);
if
(
!
xCell
.
is
())
throw
uno
::
RuntimeException
();
uno
::
Reference
<
text
::
XText
>
xText
(
xCell
,
uno
::
UNO_QUERY
);
xText
->
setString
(
pArray
[
i
-
nStart
]);
uno
::
Reference
<
text
::
XText
>
xCell
(
getCellByPosition
(
0
,
i
),
uno
::
UNO_QUERY_THROW
);
xCell
->
setString
(
pArray
[
i
-
nStart
]);
}
}
void
SwXCellRange
::
setColumnDescriptions
(
const
uno
::
Sequence
<
OUString
>&
rColumnDesc
)
...
...
@@ -4093,11 +4083,8 @@ void SwXCellRange::setColumnDescriptions(const uno::Sequence<OUString>& rColumnD
const
OUString
*
pArray
=
rColumnDesc
.
getConstArray
();
for
(
sal_uInt16
i
=
nStart
;
i
<
nColumnCount
;
i
++
)
{
uno
::
Reference
<
table
::
XCell
>
xCell
=
getCellByPosition
(
i
,
0
);
if
(
!
xCell
.
is
())
throw
uno
::
RuntimeException
();
uno
::
Reference
<
text
::
XText
>
xText
(
xCell
,
uno
::
UNO_QUERY
);
xText
->
setString
(
pArray
[
i
-
nStart
]);
uno
::
Reference
<
text
::
XText
>
xCell
(
getCellByPosition
(
i
,
0
),
uno
::
UNO_QUERY_THROW
);
xCell
->
setString
(
pArray
[
i
-
nStart
]);
}
}
...
...
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