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
81321de6
Kaydet (Commit)
81321de6
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 SvPtrarr aBoxArr to std::deque<SwTableBox*>
Change-Id: I97634289e94f34e18d00d88d81d99dae1e593ec1
üst
e22cc759
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
+6
-13
swtable.cxx
sw/source/core/table/swtable.cxx
+6
-13
No files found.
sw/source/core/table/swtable.cxx
Dosyayı görüntüle @
81321de6
...
@@ -693,19 +693,12 @@ struct Parm
...
@@ -693,19 +693,12 @@ struct Parm
const
SwTabCols
&
rOld
;
const
SwTabCols
&
rOld
;
long
nNewWish
,
long
nNewWish
,
nOldWish
;
nOldWish
;
SvPtrarr
aBoxArr
;
std
::
deque
<
SwTableBox
*>
aBoxArr
;
SwShareBoxFmts
aShareFmts
;
SwShareBoxFmts
aShareFmts
;
Parm
(
const
SwTabCols
&
rN
,
const
SwTabCols
&
rO
)
:
Parm
(
const
SwTabCols
&
rN
,
const
SwTabCols
&
rO
)
:
rNew
(
rN
),
rOld
(
rO
),
nNewWish
(
0
),
nOldWish
(
0
),
aBoxArr
(
10
){}
rNew
(
rN
),
rOld
(
rO
),
nNewWish
(
0
),
nOldWish
(
0
),
aBoxArr
(
10
){}
};
};
inline
sal_Bool
BoxInArr
(
SvPtrarr
&
rArr
,
SwTableBox
*
pBox
)
{
sal_Bool
bRet
=
USHRT_MAX
!=
rArr
.
GetPos
(
(
VoidPtr
)
pBox
);
if
(
!
bRet
)
rArr
.
Insert
(
(
VoidPtr
)
pBox
,
rArr
.
Count
()
);
return
bRet
;
}
void
lcl_ProcessBoxSet
(
SwTableBox
*
pBox
,
Parm
&
rParm
);
void
lcl_ProcessBoxSet
(
SwTableBox
*
pBox
,
Parm
&
rParm
);
...
@@ -862,7 +855,7 @@ void lcl_ProcessBoxSet( SwTableBox *pBox, Parm &rParm )
...
@@ -862,7 +855,7 @@ void lcl_ProcessBoxSet( SwTableBox *pBox, Parm &rParm )
}
}
}
}
void
lcl_ProcessBoxPtr
(
SwTableBox
*
pBox
,
SvPtrarr
&
rBoxArr
,
void
lcl_ProcessBoxPtr
(
SwTableBox
*
pBox
,
std
::
deque
<
SwTableBox
*>
&
rBoxArr
,
sal_Bool
bBefore
)
sal_Bool
bBefore
)
{
{
if
(
!
pBox
->
GetTabLines
().
empty
()
)
if
(
!
pBox
->
GetTabLines
().
empty
()
)
...
@@ -876,9 +869,9 @@ void lcl_ProcessBoxPtr( SwTableBox *pBox, SvPtrarr &rBoxArr,
...
@@ -876,9 +869,9 @@ void lcl_ProcessBoxPtr( SwTableBox *pBox, SvPtrarr &rBoxArr,
}
}
}
}
else
if
(
bBefore
)
else
if
(
bBefore
)
rBoxArr
.
Insert
(
(
VoidPtr
)
pBox
,
0
);
rBoxArr
.
push_front
(
pBox
);
else
else
rBoxArr
.
Insert
(
(
VoidPtr
)
pBox
,
rBoxArr
.
Count
()
);
rBoxArr
.
push_back
(
pBox
);
}
}
void
lcl_AdjustBox
(
SwTableBox
*
pBox
,
const
long
nDiff
,
Parm
&
rParm
);
void
lcl_AdjustBox
(
SwTableBox
*
pBox
,
const
long
nDiff
,
Parm
&
rParm
);
...
@@ -1035,9 +1028,9 @@ void SwTable::SetTabCols( const SwTabCols &rNew, const SwTabCols &rOld,
...
@@ -1035,9 +1028,9 @@ void SwTable::SetTabCols( const SwTabCols &rNew, const SwTabCols &rOld,
//Nachdem wir haufenweise Boxen (hoffentlich alle und in der richtigen
//Nachdem wir haufenweise Boxen (hoffentlich alle und in der richtigen
//Reihenfolge) eingetragen haben, brauchen diese nur noch rueckwaerts
//Reihenfolge) eingetragen haben, brauchen diese nur noch rueckwaerts
//verarbeitet zu werden.
//verarbeitet zu werden.
for
(
int
j
=
aParm
.
aBoxArr
.
Count
()
-
1
;
j
>=
0
;
--
j
)
for
(
int
j
=
aParm
.
aBoxArr
.
size
()
-
1
;
j
>=
0
;
--
j
)
{
{
SwTableBox
*
pBox
=
(
SwTableBox
*
)
aParm
.
aBoxArr
[
static_cast
<
sal_uInt16
>
(
j
)
];
SwTableBox
*
pBox
=
aParm
.
aBoxArr
[
j
];
::
lcl_ProcessBoxSet
(
pBox
,
aParm
);
::
lcl_ProcessBoxSet
(
pBox
,
aParm
);
}
}
}
}
...
...
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