xlnt/source/common/relationship.cpp

20 lines
509 B
C++
Raw Normal View History

2014-08-14 06:56:34 +08:00
#include <xlnt/common/relationship.hpp>
2014-05-22 05:48:51 +08:00
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)
2014-05-22 05:48:51 +08:00
{
if (t == type::hyperlink)
2014-05-22 05:48:51 +08:00
{
target_mode_ = target_mode::external;
}
}
relationship::relationship()
: type_(type::invalid), id_(""), source_uri_(""), target_uri_(""), target_mode_(target_mode::internal)
2014-06-11 05:12:15 +08:00
{
}
2014-05-22 05:48:51 +08:00
} // namespace xlnt