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
41627241
Kaydet (Commit)
41627241
authored
Tem 20, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Michael Stahl
Tem 26, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert SV_DECL_VARARR_SORT(_MergePos) to o3tl::sorted_vector
Change-Id: I164cbdb72d76a04a567e82d6dcb217139d451059
üst
64e88f1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
tblsel.cxx
sw/source/core/frmedt/tblsel.cxx
+12
-13
No files found.
sw/source/core/frmedt/tblsel.cxx
Dosyayı görüntüle @
41627241
...
...
@@ -83,10 +83,10 @@ struct _CmpLPt
_CmpLPt
(
const
Point
&
rPt
,
const
SwTableBox
*
pBox
,
sal_Bool
bVertical
);
sal_B
ool
operator
==
(
const
_CmpLPt
&
rCmp
)
const
b
ool
operator
==
(
const
_CmpLPt
&
rCmp
)
const
{
return
X
()
==
rCmp
.
X
()
&&
Y
()
==
rCmp
.
Y
()
?
sal_True
:
sal_False
;
}
sal_B
ool
operator
<
(
const
_CmpLPt
&
rCmp
)
const
b
ool
operator
<
(
const
_CmpLPt
&
rCmp
)
const
{
if
(
bVert
)
return
X
()
>
rCmp
.
X
()
||
(
X
()
==
rCmp
.
X
()
&&
Y
()
<
rCmp
.
Y
()
)
...
...
@@ -101,8 +101,7 @@ struct _CmpLPt
};
SV_DECL_VARARR_SORT
(
_MergePos
,
_CmpLPt
,
0
)
SV_IMPL_VARARR_SORT
(
_MergePos
,
_CmpLPt
)
typedef
o3tl
::
sorted_vector
<
_CmpLPt
>
_MergePos
;
struct
_Sort_CellFrm
...
...
@@ -1002,7 +1001,7 @@ void GetMergeSel( const SwPaM& rPam, SwSelBoxes& rBoxes,
// this box is selected
pLastBox
=
pBox
;
rBoxes
.
insert
(
pBox
);
aPosArr
.
I
nsert
(
aPosArr
.
i
nsert
(
_CmpLPt
(
(
pCell
->
Frm
().
*
fnRect
->
fnGetPos
)(),
pBox
,
bVert
)
);
...
...
@@ -1022,7 +1021,7 @@ void GetMergeSel( const SwPaM& rPam, SwSelBoxes& rBoxes,
#if OSL_DEBUG_LEVEL > 1
Point
aInsPoint
(
(
pCell
->
Frm
().
*
fnRect
->
fnGetPos
)()
);
#endif
aPosArr
.
I
nsert
(
aPosArr
.
i
nsert
(
_CmpLPt
(
(
pCell
->
Frm
().
*
fnRect
->
fnGetPos
)(),
pBox
,
bVert
)
);
}
...
...
@@ -1070,7 +1069,7 @@ void GetMergeSel( const SwPaM& rPam, SwSelBoxes& rBoxes,
// this box is selected
pLastBox
=
pBox
;
rBoxes
.
insert
(
pBox
);
aPosArr
.
I
nsert
(
aPosArr
.
i
nsert
(
_CmpLPt
(
(
pCell
->
Frm
().
*
fnRect
->
fnGetPos
)(),
pBox
,
bVert
)
);
...
...
@@ -1112,7 +1111,7 @@ void GetMergeSel( const SwPaM& rPam, SwSelBoxes& rBoxes,
pLastBox
=
pBox
;
rBoxes
.
insert
(
pBox
);
aPosArr
.
I
nsert
(
_CmpLPt
(
Point
(
rUnion
.
Left
(),
aPosArr
.
i
nsert
(
_CmpLPt
(
Point
(
rUnion
.
Left
(),
pCell
->
Frm
().
Top
()),
pBox
,
bVert
));
if
(
pUndo
)
...
...
@@ -1290,13 +1289,13 @@ void GetMergeSel( const SwPaM& rPam, SwSelBoxes& rBoxes,
// DEL_ALL_EMPTY_BOXES
nWidth
=
0
;
long
nY
=
aPosArr
.
Count
()
?
long
nY
=
!
aPosArr
.
empty
()
?
(
bVert
?
aPosArr
[
0
].
X
()
:
aPosArr
[
0
].
Y
()
)
:
0
;
for
(
sal_uInt16
n
=
0
;
n
<
aPosArr
.
Count
();
++
n
)
for
(
sal_uInt16
n
=
0
;
n
<
aPosArr
.
size
();
++
n
)
{
const
_CmpLPt
&
rPt
=
aPosArr
[
n
];
if
(
bCalcWidth
)
...
...
@@ -1312,7 +1311,7 @@ void GetMergeSel( const SwPaM& rPam, SwSelBoxes& rBoxes,
if
(
pUndo
)
pUndo
->
SaveCollection
(
*
rPt
.
pSelBox
);
aPosArr
.
Remove
(
n
,
1
);
aPosArr
.
erase
(
aPosArr
.
begin
()
+
n
);
--
n
;
}
}
...
...
@@ -1346,7 +1345,7 @@ void GetMergeSel( const SwPaM& rPam, SwSelBoxes& rBoxes,
}
//Block to delete SwPaM, SwPosition from stack
if
(
aPosArr
.
Count
()
)
if
(
!
aPosArr
.
empty
()
)
{
SwTxtNode
*
pTxtNd
=
0
;
SwPosition
aInsPos
(
*
(
*
ppMergeBox
)
->
GetSttNd
()
);
...
...
@@ -1354,7 +1353,7 @@ void GetMergeSel( const SwPaM& rPam, SwSelBoxes& rBoxes,
SwPaM
aPam
(
aInsPos
);
for
(
sal_uInt16
n
=
0
;
n
<
aPosArr
.
Count
();
++
n
)
for
(
sal_uInt16
n
=
0
;
n
<
aPosArr
.
size
();
++
n
)
{
const
_CmpLPt
&
rPt
=
aPosArr
[
n
];
aPam
.
GetPoint
()
->
nNode
.
Assign
(
*
rPt
.
pSelBox
->
GetSttNd
()
->
...
...
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