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
de7a5eb4
Kaydet (Commit)
de7a5eb4
authored
Ock 06, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Factor out XFillColorItem::dumpAsXml() from sw
Change-Id: Idc4c3e00c748fa94f233f2fc5e7c7e9de3a31a22
üst
3b482df3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
xflclit.hxx
include/svx/xflclit.hxx
+2
-0
xattr.cxx
svx/source/xoutdev/xattr.cxx
+8
-0
nodedump.cxx
sw/source/core/docnode/nodedump.cxx
+4
-3
No files found.
include/svx/xflclit.hxx
Dosyayı görüntüle @
de7a5eb4
...
@@ -49,6 +49,8 @@ public:
...
@@ -49,6 +49,8 @@ public:
SfxMapUnit
eCoreMetric
,
SfxMapUnit
eCoreMetric
,
SfxMapUnit
ePresMetric
,
SfxMapUnit
ePresMetric
,
OUString
&
rText
,
const
IntlWrapper
*
=
0
)
const
SAL_OVERRIDE
;
OUString
&
rText
,
const
IntlWrapper
*
=
0
)
const
SAL_OVERRIDE
;
void
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
;
};
};
#endif
#endif
...
...
svx/source/xoutdev/xattr.cxx
Dosyayı görüntüle @
de7a5eb4
...
@@ -2259,6 +2259,14 @@ bool XFillColorItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_uInt8
...
@@ -2259,6 +2259,14 @@ bool XFillColorItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_uInt8
return
true
;
return
true
;
}
}
void
XFillColorItem
::
dumpAsXml
(
xmlTextWriterPtr
pWriter
)
const
{
xmlTextWriterStartElement
(
pWriter
,
BAD_CAST
(
"xFillColorItem"
));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"whichId"
),
BAD_CAST
(
OString
::
number
(
Which
()).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"value"
),
BAD_CAST
(
GetColorValue
().
AsRGBHexString
().
toUtf8
().
getStr
()));
xmlTextWriterEndElement
(
pWriter
);
}
TYPEINIT1_AUTOFACTORY
(
XSecondaryFillColorItem
,
XColorItem
);
TYPEINIT1_AUTOFACTORY
(
XSecondaryFillColorItem
,
XColorItem
);
XSecondaryFillColorItem
::
XSecondaryFillColorItem
(
const
OUString
&
rName
,
const
Color
&
rTheColor
)
:
XSecondaryFillColorItem
::
XSecondaryFillColorItem
(
const
OUString
&
rName
,
const
Color
&
rTheColor
)
:
...
...
sw/source/core/docnode/nodedump.cxx
Dosyayı görüntüle @
de7a5eb4
...
@@ -53,6 +53,7 @@
...
@@ -53,6 +53,7 @@
#include <svx/svdpage.hxx>
#include <svx/svdpage.hxx>
#include <svx/svdmodel.hxx>
#include <svx/svdmodel.hxx>
#include <svx/xfillit0.hxx>
#include <svx/xfillit0.hxx>
#include <svx/xflclit.hxx>
#include <tools/datetimeutils.hxx>
#include <tools/datetimeutils.hxx>
#include <libxml/encoding.h>
#include <libxml/encoding.h>
...
@@ -455,6 +456,9 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
...
@@ -455,6 +456,9 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
case
XATTR_FILLSTYLE
:
case
XATTR_FILLSTYLE
:
static_cast
<
const
XFillStyleItem
*>
(
pItem
)
->
dumpAsXml
(
writer
);
static_cast
<
const
XFillStyleItem
*>
(
pItem
)
->
dumpAsXml
(
writer
);
break
;
break
;
case
XATTR_FILLCOLOR
:
static_cast
<
const
XFillColorItem
*>
(
pItem
)
->
dumpAsXml
(
writer
);
break
;
default
:
bDone
=
false
;
break
;
default
:
bDone
=
false
;
break
;
}
}
if
(
bDone
)
if
(
bDone
)
...
@@ -469,9 +473,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
...
@@ -469,9 +473,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
boost
::
optional
<
OString
>
oValue
;
boost
::
optional
<
OString
>
oValue
;
switch
(
pItem
->
Which
())
switch
(
pItem
->
Which
())
{
{
case
XATTR_FILLCOLOR
:
pWhich
=
"fill color"
;
break
;
case
XATTR_FILLBITMAP
:
case
XATTR_FILLBITMAP
:
pWhich
=
"fill bitmap"
;
pWhich
=
"fill bitmap"
;
break
;
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