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
e0e006cc
Kaydet (Commit)
e0e006cc
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( _MapTblFrmFmts) to std::vector
Change-Id: I96db7b86a5739a396522cf2e5c3dbaae48963859
üst
e7cda386
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
ndcopy.cxx
sw/source/core/docnode/ndcopy.cxx
+14
-13
No files found.
sw/source/core/docnode/ndcopy.cxx
Dosyayı görüntüle @
e0e006cc
...
...
@@ -235,8 +235,7 @@ struct _MapTblFrmFmt
{}
};
SV_DECL_VARARR
(
_MapTblFrmFmts
,
_MapTblFrmFmt
,
0
)
SV_IMPL_VARARR
(
_MapTblFrmFmts
,
_MapTblFrmFmt
);
typedef
std
::
vector
<
_MapTblFrmFmt
>
_MapTblFrmFmts
;
SwCntntNode
*
SwTxtNode
::
MakeCopy
(
SwDoc
*
pDoc
,
const
SwNodeIndex
&
rIdx
)
const
{
...
...
@@ -299,12 +298,12 @@ SwCntntNode* SwTxtNode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) const
}
s
al_Bool
lcl_SrchNew
(
const
_MapTblFrmFmt
&
rMap
,
void
*
pPara
)
s
tatic
bool
lcl_SrchNew
(
const
_MapTblFrmFmt
&
rMap
,
const
SwFrmFmt
*
*
pPara
)
{
if
(
rMap
.
pOld
!=
*
(
const
SwFrmFmt
**
)
pPara
)
return
sal_T
rue
;
*
((
const
SwFrmFmt
**
)
pPara
)
=
rMap
.
pNew
;
return
sal_F
alse
;
// abbrechen, Pointer gefunden
if
(
rMap
.
pOld
!=
*
pPara
)
return
t
rue
;
*
pPara
=
rMap
.
pNew
;
return
f
alse
;
// abbrechen, Pointer gefunden
}
...
...
@@ -330,7 +329,9 @@ static void lcl_CopyTblLine( const SwTableLine* pLine, _CopyTable* pCT );
static
void
lcl_CopyTblBox
(
SwTableBox
*
pBox
,
_CopyTable
*
pCT
)
{
SwTableBoxFmt
*
pBoxFmt
=
(
SwTableBoxFmt
*
)
pBox
->
GetFrmFmt
();
pCT
->
rMapArr
.
ForEach
(
lcl_SrchNew
,
&
pBoxFmt
);
for
(
_MapTblFrmFmts
::
const_iterator
it
=
pCT
->
rMapArr
.
begin
();
it
!=
pCT
->
rMapArr
.
end
();
++
it
)
if
(
!
lcl_SrchNew
(
*
it
,
(
const
SwFrmFmt
**
)
&
pBoxFmt
)
)
break
;
if
(
pBoxFmt
==
pBox
->
GetFrmFmt
()
)
// ein neues anlegen ??
{
const
SfxPoolItem
*
pItem
;
...
...
@@ -357,8 +358,7 @@ static void lcl_CopyTblBox( SwTableBox* pBox, _CopyTable* pCT )
}
}
pCT
->
rMapArr
.
Insert
(
_MapTblFrmFmt
(
pBox
->
GetFrmFmt
(),
pBoxFmt
),
pCT
->
rMapArr
.
Count
()
);
pCT
->
rMapArr
.
push_back
(
_MapTblFrmFmt
(
pBox
->
GetFrmFmt
(),
pBoxFmt
)
);
}
sal_uInt16
nLines
=
pBox
->
GetTabLines
().
size
();
...
...
@@ -391,13 +391,14 @@ static void lcl_CopyTblBox( SwTableBox* pBox, _CopyTable* pCT )
static
void
lcl_CopyTblLine
(
const
SwTableLine
*
pLine
,
_CopyTable
*
pCT
)
{
SwTableLineFmt
*
pLineFmt
=
(
SwTableLineFmt
*
)
pLine
->
GetFrmFmt
();
pCT
->
rMapArr
.
ForEach
(
lcl_SrchNew
,
&
pLineFmt
);
for
(
_MapTblFrmFmts
::
const_iterator
it
=
pCT
->
rMapArr
.
begin
();
it
!=
pCT
->
rMapArr
.
end
();
++
it
)
if
(
!
lcl_SrchNew
(
*
it
,
(
const
SwFrmFmt
**
)
&
pLineFmt
)
)
break
;
if
(
pLineFmt
==
pLine
->
GetFrmFmt
()
)
// ein neues anlegen ??
{
pLineFmt
=
pCT
->
pDoc
->
MakeTableLineFmt
();
pLineFmt
->
CopyAttrs
(
*
pLine
->
GetFrmFmt
()
);
pCT
->
rMapArr
.
Insert
(
_MapTblFrmFmt
(
pLine
->
GetFrmFmt
(),
pLineFmt
),
pCT
->
rMapArr
.
Count
());
pCT
->
rMapArr
.
push_back
(
_MapTblFrmFmt
(
pLine
->
GetFrmFmt
(),
pLineFmt
)
);
}
SwTableLine
*
pNewLine
=
new
SwTableLine
(
pLineFmt
,
pLine
->
GetTabBoxes
().
size
(),
pCT
->
pInsBox
);
...
...
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