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
c09fc2c6
Kaydet (Commit)
c09fc2c6
authored
Mar 04, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: include contents of char styles in doc model xml dump
Change-Id: Ie62d808e9b498ef7125d603f20594ab1bb665a50
üst
5fa18dc2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
18 deletions
+24
-18
nodedump.cxx
sw/source/core/docnode/nodedump.cxx
+24
-18
No files found.
sw/source/core/docnode/nodedump.cxx
Dosyayı görüntüle @
c09fc2c6
...
...
@@ -24,6 +24,7 @@
#include <svl/intitem.hxx>
#include <editeng/charrotateitem.hxx>
#include <editeng/rsiditem.hxx>
#include <editeng/fontitem.hxx>
#include <tools/datetimeutils.hxx>
#include <libxml/encoding.h>
...
...
@@ -286,24 +287,6 @@ void SwStartNode::dumpAsXml( xmlTextWriterPtr w )
// writer.endElement(); - it is a start node, so don't end, will make xml better nested
}
void
SwCharFmts
::
dumpAsXml
(
xmlTextWriterPtr
w
)
{
WriterHelper
writer
(
w
);
if
(
size
())
{
writer
.
startElement
(
"swcharfmts"
);
for
(
size_t
i
=
0
;
i
<
size
();
++
i
)
{
SwCharFmt
*
pFmt
=
static_cast
<
SwCharFmt
*>
(
GetFmt
(
i
));
writer
.
startElement
(
"swcharfmt"
);
OString
aName
=
OUStringToOString
(
pFmt
->
GetName
(),
RTL_TEXTENCODING_UTF8
);
writer
.
writeFormatAttribute
(
"name"
,
"%s"
,
BAD_CAST
(
aName
.
getStr
()));
writer
.
endElement
();
}
writer
.
endElement
();
}
}
void
lcl_dumpSfxItemSet
(
WriterHelper
&
writer
,
const
SfxItemSet
*
pSet
)
{
SfxItemIter
aIter
(
*
pSet
);
...
...
@@ -333,6 +316,9 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
case
RES_CHRATR_ROTATE
:
pWhich
=
"character rotation"
;
oValue
=
OString
::
number
(
static_cast
<
const
SvxCharRotateItem
*>
(
pItem
)
->
GetValue
());
break
;
case
RES_PARATR_OUTLINELEVEL
:
pWhich
=
"paragraph outline level"
;
oValue
=
OString
::
number
(
static_cast
<
const
SfxUInt16Item
*>
(
pItem
)
->
GetValue
());
break
;
case
RES_PARATR_NUMRULE
:
pWhich
=
"paragraph numbering rule"
;
oValue
=
OUStringToOString
(
static_cast
<
const
SwNumRuleItem
*>
(
pItem
)
->
GetValue
(),
RTL_TEXTENCODING_UTF8
);
break
;
case
RES_CHRATR_FONT
:
pWhich
=
"character font"
;
oValue
=
OUStringToOString
(
static_cast
<
const
SvxFontItem
*>
(
pItem
)
->
GetFamilyName
(),
RTL_TEXTENCODING_UTF8
);
break
;
case
RES_CHRATR_BACKGROUND
:
pWhich
=
"character background"
;
break
;
case
RES_CHRATR_CTL_FONT
:
pWhich
=
"character ctl font"
;
break
;
}
if
(
pWhich
)
writer
.
writeFormatAttribute
(
"which"
,
"%s"
,
BAD_CAST
(
pWhich
));
...
...
@@ -343,6 +329,26 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
}
}
void
SwCharFmts
::
dumpAsXml
(
xmlTextWriterPtr
w
)
{
WriterHelper
writer
(
w
);
if
(
size
())
{
writer
.
startElement
(
"swcharfmts"
);
for
(
size_t
i
=
0
;
i
<
size
();
++
i
)
{
SwCharFmt
*
pFmt
=
static_cast
<
SwCharFmt
*>
(
GetFmt
(
i
));
writer
.
startElement
(
"swcharfmt"
);
OString
aName
=
OUStringToOString
(
pFmt
->
GetName
(),
RTL_TEXTENCODING_UTF8
);
writer
.
writeFormatAttribute
(
"name"
,
"%s"
,
BAD_CAST
(
aName
.
getStr
()));
lcl_dumpSfxItemSet
(
writer
,
&
pFmt
->
GetAttrSet
());
writer
.
endElement
();
}
writer
.
endElement
();
}
}
void
SwTxtFmtColls
::
dumpAsXml
(
xmlTextWriterPtr
w
)
{
WriterHelper
writer
(
w
);
...
...
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