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