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
8e3c3adb
Kaydet (Commit)
8e3c3adb
authored
Mar 28, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
simplify, kill manual memory management
Change-Id: I1501cc9912ab555125933a3c5c9ffe9d1d7a9557
üst
0056e34a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
24 deletions
+14
-24
unotbl.cxx
sw/source/core/unocore/unotbl.cxx
+14
-24
No files found.
sw/source/core/unocore/unotbl.cxx
Dosyayı görüntüle @
8e3c3adb
...
@@ -98,6 +98,7 @@
...
@@ -98,6 +98,7 @@
#include <comphelper/servicehelper.hxx>
#include <comphelper/servicehelper.hxx>
#include <comphelper/string.hxx>
#include <comphelper/string.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <comphelper/sequence.hxx>
#include <comphelper/sequenceashashmap.hxx>
#include <comphelper/sequenceashashmap.hxx>
#include <swtable.hxx>
#include <swtable.hxx>
...
@@ -593,19 +594,17 @@ static SwXCell* lcl_CreateXCell(SwFrmFmt* pFmt, sal_Int32 nColumn, sal_Int32 nRo
...
@@ -593,19 +594,17 @@ static SwXCell* lcl_CreateXCell(SwFrmFmt* pFmt, sal_Int32 nColumn, sal_Int32 nRo
return
pXCell
;
return
pXCell
;
}
}
static
void
lcl_InspectLines
(
SwTableLines
&
rLines
,
std
::
vector
<
OUString
*
>&
rAllNames
)
static
void
lcl_InspectLines
(
SwTableLines
&
rLines
,
std
::
vector
<
OUString
>&
rAllNames
)
{
{
for
(
auto
pLine
:
rLines
)
for
(
auto
pLine
:
rLines
)
{
{
for
(
auto
pBox
:
pLine
->
GetTabBoxes
())
for
(
auto
pBox
:
pLine
->
GetTabBoxes
())
{
{
if
(
!
pBox
->
GetName
().
isEmpty
()
&&
pBox
->
getRowSpan
()
>
0
)
if
(
!
pBox
->
GetName
().
isEmpty
()
&&
pBox
->
getRowSpan
()
>
0
)
rAllNames
.
push_back
(
new
OUString
(
pBox
->
GetName
())
);
rAllNames
.
push_back
(
pBox
->
GetName
()
);
SwTableLines
&
rBoxLines
=
pBox
->
GetTabLines
();
SwTableLines
&
rBoxLines
=
pBox
->
GetTabLines
();
if
(
!
rBoxLines
.
empty
())
if
(
!
rBoxLines
.
empty
())
{
lcl_InspectLines
(
rBoxLines
,
rAllNames
);
lcl_InspectLines
(
rBoxLines
,
rAllNames
);
}
}
}
}
}
}
}
...
@@ -2128,27 +2127,18 @@ uno::Reference<table::XCell> SwXTextTable::getCellByName(const OUString& sCellNa
...
@@ -2128,27 +2127,18 @@ uno::Reference<table::XCell> SwXTextTable::getCellByName(const OUString& sCellNa
return
SwXCell
::
CreateXCell
(
pFmt
,
pBox
);
return
SwXCell
::
CreateXCell
(
pFmt
,
pBox
);
}
}
uno
::
Sequence
<
OUString
>
SwXTextTable
::
getCellNames
(
void
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
uno
::
Sequence
<
OUString
>
SwXTextTable
::
getCellNames
(
void
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
{
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
SwFrmFmt
*
pFmt
=
GetFrmFmt
();
SwFrmFmt
*
pFmt
(
GetFrmFmt
());
if
(
pFmt
)
if
(
!
pFmt
)
{
return
{};
SwTable
*
pTable
=
SwTable
::
FindTable
(
pFmt
);
SwTable
*
pTable
=
SwTable
::
FindTable
(
pFmt
);
// exists at the table and at all boxes
// exists at the table and at all boxes
SwTableLines
&
rTblLines
=
pTable
->
GetTabLines
();
SwTableLines
&
rTblLines
=
pTable
->
GetTabLines
();
std
::
vector
<
OUString
*>
aAllNames
;
std
::
vector
<
OUString
>
aAllNames
;
lcl_InspectLines
(
rTblLines
,
aAllNames
);
lcl_InspectLines
(
rTblLines
,
aAllNames
);
uno
::
Sequence
<
OUString
>
aRet
(
static_cast
<
sal_Int32
>
(
aAllNames
.
size
())
);
return
comphelper
::
containerToSequence
<
OUString
>
(
aAllNames
);
OUString
*
pArray
=
aRet
.
getArray
();
for
(
size_t
i
=
0
;
i
<
aAllNames
.
size
();
++
i
)
{
pArray
[
i
]
=
*
aAllNames
[
i
];
delete
aAllNames
[
i
];
}
return
aRet
;
}
return
uno
::
Sequence
<
OUString
>
();
}
}
uno
::
Reference
<
text
::
XTextTableCursor
>
SwXTextTable
::
createCursorByCellName
(
const
OUString
&
sCellName
)
uno
::
Reference
<
text
::
XTextTableCursor
>
SwXTextTable
::
createCursorByCellName
(
const
OUString
&
sCellName
)
...
...
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