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
08280034
Kaydet (Commit)
08280034
authored
Eki 17, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SwTxtNode::dumpAsXml: handle RES_TXTATR_CHARFMT
Change-Id: I29d8eb9ab6d6428f699a92b6cd9d58ed8b3b7e48
üst
2f28fc6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
nodedump.cxx
sw/source/core/docnode/nodedump.cxx
+11
-0
No files found.
sw/source/core/docnode/nodedump.cxx
Dosyayı görüntüle @
08280034
...
...
@@ -35,6 +35,7 @@
#include "fmtclds.hxx"
#include "fmtpdsc.hxx"
#include "pagedesc.hxx"
#include "fchrfmt.hxx"
#include <swmodule.hxx>
#include <svl/itemiter.hxx>
#include <svl/intitem.hxx>
...
...
@@ -766,6 +767,7 @@ void SwTxtNode::dumpAsXml( xmlTextWriterPtr w ) const
writer
.
writeFormatAttribute
(
"whichId"
,
TMP_FORMAT
,
pHint
->
Which
());
const
char
*
pWhich
=
0
;
boost
::
optional
<
OString
>
oValue
;
switch
(
pHint
->
Which
())
{
case
RES_TXTATR_AUTOFMT
:
...
...
@@ -777,11 +779,20 @@ void SwTxtNode::dumpAsXml( xmlTextWriterPtr w ) const
case
RES_TXTATR_FLYCNT
:
pWhich
=
"fly content"
;
break
;
case
RES_TXTATR_CHARFMT
:
{
pWhich
=
"character format"
;
if
(
SwCharFmt
*
pCharFmt
=
pHint
->
GetCharFmt
().
GetCharFmt
())
oValue
=
"name: "
+
OUStringToOString
(
pCharFmt
->
GetName
(),
RTL_TEXTENCODING_UTF8
);
break
;
}
default
:
break
;
}
if
(
pWhich
)
writer
.
writeFormatAttribute
(
"which"
,
"%s"
,
BAD_CAST
(
pWhich
));
if
(
oValue
)
writer
.
writeFormatAttribute
(
"value"
,
"%s"
,
BAD_CAST
(
oValue
->
getStr
()));
if
(
pHint
->
Which
()
==
RES_TXTATR_AUTOFMT
)
{
...
...
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