mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62950 954022d7-b5bf-4e40-9824-e11837661b57
41 lines
739 B
C++
41 lines
739 B
C++
|
|
|
|
#include <boost/foreach.hpp>
|
|
|
|
#include "odf_rels.h"
|
|
|
|
#include <cpdoccore/xml/attributes.h>
|
|
#include <cpdoccore/xml/simple_xml_writer.h>
|
|
|
|
namespace cpdoccore {
|
|
namespace odf_writer {
|
|
|
|
|
|
void relationship::serialize(std::wostream & _Wostream)
|
|
{
|
|
CP_XML_WRITER(_Wostream)
|
|
{
|
|
CP_XML_NODE(L"manifest:file-entry")
|
|
{
|
|
CP_XML_ATTR(L"manifest:full-path", target());
|
|
CP_XML_ATTR(L"manifest:media-type", type());
|
|
}
|
|
}
|
|
}
|
|
|
|
void rels::serialize(std::wostream & _Wostream)
|
|
{
|
|
BOOST_FOREACH(relationship & r, relationship_)
|
|
{
|
|
r.serialize(_Wostream);
|
|
}
|
|
}
|
|
|
|
void rels::add(relationship const & r)
|
|
{
|
|
relationships().push_back(r);
|
|
}
|
|
|
|
}
|
|
}
|