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
bd44dcf8
Kaydet (Commit)
bd44dcf8
authored
Nis 29, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw doc model xml dump: include section properties
Change-Id: I555c773b0dcc90c8efba5fd7d48b22278f2ef5a5
üst
4d1c4c60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
2 deletions
+36
-2
nodedump.cxx
sw/source/core/docnode/nodedump.cxx
+36
-2
No files found.
sw/source/core/docnode/nodedump.cxx
Dosyayı görüntüle @
bd44dcf8
...
@@ -23,6 +23,8 @@
...
@@ -23,6 +23,8 @@
#include "fmtsrnd.hxx"
#include "fmtsrnd.hxx"
#include "paratr.hxx"
#include "paratr.hxx"
#include "redline.hxx"
#include "redline.hxx"
#include "section.hxx"
#include "fmtclds.hxx"
#include <swmodule.hxx>
#include <swmodule.hxx>
#include <svl/itemiter.hxx>
#include <svl/itemiter.hxx>
#include <svl/intitem.hxx>
#include <svl/intitem.hxx>
...
@@ -119,6 +121,8 @@ static const char* TMP_FORMAT_I32 = "%" SAL_PRIdINT32;
...
@@ -119,6 +121,8 @@ static const char* TMP_FORMAT_I32 = "%" SAL_PRIdINT32;
}
}
void
lcl_dumpSfxItemSet
(
WriterHelper
&
writer
,
const
SfxItemSet
*
pSet
);
void
lcl_dumpSdrModel
(
WriterHelper
&
writer
,
const
SdrModel
*
pModel
)
void
lcl_dumpSdrModel
(
WriterHelper
&
writer
,
const
SdrModel
*
pModel
)
{
{
writer
.
startElement
(
"sdrModel"
);
writer
.
startElement
(
"sdrModel"
);
...
@@ -316,7 +320,7 @@ void SwStartNode::dumpAsXml( xmlTextWriterPtr w )
...
@@ -316,7 +320,7 @@ void SwStartNode::dumpAsXml( xmlTextWriterPtr w )
name
=
"table"
;
name
=
"table"
;
break
;
break
;
case
ND_SECTIONNODE
:
case
ND_SECTIONNODE
:
name
=
"section"
;
name
=
"section
Node
"
;
break
;
break
;
default
:
default
:
switch
(
GetStartNodeType
())
switch
(
GetStartNodeType
())
...
@@ -345,6 +349,20 @@ void SwStartNode::dumpAsXml( xmlTextWriterPtr w )
...
@@ -345,6 +349,20 @@ void SwStartNode::dumpAsXml( xmlTextWriterPtr w )
writer
.
startElement
(
name
);
writer
.
startElement
(
name
);
writer
.
writeFormatAttribute
(
"ptr"
,
"%p"
,
this
);
writer
.
writeFormatAttribute
(
"ptr"
,
"%p"
,
this
);
writer
.
writeFormatAttribute
(
"index"
,
TMP_FORMAT
,
GetIndex
()
);
writer
.
writeFormatAttribute
(
"index"
,
TMP_FORMAT
,
GetIndex
()
);
if
(
GetNodeType
()
==
ND_SECTIONNODE
)
{
SwSection
&
rSection
=
GetSectionNode
()
->
GetSection
();
writer
.
startElement
(
"section"
);
SwSectionFmt
*
pFmt
=
rSection
.
GetFmt
();
writer
.
startElement
(
"swsectionfmt"
);
lcl_dumpSfxItemSet
(
writer
,
&
pFmt
->
GetAttrSet
());
writer
.
endElement
();
writer
.
endElement
();
}
// writer.endElement(); - it is a start node, so don't end, will make xml better nested
// writer.endElement(); - it is a start node, so don't end, will make xml better nested
}
}
...
@@ -389,7 +407,7 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
...
@@ -389,7 +407,7 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
}
}
case
RES_CNTNT
:
case
RES_CNTNT
:
{
{
pWhich
=
"
frame
content"
;
pWhich
=
"content"
;
const
SwFmtCntnt
*
pCntnt
=
static_cast
<
const
SwFmtCntnt
*>
(
pItem
);
const
SwFmtCntnt
*
pCntnt
=
static_cast
<
const
SwFmtCntnt
*>
(
pItem
);
oValue
=
"node index: "
+
OString
::
number
(
pCntnt
->
GetCntntIdx
()
->
GetNode
().
GetIndex
());
oValue
=
"node index: "
+
OString
::
number
(
pCntnt
->
GetCntntIdx
()
->
GetNode
().
GetIndex
());
break
;
break
;
...
@@ -482,6 +500,22 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
...
@@ -482,6 +500,22 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
}
}
break
;
break
;
}
}
case
RES_COL
:
{
pWhich
=
"columns formatting"
;
const
SwFmtCol
*
pFmtCol
=
static_cast
<
const
SwFmtCol
*>
(
pItem
);
oValue
=
"number of columns: "
+
OString
::
number
(
pFmtCol
->
GetColumns
().
size
());
break
;
}
case
RES_PROTECT
:
pWhich
=
"protect"
;
break
;
case
RES_EDIT_IN_READONLY
:
pWhich
=
"edit in read-only"
;
break
;
case
RES_COLUMNBALANCE
:
pWhich
=
"column balance"
;
break
;
}
}
if
(
pWhich
)
if
(
pWhich
)
writer
.
writeFormatAttribute
(
"which"
,
"%s"
,
BAD_CAST
(
pWhich
));
writer
.
writeFormatAttribute
(
"which"
,
"%s"
,
BAD_CAST
(
pWhich
));
...
...
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