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
85ce7c0a
Kaydet (Commit)
85ce7c0a
authored
Ock 07, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Factor out XFillBitmapItem::dumpAsXml() from sw
Change-Id: Ice3a44635a1f4ac2c2852c2e73adae4920412d3a
üst
1ddb7c2c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
3 deletions
+29
-3
xbtmpit.hxx
include/svx/xbtmpit.hxx
+2
-0
xit.hxx
include/svx/xit.hxx
+2
-0
xattr.cxx
svx/source/xoutdev/xattr.cxx
+9
-0
xattrbmp.cxx
svx/source/xoutdev/xattrbmp.cxx
+12
-0
nodedump.cxx
sw/source/core/docnode/nodedump.cxx
+4
-3
No files found.
include/svx/xbtmpit.hxx
Dosyayı görüntüle @
85ce7c0a
...
...
@@ -68,6 +68,8 @@ public:
static
bool
CompareValueFunc
(
const
NameOrIndex
*
p1
,
const
NameOrIndex
*
p2
);
XFillBitmapItem
*
checkForUniqueItem
(
SdrModel
*
pModel
)
const
;
virtual
void
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
SAL_OVERRIDE
;
};
#endif
...
...
include/svx/xit.hxx
Dosyayı görüntüle @
85ce7c0a
...
...
@@ -69,6 +69,8 @@ public:
If returned string equals NameOrIndex->GetName(), the name was already unique.
*/
static
OUString
CheckNamedItem
(
const
NameOrIndex
*
pCheckItem
,
const
sal_uInt16
nWhich
,
const
SfxItemPool
*
pPool1
,
const
SfxItemPool
*
pPool2
,
SvxCompareValueFunc
pCompareValueFunc
,
sal_uInt16
nPrefixResId
,
const
XPropertyListRef
&
pDefaults
);
virtual
void
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
;
};
#endif
...
...
svx/source/xoutdev/xattr.cxx
Dosyayı görüntüle @
85ce7c0a
...
...
@@ -260,6 +260,15 @@ OUString NameOrIndex::CheckNamedItem( const NameOrIndex* pCheckItem, const sal_u
return
aUniqueName
;
}
void
NameOrIndex
::
dumpAsXml
(
xmlTextWriterPtr
pWriter
)
const
{
xmlTextWriterStartElement
(
pWriter
,
BAD_CAST
(
"nameOrIndex"
));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"isIndex"
),
BAD_CAST
(
OString
::
boolean
(
IsIndex
()).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"name"
),
BAD_CAST
(
GetName
().
toUtf8
().
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"index"
),
BAD_CAST
(
OString
::
number
(
GetIndex
()).
getStr
()));
xmlTextWriterEndElement
(
pWriter
);
}
TYPEINIT1_AUTOFACTORY
(
XColorItem
,
NameOrIndex
);
XColorItem
::
XColorItem
(
sal_uInt16
_nWhich
,
sal_Int32
nIndex
,
const
Color
&
rTheColor
)
:
...
...
svx/source/xoutdev/xattrbmp.cxx
Dosyayı görüntüle @
85ce7c0a
...
...
@@ -40,6 +40,8 @@
#include <vcl/bmpacc.hxx>
#include <vcl/dibtools.hxx>
#include <libxml/xmlwriter.h>
using
namespace
::
com
::
sun
::
star
;
XOBitmap
::
XOBitmap
(
const
Bitmap
&
rBmp
)
:
...
...
@@ -550,4 +552,14 @@ XFillBitmapItem* XFillBitmapItem::checkForUniqueItem( SdrModel* pModel ) const
return
NULL
;
}
void
XFillBitmapItem
::
dumpAsXml
(
xmlTextWriterPtr
pWriter
)
const
{
xmlTextWriterStartElement
(
pWriter
,
BAD_CAST
(
"xFillBitmapItem"
));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"whichId"
),
BAD_CAST
(
OString
::
number
(
Which
()).
getStr
()));
NameOrIndex
::
dumpAsXml
(
pWriter
);
xmlTextWriterEndElement
(
pWriter
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/source/core/docnode/nodedump.cxx
Dosyayı görüntüle @
85ce7c0a
...
...
@@ -54,6 +54,7 @@
#include <svx/svdmodel.hxx>
#include <svx/xfillit0.hxx>
#include <svx/xflclit.hxx>
#include <svx/xbtmpit.hxx>
#include <tools/datetimeutils.hxx>
#include <libxml/encoding.h>
...
...
@@ -459,6 +460,9 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
case
XATTR_FILLCOLOR
:
static_cast
<
const
XFillColorItem
*>
(
pItem
)
->
dumpAsXml
(
writer
);
break
;
case
XATTR_FILLBITMAP
:
static_cast
<
const
XFillBitmapItem
*>
(
pItem
)
->
dumpAsXml
(
writer
);
break
;
default
:
bDone
=
false
;
break
;
}
if
(
bDone
)
...
...
@@ -473,9 +477,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
boost
::
optional
<
OString
>
oValue
;
switch
(
pItem
->
Which
())
{
case
XATTR_FILLBITMAP
:
pWhich
=
"fill bitmap"
;
break
;
case
XATTR_FILLTRANSPARENCE
:
pWhich
=
"fill transparence"
;
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