Kaydet (Commit) 2b6338f3 authored tarafından Miklos Vajna's avatar Miklos Vajna

sd: add SdPage::dumpAsXml()

Change-Id: Ifef668530d660b0b6330f1e60ed558501a74611e
üst 2e1503db
......@@ -241,7 +241,7 @@ public:
void SetNavigationOrder (const css::uno::Reference<
css::container::XIndexAccess>& rxOrder);
void dumpAsXml(struct _xmlTextWriter* pWriter) const;
virtual void dumpAsXml(struct _xmlTextWriter* pWriter) const;
private:
class WeakSdrObjectContainerType;
......
......@@ -374,6 +374,7 @@ public:
const sd::AnnotationVector& getAnnotations() const { return maAnnotations; }
sal_Int32 getHash() const;
OString stringify() const;
virtual void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE;
private:
bool mbIsPrecious;
......
......@@ -19,6 +19,7 @@
#include <vector>
#include <boost/ptr_container/ptr_vector.hpp>
#include <libxml/xmlwriter.h>
#include <sfx2/docfile.hxx>
#include <vcl/svapp.hxx>
......@@ -634,4 +635,29 @@ void SdPage::removeAnnotation( const Reference< XAnnotation >& xAnnotation )
}
}
void SdPage::dumpAsXml(xmlTextWriterPtr pWriter) const
{
xmlTextWriterStartElement(pWriter, BAD_CAST("sdPage"));
const char* pPageKind = 0;
switch (mePageKind)
{
case PK_STANDARD:
pPageKind = "PK_STANDARD";
break;
case PK_NOTES:
pPageKind = "PK_NOTES";
break;
case PK_HANDOUT:
pPageKind = "PK_HANDOUT";
break;
}
if (pPageKind)
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("mePageKind"), BAD_CAST(pPageKind));
FmFormPage::dumpAsXml(pWriter);
xmlTextWriterEndElement(pWriter);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment