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
ee1ad2c2
Kaydet (Commit)
ee1ad2c2
authored
May 18, 2018
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw_redlinehide: dump the MergedPara to layout.xml
Change-Id: I211a92823e7b949fe55e50e6b172a0883056a189
üst
2a73b15a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
dbg_lay.cxx
sw/source/core/layout/dbg_lay.cxx
+1
-1
xmldump.cxx
sw/source/core/text/xmldump.cxx
+21
-1
No files found.
sw/source/core/layout/dbg_lay.cxx
Dosyayı görüntüle @
ee1ad2c2
...
@@ -773,7 +773,7 @@ void SwImplProtocol::Record_( const SwFrame* pFrame, PROT nFunction, DbgAction n
...
@@ -773,7 +773,7 @@ void SwImplProtocol::Record_( const SwFrame* pFrame, PROT nFunction, DbgAction n
{
{
aOut
.
append
(
" "
);
aOut
.
append
(
" "
);
while
(
aOut
.
getLength
()
<
140
)
aOut
.
append
(
" "
);
while
(
aOut
.
getLength
()
<
140
)
aOut
.
append
(
" "
);
const
OUString
&
text
=
static_cast
<
const
SwTextFrame
*>
(
pFrame
)
->
GetText
Node
()
->
GetText
();
const
OUString
&
text
=
static_cast
<
const
SwTextFrame
*>
(
pFrame
)
->
GetText
();
OString
o
=
OUStringToOString
(
text
,
RTL_TEXTENCODING_ASCII_US
);
OString
o
=
OUStringToOString
(
text
,
RTL_TEXTENCODING_ASCII_US
);
aOut
.
append
(
o
);
aOut
.
append
(
o
);
}
}
...
...
sw/source/core/text/xmldump.cxx
Dosyayı görüntüle @
ee1ad2c2
...
@@ -328,6 +328,26 @@ void SwFrame::dumpAsXml( xmlTextWriterPtr writer ) const
...
@@ -328,6 +328,26 @@ void SwFrame::dumpAsXml( xmlTextWriterPtr writer ) const
xmlTextWriterEndElement
(
writer
);
xmlTextWriterEndElement
(
writer
);
}
}
if
(
IsTextFrame
())
{
const
SwTextFrame
*
pTextFrame
=
static_cast
<
const
SwTextFrame
*>
(
this
);
sw
::
MergedPara
const
*
const
pMerged
(
pTextFrame
->
GetMergedPara
());
if
(
pMerged
)
{
xmlTextWriterStartElement
(
writer
,
BAD_CAST
(
"merged"
)
);
xmlTextWriterWriteFormatAttribute
(
writer
,
BAD_CAST
(
"paraPropsNodeIndex"
),
"%"
SAL_PRIuUINTPTR
,
pMerged
->
pParaPropsNode
->
GetIndex
()
);
for
(
auto
const
&
e
:
pMerged
->
extents
)
{
xmlTextWriterStartElement
(
writer
,
BAD_CAST
(
"extent"
)
);
xmlTextWriterWriteFormatAttribute
(
writer
,
BAD_CAST
(
"txtNodeIndex"
),
"%"
SAL_PRIuUINTPTR
,
e
.
pNode
->
GetIndex
()
);
xmlTextWriterWriteFormatAttribute
(
writer
,
BAD_CAST
(
"start"
),
"%"
SAL_PRIdINT32
,
e
.
nStart
);
xmlTextWriterWriteFormatAttribute
(
writer
,
BAD_CAST
(
"end"
),
"%"
SAL_PRIdINT32
,
e
.
nEnd
);
xmlTextWriterEndElement
(
writer
);
}
xmlTextWriterEndElement
(
writer
);
}
}
xmlTextWriterStartElement
(
writer
,
BAD_CAST
(
"infos"
)
);
xmlTextWriterStartElement
(
writer
,
BAD_CAST
(
"infos"
)
);
dumpInfosAsXml
(
writer
);
dumpInfosAsXml
(
writer
);
xmlTextWriterEndElement
(
writer
);
xmlTextWriterEndElement
(
writer
);
...
@@ -426,7 +446,7 @@ void SwFrame::dumpAsXmlAttributes( xmlTextWriterPtr writer ) const
...
@@ -426,7 +446,7 @@ void SwFrame::dumpAsXmlAttributes( xmlTextWriterPtr writer ) const
if
(
IsTextFrame
(
)
)
if
(
IsTextFrame
(
)
)
{
{
const
SwTextFrame
*
pTextFrame
=
static_cast
<
const
SwTextFrame
*>
(
this
);
const
SwTextFrame
*
pTextFrame
=
static_cast
<
const
SwTextFrame
*>
(
this
);
const
SwTextNode
*
pTextNode
=
pTextFrame
->
GetTextNode
();
const
SwTextNode
*
pTextNode
=
pTextFrame
->
GetTextNode
First
();
xmlTextWriterWriteFormatAttribute
(
writer
,
BAD_CAST
(
"txtNodeIndex"
),
TMP_FORMAT
,
pTextNode
->
GetIndex
()
);
xmlTextWriterWriteFormatAttribute
(
writer
,
BAD_CAST
(
"txtNodeIndex"
),
TMP_FORMAT
,
pTextNode
->
GetIndex
()
);
}
}
if
(
IsHeaderFrame
()
||
IsFooterFrame
())
if
(
IsHeaderFrame
()
||
IsFooterFrame
())
...
...
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