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
9071c507
Kaydet (Commit)
9071c507
authored
Ara 19, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Factor out SwFmtCntnt::dumpAsXml() from nodedump
Change-Id: I6adcaa8534efefa474d489125d3fb95f150e3e89
üst
93bb2101
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
7 deletions
+13
-7
fmtcntnt.hxx
sw/inc/fmtcntnt.hxx
+2
-0
nodedump.cxx
sw/source/core/docnode/nodedump.cxx
+3
-7
atrfrm.cxx
sw/source/core/layout/atrfrm.cxx
+8
-0
No files found.
sw/inc/fmtcntnt.hxx
Dosyayı görüntüle @
9071c507
...
...
@@ -44,6 +44,8 @@ public:
const
SwNodeIndex
*
GetCntntIdx
()
const
{
return
pStartNode
;
}
void
SetNewCntntIdx
(
const
SwNodeIndex
*
pIdx
);
void
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
;
};
inline
const
SwFmtCntnt
&
SwAttrSet
::
GetCntnt
(
bool
bInP
)
const
...
...
sw/source/core/docnode/nodedump.cxx
Dosyayı görüntüle @
9071c507
...
...
@@ -423,6 +423,9 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
case
RES_CHRATR_FONTSIZE
:
static_cast
<
const
SvxFontHeightItem
*>
(
pItem
)
->
dumpAsXml
(
writer
);
break
;
case
RES_CNTNT
:
static_cast
<
const
SwFmtCntnt
*>
(
pItem
)
->
dumpAsXml
(
writer
);
break
;
default
:
bDone
=
false
;
break
;
}
if
(
bDone
)
...
...
@@ -437,13 +440,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
boost
::
optional
<
OString
>
oValue
;
switch
(
pItem
->
Which
())
{
case
RES_CNTNT
:
{
pWhich
=
"content"
;
const
SwFmtCntnt
*
pCntnt
=
static_cast
<
const
SwFmtCntnt
*>
(
pItem
);
oValue
=
"node index: "
+
OString
::
number
(
pCntnt
->
GetCntntIdx
()
->
GetNode
().
GetIndex
());
break
;
}
case
RES_FRM_SIZE
:
{
pWhich
=
"frame size"
;
...
...
sw/source/core/layout/atrfrm.cxx
Dosyayı görüntüle @
9071c507
...
...
@@ -555,6 +555,14 @@ SfxPoolItem* SwFmtCntnt::Clone( SfxItemPool* ) const
return
new
SwFmtCntnt
(
*
this
);
}
void
SwFmtCntnt
::
dumpAsXml
(
xmlTextWriterPtr
pWriter
)
const
{
xmlTextWriterStartElement
(
pWriter
,
BAD_CAST
(
"swFmtCntnt"
));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"whichId"
),
BAD_CAST
(
OString
::
number
(
Which
()).
getStr
()));
xmlTextWriterWriteAttribute
(
pWriter
,
BAD_CAST
(
"startNode"
),
BAD_CAST
(
OString
::
number
(
pStartNode
->
GetNode
().
GetIndex
()).
getStr
()));
xmlTextWriterEndElement
(
pWriter
);
}
// Partially implemented inline in hxx
SwFmtPageDesc
::
SwFmtPageDesc
(
const
SwFmtPageDesc
&
rCpy
)
:
SfxPoolItem
(
RES_PAGEDESC
),
...
...
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