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
d857871b
Kaydet (Commit)
d857871b
authored
Şub 10, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Extract SwNodes::dumpAsXml() from nodedump
Change-Id: Ic94fceef0d4291a02bc3da7bcbeeb2c19670200c
üst
8b68841c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
13 deletions
+11
-13
ndarr.hxx
sw/inc/ndarr.hxx
+1
-1
nodedump.cxx
sw/source/core/docnode/nodedump.cxx
+0
-12
nodes.cxx
sw/source/core/docnode/nodes.cxx
+10
-0
No files found.
sw/inc/ndarr.hxx
Dosyayı görüntüle @
d857871b
...
@@ -330,7 +330,7 @@ public:
...
@@ -330,7 +330,7 @@ public:
* Dumps the entire nodes structure to the given destination (file nodes.xml in the current directory by default)
* Dumps the entire nodes structure to the given destination (file nodes.xml in the current directory by default)
* @since 3.5
* @since 3.5
*/
*/
void
dumpAsXml
(
xmlTextWriterPtr
writer
=
NULL
)
const
;
void
dumpAsXml
(
xmlTextWriterPtr
pWriter
)
const
;
};
};
...
...
sw/source/core/docnode/nodedump.cxx
Dosyayı görüntüle @
d857871b
...
@@ -167,18 +167,6 @@ void SwFldTypes::dumpAsXml( xmlTextWriterPtr w ) const
...
@@ -167,18 +167,6 @@ void SwFldTypes::dumpAsXml( xmlTextWriterPtr w ) const
writer
.
endElement
();
writer
.
endElement
();
}
}
void
SwNodes
::
dumpAsXml
(
xmlTextWriterPtr
w
)
const
{
WriterHelper
writer
(
w
);
writer
.
startElement
(
"swnodes"
);
writer
.
writeFormatAttribute
(
"ptr"
,
"%p"
,
this
);
for
(
unsigned
int
i
=
0
;
i
<
Count
();
++
i
)
{
(
*
this
)[
i
]
->
dumpAsXml
(
writer
);
}
writer
.
endElement
();
}
void
SwNode
::
dumpAsXml
(
xmlTextWriterPtr
w
)
const
void
SwNode
::
dumpAsXml
(
xmlTextWriterPtr
w
)
const
{
{
WriterHelper
writer
(
w
);
WriterHelper
writer
(
w
);
...
...
sw/source/core/docnode/nodes.cxx
Dosyayı görüntüle @
d857871b
...
@@ -19,6 +19,8 @@
...
@@ -19,6 +19,8 @@
#include <stdlib.h>
#include <stdlib.h>
#include <libxml/xmlwriter.h>
#include <node.hxx>
#include <node.hxx>
#include <doc.hxx>
#include <doc.hxx>
#include <IDocumentUndoRedo.hxx>
#include <IDocumentUndoRedo.hxx>
...
@@ -2311,4 +2313,12 @@ bool SwNodes::IsDocNodes() const
...
@@ -2311,4 +2313,12 @@ bool SwNodes::IsDocNodes() const
return
this
==
&
pMyDoc
->
GetNodes
();
return
this
==
&
pMyDoc
->
GetNodes
();
}
}
void
SwNodes
::
dumpAsXml
(
xmlTextWriterPtr
pWriter
)
const
{
xmlTextWriterStartElement
(
pWriter
,
BAD_CAST
(
"swNodes"
));
for
(
sal_uLong
i
=
0
;
i
<
Count
();
++
i
)
(
*
this
)[
i
]
->
dumpAsXml
(
pWriter
);
xmlTextWriterEndElement
(
pWriter
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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