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
68b8f008
Kaydet (Commit)
68b8f008
authored
Ara 14, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Factor out SfxUInt16Item::dumpAsXml() from sw
Change-Id: Ia58bed9c4a0be4b909789e8bdcd64f06230c0f43
üst
a818cda8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
1 deletion
+14
-1
intitem.hxx
include/svl/intitem.hxx
+2
-0
Library_svl.mk
svl/Library_svl.mk
+1
-0
intitem.cxx
svl/source/items/intitem.cxx
+8
-0
nodedump.cxx
sw/source/core/docnode/nodedump.cxx
+3
-1
No files found.
include/svl/intitem.hxx
Dosyayı görüntüle @
68b8f008
...
...
@@ -114,6 +114,8 @@ public:
virtual
SfxPoolItem
*
Clone
(
SfxItemPool
*
=
0
)
const
SAL_OVERRIDE
{
return
new
SfxUInt16Item
(
*
this
);
}
void
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
;
};
...
...
svl/Library_svl.mk
Dosyayı görüntüle @
68b8f008
...
...
@@ -22,6 +22,7 @@ $(eval $(call gb_Library_Library,svl))
$(eval $(call gb_Library_use_externals,svl,\
boost_headers \
mdds_headers \
libxml2 \
))
$(eval $(call gb_Library_set_componentfile,svl,svl/util/svl))
...
...
svl/source/items/intitem.cxx
Dosyayı görüntüle @
68b8f008
...
...
@@ -24,6 +24,7 @@
#include <tools/bigint.hxx>
#include <tools/stream.hxx>
#include <svl/metitem.hxx>
#include <libxml/xmlwriter.h>
// class SfxByteItem
...
...
@@ -141,6 +142,13 @@ SfxFieldUnit SfxInt16Item::GetUnit() const
TYPEINIT1_AUTOFACTORY
(
SfxUInt16Item
,
CntUInt16Item
);
void
SfxUInt16Item
::
dumpAsXml
(
xmlTextWriterPtr
pWriter
)
const
{
xmlTextWriterStartElement
(
pWriter
,
BAD_CAST
(
"sfxUInt16Item"
));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"whichId"
),
BAD_CAST
(
OString
::
number
(
Which
()).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"value"
),
BAD_CAST
(
OString
::
number
(
GetValue
()).
getStr
()));
xmlTextWriterEndElement
(
pWriter
);
}
// class SfxInt32Item
...
...
sw/source/core/docnode/nodedump.cxx
Dosyayı görüntüle @
68b8f008
...
...
@@ -407,6 +407,9 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
case
RES_CHRATR_ROTATE
:
static_cast
<
const
SvxCharRotateItem
*>
(
pItem
)
->
dumpAsXml
(
writer
);
break
;
case
RES_PARATR_OUTLINELEVEL
:
static_cast
<
const
SfxUInt16Item
*>
(
pItem
)
->
dumpAsXml
(
writer
);
break
;
default
:
bDone
=
false
;
break
;
}
if
(
bDone
)
...
...
@@ -421,7 +424,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
boost
::
optional
<
OString
>
oValue
;
switch
(
pItem
->
Which
())
{
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
;
...
...
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