mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
42 lines
791 B
C++
42 lines
791 B
C++
#include "precompiled_cpodf.h"
|
|
|
|
#include <boost/foreach.hpp>
|
|
|
|
#include "odf_rels.h"
|
|
|
|
#include <cpdoccore/xml/serialize.h>
|
|
#include <cpdoccore/xml/attributes.h>
|
|
#include <cpdoccore/xml/simple_xml_writer.h>
|
|
|
|
namespace cpdoccore {
|
|
namespace odf {
|
|
|
|
|
|
void relationship::serialize(std::wostream & _Wostream)
|
|
{
|
|
CP_XML_WRITER(_Wostream)
|
|
{
|
|
CP_XML_NODE(L"manifest:file-entry")
|
|
{
|
|
CP_XML_ATTR(L"media-type", type());
|
|
CP_XML_ATTR(L"manifest:full-path", target());
|
|
}
|
|
}
|
|
}
|
|
|
|
void rels::serialize(std::wostream & _Wostream)
|
|
{
|
|
BOOST_FOREACH(relationship & r, relationship_)
|
|
{
|
|
r.serialize(_Wostream);
|
|
}
|
|
}
|
|
|
|
void rels::add(relationship const & r)
|
|
{
|
|
relationships().push_back(r);
|
|
}
|
|
|
|
}
|
|
}
|