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
fe0985c2
Kaydet (Commit)
fe0985c2
authored
Tem 02, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: include header/footer type in layout dump
Change-Id: I27318fbaf71874d34671c0da820caee6cdb22ace
üst
278000a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
docdesc.cxx
sw/source/core/doc/docdesc.cxx
+2
-2
xmldump.cxx
sw/source/core/text/xmldump.cxx
+7
-0
No files found.
sw/source/core/doc/docdesc.cxx
Dosyayı görüntüle @
fe0985c2
...
...
@@ -217,7 +217,7 @@ void SwDoc::CopyMasterHeader(const SwPageDesc &rChged, const SwFmtHeader &rHead,
}
else
if
(
(
*
aRCnt
.
GetCntntIdx
())
==
(
*
aCnt
.
GetCntntIdx
())
)
{
SwFrmFmt
*
pFmt
=
new
SwFrmFmt
(
GetAttrPool
(),
"Header"
,
SwFrmFmt
*
pFmt
=
new
SwFrmFmt
(
GetAttrPool
(),
(
bLeft
?
"Left header"
:
"First header"
)
,
GetDfltFrmFmt
()
);
::
lcl_DescSetAttr
(
*
pRight
,
*
pFmt
,
sal_False
);
// The section which the right header attribute is pointing
...
...
@@ -272,7 +272,7 @@ void SwDoc::CopyMasterFooter(const SwPageDesc &rChged, const SwFmtFooter &rFoot,
}
else
if
(
(
*
aRCnt
.
GetCntntIdx
())
==
(
*
aLCnt
.
GetCntntIdx
())
)
{
SwFrmFmt
*
pFmt
=
new
SwFrmFmt
(
GetAttrPool
(),
"Footer"
,
SwFrmFmt
*
pFmt
=
new
SwFrmFmt
(
GetAttrPool
(),
(
bLeft
?
"Left footer"
:
"First footer"
)
,
GetDfltFrmFmt
()
);
::
lcl_DescSetAttr
(
*
pRight
,
*
pFmt
,
sal_False
);
// The section to which the right footer attribute is pointing
...
...
sw/source/core/text/xmldump.cxx
Dosyayı görüntüle @
fe0985c2
...
...
@@ -32,6 +32,7 @@
#include "sectfrm.hxx"
#include "tabfrm.hxx"
#include "txtfrm.hxx"
#include "hffrm.hxx"
#include "porlin.hxx"
#include "porlay.hxx"
#include "portxt.hxx"
...
...
@@ -367,6 +368,12 @@ void SwFrm::dumpAsXmlAttributes( xmlTextWriterPtr writer )
SwTxtNode
*
pTxtNode
=
pTxtFrm
->
GetTxtNode
();
xmlTextWriterWriteFormatAttribute
(
writer
,
BAD_CAST
(
"txtNodeIndex"
),
"%lu"
,
pTxtNode
->
GetIndex
()
);
}
if
(
IsHeaderFrm
())
{
SwHeaderFrm
*
pHeaderFrm
=
(
SwHeaderFrm
*
)
this
;
rtl
::
OUString
aFmtName
=
pHeaderFrm
->
GetFmt
()
->
GetName
();
xmlTextWriterWriteFormatAttribute
(
writer
,
BAD_CAST
(
"fmtName"
),
"%s"
,
BAD_CAST
(
rtl
::
OUStringToOString
(
aFmtName
,
RTL_TEXTENCODING_UTF8
).
getStr
()));
}
}
void
SwFrm
::
dumpChildrenAsXml
(
xmlTextWriterPtr
writer
)
...
...
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