Files
core/ASCOfficeOdfFileW/source/OdfFormat/odf_rels.h
Elen.Subbotina 33ef5b4404 OdfFile Reader & Writer рефакторинг (не собирались вместе - конфликты)
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62950 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-21 00:08:02 +03:00

52 lines
1.0 KiB
C++

#pragma once
#include <vector>
#include <string>
#include <cpdoccore/xml/xmlelement.h>
#include <cpdoccore/CPSharedPtr.h>
namespace cpdoccore {
namespace odf_writer {
class relationship /*: public xml::element_impl<relationship>*/
{
public:
relationship() {}
relationship(const std::wstring & Type,const std::wstring & Target) : type_(Type), target_(Target)
{}
void serialize(::std::wostream & _Wostream);
const std::wstring & type() const { return type_; }
const std::wstring & target() const { return target_; }
private:
std::wstring type_;
std::wstring target_;
};
class rels;
typedef _CP_PTR(rels) rels_ptr;
/// \class rels
class rels
{
public:
rels() {}
void serialize(std::wostream & _Wostream);
std::vector<relationship> & relationships() { return relationship_; }
void add(relationship const & r);
bool empty() { return relationship_.empty(); }
private:
std::vector<relationship> relationship_;
};
}
}