xlnt/source/relationship.cpp
2014-08-13 18:56:34 -04:00

18 lines
501 B
C++

#include <xlnt/common/relationship.hpp>
namespace xlnt {
relationship::relationship(type t, const std::string &r_id, const std::string &target_uri) : type_(t), id_(r_id), source_uri_(""), target_uri_(target_uri), target_mode_(target_mode::internal)
{
if(t == type::hyperlink)
{
target_mode_ = target_mode::external;
}
}
relationship::relationship() : type_(type::invalid), id_(""), source_uri_(""), target_uri_(""), target_mode_(target_mode::internal)
{
}
} // namespace xlnt