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
5e51960d
Kaydet (Commit)
5e51960d
authored
Ock 26, 2012
tarafından
Cédric Bosdonnat
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#35669: properly merge ref fields in master documents
üst
5fd72b4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
15 deletions
+22
-15
reffld.cxx
sw/source/core/fields/reffld.cxx
+22
-15
No files found.
sw/source/core/fields/reffld.cxx
Dosyayı görüntüle @
5e51960d
...
...
@@ -972,6 +972,26 @@ void _RefIdsMap::Init( SwDoc& rDoc, SwDoc& rDestDoc, sal_Bool bField )
{
GetFieldIdsFromDoc
(
rDestDoc
,
aIds
);
GetFieldIdsFromDoc
(
rDoc
,
aDstIds
);
// Define the mappings now
sal_uInt16
nMaxDstId
=
*
aIds
.
end
();
// Map all the src fields to their value + nMaxDstId
for
(
std
::
set
<
sal_uInt16
>::
iterator
pIt
=
aDstIds
.
begin
();
pIt
!=
aDstIds
.
end
();
++
pIt
)
AddId
(
nMaxDstId
++
,
*
pIt
);
// Change the Sequence number of all the SetExp fields in the destination document
SwFieldType
*
pType
=
rDoc
.
GetFldType
(
RES_SETEXPFLD
,
aName
,
false
);
if
(
pType
)
{
SwIterator
<
SwFmtFld
,
SwFieldType
>
aIter
(
*
pType
);
for
(
SwFmtFld
*
pF
=
aIter
.
First
();
pF
;
pF
=
aIter
.
Next
()
)
if
(
pF
->
GetTxtFld
()
)
{
sal_uInt16
n
=
((
SwSetExpField
*
)
pF
->
GetFld
())
->
GetSeqNumber
(
);
((
SwSetExpField
*
)
pF
->
GetFld
())
->
SetSeqNumber
(
sequencedIds
[
n
]
);
}
}
}
else
{
...
...
@@ -1030,21 +1050,8 @@ void _RefIdsMap::Check( SwDoc& rDoc, SwDoc& rDestDoc, SwGetRefField& rFld,
AddId
(
n
,
nSeqNo
);
rFld
.
SetSeqNo
(
n
);
// und noch die Felder oder Fuss-/EndNote auf die neue
// Id umsetzen
if
(
bField
)
{
SwFieldType
*
pType
=
rDoc
.
GetFldType
(
RES_SETEXPFLD
,
aName
,
false
);
if
(
pType
)
{
SwIterator
<
SwFmtFld
,
SwFieldType
>
aIter
(
*
pType
);
for
(
SwFmtFld
*
pF
=
aIter
.
First
();
pF
;
pF
=
aIter
.
Next
()
)
if
(
pF
->
GetTxtFld
()
&&
nSeqNo
==
((
SwSetExpField
*
)
pF
->
GetFld
())
->
GetSeqNumber
()
)
((
SwSetExpField
*
)
pF
->
GetFld
())
->
SetSeqNumber
(
n
);
}
}
else
// und noch die Fuss-/EndNote auf die neue Id umsetzen
if
(
!
bField
)
{
SwTxtFtn
*
pFtnIdx
;
for
(
sal_uInt16
i
=
0
,
nCnt
=
rDoc
.
GetFtnIdxs
().
Count
();
i
<
nCnt
;
++
i
)
...
...
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