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
2f241ed7
Kaydet (Commit)
2f241ed7
authored
Mar 29, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
simplify/eat copypasta
Change-Id: I388c314b4baf72e889a0b23a1fbd1c0f0715e80d
üst
99ecd8ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
39 deletions
+6
-39
unotbl.cxx
sw/source/core/unocore/unotbl.cxx
+6
-39
No files found.
sw/source/core/unocore/unotbl.cxx
Dosyayı görüntüle @
2f241ed7
...
@@ -4262,9 +4262,10 @@ uno::Sequence< OUString > SwXCellRange::getRowDescriptions(void)
...
@@ -4262,9 +4262,10 @@ uno::Sequence< OUString > SwXCellRange::getRowDescriptions(void)
///@see SwXTextTable::setRowDescriptions (TODO: seems to be copy and paste programming here)
///@see SwXTextTable::setRowDescriptions (TODO: seems to be copy and paste programming here)
void
SwXCellRange
::
setRowDescriptions
(
const
uno
::
Sequence
<
OUString
>&
rRowDesc
)
void
SwXCellRange
::
setRowDescriptions
(
const
uno
::
Sequence
<
OUString
>&
rRowDesc
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
{
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
SwFrmFmt
*
pFmt
=
GetFrmFmt
();
SwFrmFmt
*
pFmt
=
GetFrmFmt
();
if
(
pFmt
)
if
(
pFmt
)
{
{
...
@@ -4295,48 +4296,14 @@ void SwXCellRange::setRowDescriptions(const uno::Sequence< OUString >& rRowDesc)
...
@@ -4295,48 +4296,14 @@ void SwXCellRange::setRowDescriptions(const uno::Sequence< OUString >& rRowDesc)
}
}
}
}
///@see SwXTextTable::setColumnDescriptions (TODO: seems to be copy and paste programming here)
uno
::
Sequence
<
OUString
>
SwXCellRange
::
getColumnDescriptions
(
void
)
uno
::
Sequence
<
OUString
>
SwXCellRange
::
getColumnDescriptions
(
void
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
{
SolarMutexGuard
aGuard
;
uno
::
Sequence
<
OUString
>
vResult
(
getColumnCount
());
const
sal_uInt16
nColCount
=
getColumnCount
();
setColumnDescriptions
(
vResult
);
if
(
!
nColCount
)
return
vResult
;
{
uno
::
RuntimeException
aRuntime
;
aRuntime
.
Message
=
"Table too complex"
;
throw
aRuntime
;
}
uno
::
Sequence
<
OUString
>
aRet
(
bFirstRowAsLabel
?
nColCount
-
1
:
nColCount
);
SwFrmFmt
*
pFmt
=
GetFrmFmt
();
if
(
pFmt
)
{
OUString
*
pArray
=
aRet
.
getArray
();
if
(
bFirstRowAsLabel
)
{
const
sal_uInt16
nStart
=
bFirstColumnAsLabel
?
1
:
0
;
for
(
sal_uInt16
i
=
nStart
;
i
<
nColCount
;
i
++
)
{
uno
::
Reference
<
table
::
XCell
>
xCell
=
getCellByPosition
(
i
,
0
);
if
(
!
xCell
.
is
())
{
throw
uno
::
RuntimeException
();
}
uno
::
Reference
<
text
::
XText
>
xText
(
xCell
,
uno
::
UNO_QUERY
);
pArray
[
i
-
nStart
]
=
xText
->
getString
();
}
}
else
{
OSL_FAIL
(
"Where do these labels come from?"
);
}
}
else
throw
uno
::
RuntimeException
();
return
aRet
;
}
}
///@see SwXTextTable::setColumnDescriptions (TODO: seems to be copy and paste programming here)
void
SwXCellRange
::
setColumnDescriptions
(
const
uno
::
Sequence
<
OUString
>&
ColumnDesc
)
void
SwXCellRange
::
setColumnDescriptions
(
const
uno
::
Sequence
<
OUString
>&
ColumnDesc
)
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