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
4fbbc5a6
Kaydet (Commit)
4fbbc5a6
authored
Haz 22, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Michael Stahl
Haz 25, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert CollectCells methods from Svptrarr to std::vector
Change-Id: Ic248760338b759476971821252bcfd838e901fef
üst
d515ae78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
ndtbl1.cxx
sw/source/core/docnode/ndtbl1.cxx
+16
-13
No files found.
sw/source/core/docnode/ndtbl1.cxx
Dosyayı görüntüle @
4fbbc5a6
...
@@ -557,14 +557,14 @@ sal_Bool SwDoc::GetRowBackground( const SwCursor& rCursor, SvxBrushItem &rToFill
...
@@ -557,14 +557,14 @@ sal_Bool SwDoc::GetRowBackground( const SwCursor& rCursor, SvxBrushItem &rToFill
#* Class : SwDoc
#* Class : SwDoc
#* Methoden : SetTabBorders(), GetTabBorders()
#* Methoden : SetTabBorders(), GetTabBorders()
#***********************************************************************/
#***********************************************************************/
inline
void
InsertCell
(
SvPtrarr
&
rCellArr
,
SwCellFrm
*
pCellFrm
)
inline
void
InsertCell
(
std
::
vector
<
SwCellFrm
*>
&
rCellArr
,
SwCellFrm
*
pCellFrm
)
{
{
if
(
USHRT_MAX
==
rCellArr
.
GetPos
(
pCellFrm
)
)
if
(
rCellArr
.
end
()
==
std
::
find
(
rCellArr
.
begin
(),
rCellArr
.
end
(),
pCellFrm
)
)
rCellArr
.
Insert
(
pCellFrm
,
rCellArr
.
Count
()
);
rCellArr
.
push_back
(
pCellFrm
);
}
}
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
void
lcl_CollectCells
(
SvPtrarr
&
rArr
,
const
SwRect
&
rUnion
,
void
lcl_CollectCells
(
std
::
vector
<
SwCellFrm
*>
&
rArr
,
const
SwRect
&
rUnion
,
SwTabFrm
*
pTab
)
SwTabFrm
*
pTab
)
{
{
SwLayoutFrm
*
pCell
=
pTab
->
FirstCell
();
SwLayoutFrm
*
pCell
=
pTab
->
FirstCell
();
...
@@ -663,7 +663,8 @@ void SwDoc::SetTabBorders( const SwCursor& rCursor, const SfxItemSet& rSet )
...
@@ -663,7 +663,8 @@ void SwDoc::SetTabBorders( const SwCursor& rCursor, const SfxItemSet& rSet )
const
SwRect
&
rUnion
=
pUnion
->
GetUnion
();
const
SwRect
&
rUnion
=
pUnion
->
GetUnion
();
const
sal_Bool
bLast
=
i
==
aUnions
.
size
()
-
1
?
sal_True
:
sal_False
;
const
sal_Bool
bLast
=
i
==
aUnions
.
size
()
-
1
?
sal_True
:
sal_False
;
SvPtrarr
aCellArr
(
255
);
std
::
vector
<
SwCellFrm
*>
aCellArr
;
aCellArr
.
reserve
(
255
);
::
lcl_CollectCells
(
aCellArr
,
pUnion
->
GetUnion
(),
pTab
);
::
lcl_CollectCells
(
aCellArr
,
pUnion
->
GetUnion
(),
pTab
);
//Alle Zellenkanten, die mit dem UnionRect uebereinstimmen oder
//Alle Zellenkanten, die mit dem UnionRect uebereinstimmen oder
...
@@ -674,9 +675,9 @@ void SwDoc::SetTabBorders( const SwCursor& rCursor, const SfxItemSet& rSet )
...
@@ -674,9 +675,9 @@ void SwDoc::SetTabBorders( const SwCursor& rCursor, const SfxItemSet& rSet )
//handelt doch keine Aussenkanten sein.
//handelt doch keine Aussenkanten sein.
//Aussenkanten werden links, rechts, oben und unten gesetzt.
//Aussenkanten werden links, rechts, oben und unten gesetzt.
//Innenkanten werden nur oben und links gesetzt.
//Innenkanten werden nur oben und links gesetzt.
for
(
sal_uInt16
j
=
0
;
j
<
aCellArr
.
Count
();
++
j
)
for
(
sal_uInt16
j
=
0
;
j
<
aCellArr
.
size
();
++
j
)
{
{
SwCellFrm
*
pCell
=
(
SwCellFrm
*
)
aCellArr
[
j
];
SwCellFrm
*
pCell
=
aCellArr
[
j
];
const
sal_Bool
bVert
=
pTab
->
IsVertical
();
const
sal_Bool
bVert
=
pTab
->
IsVertical
();
const
sal_Bool
bRTL
=
pTab
->
IsRightToLeft
();
const
sal_Bool
bRTL
=
pTab
->
IsRightToLeft
();
sal_Bool
bTopOver
,
bLeftOver
,
bRightOver
,
bBottomOver
;
sal_Bool
bTopOver
,
bLeftOver
,
bRightOver
,
bBottomOver
;
...
@@ -859,12 +860,13 @@ void SwDoc::SetTabLineStyle( const SwCursor& rCursor,
...
@@ -859,12 +860,13 @@ void SwDoc::SetTabLineStyle( const SwCursor& rCursor,
{
{
SwSelUnion
*
pUnion
=
&
aUnions
[
i
];
SwSelUnion
*
pUnion
=
&
aUnions
[
i
];
SwTabFrm
*
pTab
=
pUnion
->
GetTable
();
SwTabFrm
*
pTab
=
pUnion
->
GetTable
();
SvPtrarr
aCellArr
(
255
);
std
::
vector
<
SwCellFrm
*>
aCellArr
;
aCellArr
.
reserve
(
255
);
::
lcl_CollectCells
(
aCellArr
,
pUnion
->
GetUnion
(),
pTab
);
::
lcl_CollectCells
(
aCellArr
,
pUnion
->
GetUnion
(),
pTab
);
for
(
sal_uInt16
j
=
0
;
j
<
aCellArr
.
Count
();
++
j
)
for
(
sal_uInt16
j
=
0
;
j
<
aCellArr
.
size
();
++
j
)
{
{
SwCellFrm
*
pCell
=
(
SwCellFrm
*
)
aCellArr
[
j
];
SwCellFrm
*
pCell
=
aCellArr
[
j
];
//Grundsaetzlich nichts setzen in HeadlineRepeats.
//Grundsaetzlich nichts setzen in HeadlineRepeats.
if
(
pTab
->
IsFollow
()
&&
pTab
->
IsInHeadline
(
*
pCell
)
)
if
(
pTab
->
IsFollow
()
&&
pTab
->
IsInHeadline
(
*
pCell
)
)
...
@@ -945,12 +947,13 @@ void SwDoc::GetTabBorders( const SwCursor& rCursor, SfxItemSet& rSet ) const
...
@@ -945,12 +947,13 @@ void SwDoc::GetTabBorders( const SwCursor& rCursor, SfxItemSet& rSet ) const
const
sal_Bool
bFirst
=
i
==
0
?
sal_True
:
sal_False
;
const
sal_Bool
bFirst
=
i
==
0
?
sal_True
:
sal_False
;
const
sal_Bool
bLast
=
i
==
aUnions
.
size
()
-
1
?
sal_True
:
sal_False
;
const
sal_Bool
bLast
=
i
==
aUnions
.
size
()
-
1
?
sal_True
:
sal_False
;
SvPtrarr
aCellArr
(
255
);
std
::
vector
<
SwCellFrm
*>
aCellArr
;
aCellArr
.
reserve
(
255
);
::
lcl_CollectCells
(
aCellArr
,
rUnion
,
(
SwTabFrm
*
)
pTab
);
::
lcl_CollectCells
(
aCellArr
,
rUnion
,
(
SwTabFrm
*
)
pTab
);
for
(
sal_uInt16
j
=
0
;
j
<
aCellArr
.
Count
();
++
j
)
for
(
sal_uInt16
j
=
0
;
j
<
aCellArr
.
size
();
++
j
)
{
{
const
SwCellFrm
*
pCell
=
(
const
SwCellFrm
*
)
aCellArr
[
j
];
SwCellFrm
*
pCell
=
aCellArr
[
j
];
const
sal_Bool
bVert
=
pTab
->
IsVertical
();
const
sal_Bool
bVert
=
pTab
->
IsVertical
();
const
sal_Bool
bRTL
=
pTab
->
IsRightToLeft
();
const
sal_Bool
bRTL
=
pTab
->
IsRightToLeft
();
sal_Bool
bTopOver
,
bLeftOver
,
bRightOver
,
bBottomOver
;
sal_Bool
bTopOver
,
bLeftOver
,
bRightOver
,
bBottomOver
;
...
...
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