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
0ffb225d
Kaydet (Commit)
0ffb225d
authored
Ock 16, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Factor out SvxLRSpaceItem::dumpAsXml() from sw
Change-Id: Id28c3e1617f2e73c36f13b506488d401a22b00a8
üst
2f69f6ef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
frmitems.cxx
editeng/source/items/frmitems.cxx
+17
-0
lrspitem.hxx
include/editeng/lrspitem.hxx
+1
-0
nodedump.cxx
sw/source/core/docnode/nodedump.cxx
+3
-3
No files found.
editeng/source/items/frmitems.cxx
Dosyayı görüntüle @
0ffb225d
...
@@ -808,6 +808,23 @@ bool SvxLRSpaceItem::HasMetrics() const
...
@@ -808,6 +808,23 @@ bool SvxLRSpaceItem::HasMetrics() const
return
true
;
return
true
;
}
}
void
SvxLRSpaceItem
::
dumpAsXml
(
xmlTextWriterPtr
pWriter
)
const
{
xmlTextWriterStartElement
(
pWriter
,
BAD_CAST
(
"svxLRSpaceItem"
));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"whichId"
),
BAD_CAST
(
OString
::
number
(
Which
()).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"nFirstLineOfst"
),
BAD_CAST
(
OString
::
number
(
nFirstLineOfst
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"nTxtLeft"
),
BAD_CAST
(
OString
::
number
(
nTxtLeft
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"nLeftMargin"
),
BAD_CAST
(
OString
::
number
(
nLeftMargin
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"nRightMargin"
),
BAD_CAST
(
OString
::
number
(
nRightMargin
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"nPropFirstLineOfst"
),
BAD_CAST
(
OString
::
number
(
nPropFirstLineOfst
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"nPropLeftMargin"
),
BAD_CAST
(
OString
::
number
(
nPropLeftMargin
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"nPropRightMargin"
),
BAD_CAST
(
OString
::
number
(
nPropRightMargin
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"bAutoFirst"
),
BAD_CAST
(
OString
::
number
(
bAutoFirst
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"bExplicitZeroMarginValRight"
),
BAD_CAST
(
OString
::
number
(
bExplicitZeroMarginValRight
).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"bExplicitZeroMarginValLeft"
),
BAD_CAST
(
OString
::
number
(
bExplicitZeroMarginValLeft
).
getStr
()));
xmlTextWriterEndElement
(
pWriter
);
}
// class SvxULSpaceItem --------------------------------------------------
// class SvxULSpaceItem --------------------------------------------------
SvxULSpaceItem
::
SvxULSpaceItem
(
const
sal_uInt16
nId
)
SvxULSpaceItem
::
SvxULSpaceItem
(
const
sal_uInt16
nId
)
...
...
include/editeng/lrspitem.hxx
Dosyayı görüntüle @
0ffb225d
...
@@ -126,6 +126,7 @@ public:
...
@@ -126,6 +126,7 @@ public:
{
return
nPropFirstLineOfst
;
}
{
return
nPropFirstLineOfst
;
}
inline
void
SetTxtFirstLineOfstValue
(
const
short
nValue
)
inline
void
SetTxtFirstLineOfstValue
(
const
short
nValue
)
{
nFirstLineOfst
=
nValue
;
}
{
nFirstLineOfst
=
nValue
;
}
void
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
;
};
};
inline
SvxLRSpaceItem
&
SvxLRSpaceItem
::
operator
=
(
const
SvxLRSpaceItem
&
rCpy
)
inline
SvxLRSpaceItem
&
SvxLRSpaceItem
::
operator
=
(
const
SvxLRSpaceItem
&
rCpy
)
...
...
sw/source/core/docnode/nodedump.cxx
Dosyayı görüntüle @
0ffb225d
...
@@ -490,6 +490,9 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
...
@@ -490,6 +490,9 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
case
RES_COLUMNBALANCE
:
case
RES_COLUMNBALANCE
:
static_cast
<
const
SwFmtNoBalancedColumns
*>
(
pItem
)
->
dumpAsXml
(
writer
);
static_cast
<
const
SwFmtNoBalancedColumns
*>
(
pItem
)
->
dumpAsXml
(
writer
);
break
;
break
;
case
RES_LR_SPACE
:
static_cast
<
const
SvxLRSpaceItem
*>
(
pItem
)
->
dumpAsXml
(
writer
);
break
;
default
:
bDone
=
false
;
break
;
default
:
bDone
=
false
;
break
;
}
}
if
(
bDone
)
if
(
bDone
)
...
@@ -504,9 +507,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
...
@@ -504,9 +507,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
boost
::
optional
<
OString
>
oValue
;
boost
::
optional
<
OString
>
oValue
;
switch
(
pItem
->
Which
())
switch
(
pItem
->
Which
())
{
{
case
RES_LR_SPACE
:
pWhich
=
"left-right space"
;
break
;
case
RES_UL_SPACE
:
case
RES_UL_SPACE
:
pWhich
=
"upper-lower space"
;
pWhich
=
"upper-lower space"
;
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