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
53421edf
Kaydet (Commit)
53421edf
authored
Ara 17, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Factor out SvxBrushItem::dumpAsXml() from sw
Change-Id: I5421cf5a7d1a2ff4db81d028f44a490c234b9ccf
üst
4e1e9eb2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
frmitems.cxx
editeng/source/items/frmitems.cxx
+14
-0
brushitem.hxx
include/editeng/brushitem.hxx
+2
-0
nodedump.cxx
sw/source/core/docnode/nodedump.cxx
+3
-1
No files found.
editeng/source/items/frmitems.cxx
Dosyayı görüntüle @
53421edf
...
...
@@ -81,6 +81,7 @@
#include <editeng/unoprnms.hxx>
#include <editeng/memberids.hrc>
#include <editeng/editerr.hxx>
#include <libxml/xmlwriter.h>
using
namespace
::
editeng
;
using
namespace
::
com
::
sun
::
star
;
...
...
@@ -4102,6 +4103,19 @@ void SvxBrushItem::ApplyGraphicTransparency_Impl()
}
}
void
SvxBrushItem
::
dumpAsXml
(
xmlTextWriterPtr
pWriter
)
const
{
xmlTextWriterStartElement
(
pWriter
,
BAD_CAST
(
"svxBrushItem"
));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"whichId"
),
BAD_CAST
(
OString
::
number
(
Which
()).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"color"
),
BAD_CAST
(
aColor
.
AsRGBHexString
().
toUtf8
().
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"shadingValue"
),
BAD_CAST
(
OString
::
number
(
nShadingValue
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"link"
),
BAD_CAST
(
maStrLink
.
toUtf8
().
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"filter"
),
BAD_CAST
(
maStrFilter
.
toUtf8
().
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"graphicPos"
),
BAD_CAST
(
OString
::
number
(
eGraphicPos
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"loadAgain"
),
BAD_CAST
(
OString
::
boolean
(
bLoadAgain
).
getStr
()));
xmlTextWriterEndElement
(
pWriter
);
}
// class SvxFrameDirectionItem ----------------------------------------------
SvxFrameDirectionItem
::
SvxFrameDirectionItem
(
SvxFrameDirection
nValue
,
...
...
include/editeng/brushitem.hxx
Dosyayı görüntüle @
53421edf
...
...
@@ -127,6 +127,8 @@ public:
static
SvxGraphicPosition
WallpaperStyle2GraphicPos
(
WallpaperStyle
eStyle
);
static
WallpaperStyle
GraphicPos2WallpaperStyle
(
SvxGraphicPosition
ePos
);
static
sal_Int8
TransparencyToPercent
(
sal_Int32
nTrans
);
void
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
;
};
#endif // INCLUDED_EDITENG_BRUSHITEM_HXX
...
...
sw/source/core/docnode/nodedump.cxx
Dosyayı görüntüle @
53421edf
...
...
@@ -416,6 +416,9 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
case
RES_CHRATR_FONT
:
static_cast
<
const
SvxFontItem
*>
(
pItem
)
->
dumpAsXml
(
writer
);
break
;
case
RES_CHRATR_BACKGROUND
:
static_cast
<
const
SvxBrushItem
*>
(
pItem
)
->
dumpAsXml
(
writer
);
break
;
default
:
bDone
=
false
;
break
;
}
if
(
bDone
)
...
...
@@ -430,7 +433,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
boost
::
optional
<
OString
>
oValue
;
switch
(
pItem
->
Which
())
{
case
RES_CHRATR_BACKGROUND
:
pWhich
=
"character background"
;
break
;
case
RES_CHRATR_CTL_FONT
:
pWhich
=
"character ctl font"
;
break
;
case
RES_CHRATR_FONTSIZE
:
{
...
...
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