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
553f10c7
Kaydet (Commit)
553f10c7
authored
Eyl 20, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add dumpAsXml() to more pool items
Change-Id: I276109148bab8180ce2442f5ee69722357362453
üst
c3364742
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
55 additions
and
1 deletion
+55
-1
numitem.cxx
editeng/source/items/numitem.cxx
+30
-1
numitem.hxx
include/editeng/numitem.hxx
+2
-0
eitem.hxx
include/svl/eitem.hxx
+2
-0
poolitem.hxx
include/svl/poolitem.hxx
+1
-0
cenumitm.cxx
svl/source/items/cenumitm.cxx
+9
-0
poolitem.cxx
svl/source/items/poolitem.cxx
+10
-0
stritem.cxx
svl/source/items/stritem.cxx
+1
-0
No files found.
editeng/source/items/numitem.cxx
Dosyayı görüntüle @
553f10c7
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
#include <comphelper/processfactory.hxx>
#include <comphelper/processfactory.hxx>
#include <tools/mapunit.hxx>
#include <tools/mapunit.hxx>
#include <unotools/configmgr.hxx>
#include <unotools/configmgr.hxx>
#include <libxml/xmlwriter.h>
#include <editeng/unonrule.hxx>
#include <editeng/unonrule.hxx>
#define DEF_WRITER_LSPACE 500 //Standard Indentation
#define DEF_WRITER_LSPACE 500 //Standard Indentation
...
@@ -691,6 +691,27 @@ void SvxNumRule::Store( SvStream &rStream )
...
@@ -691,6 +691,27 @@ void SvxNumRule::Store( SvStream &rStream )
DestroyFontToSubsFontConverter
(
pConverter
);
DestroyFontToSubsFontConverter
(
pConverter
);
}
}
void
SvxNumRule
::
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
{
xmlTextWriterStartElement
(
pWriter
,
BAD_CAST
(
"svxNumRule"
));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"levelCount"
),
BAD_CAST
(
OUString
::
number
(
nLevelCount
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"continuousNumbering"
),
BAD_CAST
(
OUString
::
number
(
bContinuousNumbering
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"numberingType"
),
BAD_CAST
(
OUString
::
number
((
int
)
eNumberingType
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"featureFlags"
),
BAD_CAST
(
OUString
::
number
((
int
)
nFeatureFlags
).
getStr
()));
for
(
sal_uInt16
i
=
0
;
i
<
SVX_MAX_NUM
;
i
++
)
{
if
(
aFmts
[
i
])
{
xmlTextWriterStartElement
(
pWriter
,
BAD_CAST
(
"aFmts"
));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"i"
),
BAD_CAST
(
OUString
::
number
(
i
).
getStr
()));
xmlTextWriterWriteFormatAttribute
(
pWriter
,
BAD_CAST
(
"ptr"
),
"%p"
,
aFmts
[
i
]);
xmlTextWriterEndElement
(
pWriter
);
}
}
xmlTextWriterEndElement
(
pWriter
);
}
SvxNumRule
::~
SvxNumRule
()
SvxNumRule
::~
SvxNumRule
()
{
{
for
(
SvxNumberFormat
*
aFmt
:
aFmts
)
for
(
SvxNumberFormat
*
aFmt
:
aFmts
)
...
@@ -965,6 +986,14 @@ bool SvxNumBulletItem::PutValue( const css::uno::Any& rVal, sal_uInt8 /*nMemberI
...
@@ -965,6 +986,14 @@ bool SvxNumBulletItem::PutValue( const css::uno::Any& rVal, sal_uInt8 /*nMemberI
return
false
;
return
false
;
}
}
void
SvxNumBulletItem
::
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
{
xmlTextWriterStartElement
(
pWriter
,
BAD_CAST
(
"svxNumBulletItem"
));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"whichId"
),
BAD_CAST
(
OString
::
number
(
Which
()).
getStr
()));
pNumRule
->
dumpAsXml
(
pWriter
);
xmlTextWriterEndElement
(
pWriter
);
}
SvxNumRule
*
SvxConvertNumRule
(
const
SvxNumRule
*
pRule
,
sal_uInt16
nLevels
,
SvxNumRuleType
eType
)
SvxNumRule
*
SvxConvertNumRule
(
const
SvxNumRule
*
pRule
,
sal_uInt16
nLevels
,
SvxNumRuleType
eType
)
{
{
const
sal_uInt16
nSrcLevels
=
pRule
->
GetLevelCount
();
const
sal_uInt16
nSrcLevels
=
pRule
->
GetLevelCount
();
...
...
include/editeng/numitem.hxx
Dosyayı görüntüle @
553f10c7
...
@@ -266,6 +266,7 @@ public:
...
@@ -266,6 +266,7 @@ public:
SvxNumRule
&
operator
=
(
const
SvxNumRule
&
);
SvxNumRule
&
operator
=
(
const
SvxNumRule
&
);
void
Store
(
SvStream
&
rStream
);
void
Store
(
SvStream
&
rStream
);
void
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
;
const
SvxNumberFormat
*
Get
(
sal_uInt16
nLevel
)
const
;
const
SvxNumberFormat
*
Get
(
sal_uInt16
nLevel
)
const
;
const
SvxNumberFormat
&
GetLevel
(
sal_uInt16
nLevel
)
const
;
const
SvxNumberFormat
&
GetLevel
(
sal_uInt16
nLevel
)
const
;
void
SetLevel
(
sal_uInt16
nLevel
,
const
SvxNumberFormat
&
rFmt
,
bool
bIsValid
=
true
);
void
SetLevel
(
sal_uInt16
nLevel
,
const
SvxNumberFormat
&
rFmt
,
bool
bIsValid
=
true
);
...
@@ -308,6 +309,7 @@ public:
...
@@ -308,6 +309,7 @@ public:
virtual
bool
QueryValue
(
css
::
uno
::
Any
&
rVal
,
sal_uInt8
nMemberId
=
0
)
const
override
;
virtual
bool
QueryValue
(
css
::
uno
::
Any
&
rVal
,
sal_uInt8
nMemberId
=
0
)
const
override
;
virtual
bool
PutValue
(
const
css
::
uno
::
Any
&
rVal
,
sal_uInt8
nMemberId
)
override
;
virtual
bool
PutValue
(
const
css
::
uno
::
Any
&
rVal
,
sal_uInt8
nMemberId
)
override
;
virtual
void
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
override
;
};
};
class
SvxNodeNum
class
SvxNodeNum
...
...
include/svl/eitem.hxx
Dosyayı görüntüle @
553f10c7
...
@@ -91,6 +91,8 @@ public:
...
@@ -91,6 +91,8 @@ public:
const
IntlWrapper
*
=
nullptr
)
const
IntlWrapper
*
=
nullptr
)
const
override
;
const
override
;
virtual
void
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
override
;
virtual
bool
QueryValue
(
css
::
uno
::
Any
&
rVal
,
sal_uInt8
=
0
)
const
override
;
virtual
bool
QueryValue
(
css
::
uno
::
Any
&
rVal
,
sal_uInt8
=
0
)
const
override
;
virtual
bool
PutValue
(
const
css
::
uno
::
Any
&
rVal
,
sal_uInt8
)
override
;
virtual
bool
PutValue
(
const
css
::
uno
::
Any
&
rVal
,
sal_uInt8
)
override
;
...
...
include/svl/poolitem.hxx
Dosyayı görüntüle @
553f10c7
...
@@ -245,6 +245,7 @@ public:
...
@@ -245,6 +245,7 @@ public:
MapUnit
ePresMetric
,
MapUnit
ePresMetric
,
OUString
&
rText
,
OUString
&
rText
,
const
IntlWrapper
*
=
nullptr
)
const
override
;
const
IntlWrapper
*
=
nullptr
)
const
override
;
virtual
void
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
override
;
// create a copy of itself
// create a copy of itself
virtual
SfxPoolItem
*
Clone
(
SfxItemPool
*
pPool
=
nullptr
)
const
override
;
virtual
SfxPoolItem
*
Clone
(
SfxItemPool
*
pPool
=
nullptr
)
const
override
;
...
...
svl/source/items/cenumitm.cxx
Dosyayı görüntüle @
553f10c7
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
#include "whassert.hxx"
#include "whassert.hxx"
#include <comphelper/extract.hxx>
#include <comphelper/extract.hxx>
#include <libxml/xmlwriter.h>
// virtual
// virtual
...
@@ -175,6 +176,14 @@ bool SfxBoolItem::GetPresentation(SfxItemPresentation,
...
@@ -175,6 +176,14 @@ bool SfxBoolItem::GetPresentation(SfxItemPresentation,
return
true
;
return
true
;
}
}
void
SfxBoolItem
::
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
{
xmlTextWriterStartElement
(
pWriter
,
BAD_CAST
(
"sfxBoolItem"
));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"whichId"
),
BAD_CAST
(
OString
::
number
(
Which
()).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"value"
),
BAD_CAST
(
GetValueTextByVal
(
m_bValue
).
toUtf8
().
getStr
()));
xmlTextWriterEndElement
(
pWriter
);
}
// virtual
// virtual
bool
SfxBoolItem
::
QueryValue
(
css
::
uno
::
Any
&
rVal
,
sal_uInt8
)
const
bool
SfxBoolItem
::
QueryValue
(
css
::
uno
::
Any
&
rVal
,
sal_uInt8
)
const
{
{
...
...
svl/source/items/poolitem.cxx
Dosyayı görüntüle @
553f10c7
...
@@ -193,6 +193,10 @@ void SfxPoolItem::dumpAsXml(xmlTextWriterPtr pWriter) const
...
@@ -193,6 +193,10 @@ void SfxPoolItem::dumpAsXml(xmlTextWriterPtr pWriter) const
{
{
xmlTextWriterStartElement
(
pWriter
,
BAD_CAST
(
"sfxPoolItem"
));
xmlTextWriterStartElement
(
pWriter
,
BAD_CAST
(
"sfxPoolItem"
));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"whichId"
),
BAD_CAST
(
OString
::
number
(
Which
()).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"whichId"
),
BAD_CAST
(
OString
::
number
(
Which
()).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"typeName"
),
BAD_CAST
(
typeid
(
*
this
).
name
()));
OUString
rText
;
if
(
GetPresentation
(
SFX_ITEM_PRESENTATION_COMPLETE
,
MAP_100TH_MM
,
MAP_100TH_MM
,
rText
))
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"presentation"
),
BAD_CAST
(
rText
.
getStr
()));
xmlTextWriterEndElement
(
pWriter
);
xmlTextWriterEndElement
(
pWriter
);
}
}
...
@@ -240,6 +244,12 @@ bool SfxVoidItem::GetPresentation
...
@@ -240,6 +244,12 @@ bool SfxVoidItem::GetPresentation
return
true
;
return
true
;
}
}
void
SfxVoidItem
::
dumpAsXml
(
xmlTextWriterPtr
pWriter
)
const
{
xmlTextWriterStartElement
(
pWriter
,
BAD_CAST
(
"sfxVoidItem"
));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"whichId"
),
BAD_CAST
(
OString
::
number
(
Which
()).
getStr
()));
xmlTextWriterEndElement
(
pWriter
);
}
SfxPoolItem
*
SfxVoidItem
::
Clone
(
SfxItemPool
*
)
const
SfxPoolItem
*
SfxVoidItem
::
Clone
(
SfxItemPool
*
)
const
{
{
...
...
svl/source/items/stritem.cxx
Dosyayı görüntüle @
553f10c7
...
@@ -58,6 +58,7 @@ void SfxStringItem::dumpAsXml(xmlTextWriterPtr pWriter) const
...
@@ -58,6 +58,7 @@ void SfxStringItem::dumpAsXml(xmlTextWriterPtr pWriter) const
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"value"
),
BAD_CAST
(
GetValue
().
toUtf8
().
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"value"
),
BAD_CAST
(
GetValue
().
toUtf8
().
getStr
()));
xmlTextWriterEndElement
(
pWriter
);
xmlTextWriterEndElement
(
pWriter
);
}
}
SfxPoolItem
*
SfxStringItem
::
CreateDefault
()
SfxPoolItem
*
SfxStringItem
::
CreateDefault
()
{
{
return
new
SfxStringItem
();
return
new
SfxStringItem
();
...
...
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