2014-08-14 06:56:34 +08:00
|
|
|
#include <xlnt/common/relationship.hpp>
|
2014-05-22 05:48:51 +08:00
|
|
|
|
|
|
|
namespace xlnt {
|
|
|
|
|
2014-07-25 05:31:46 +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), target_mode_(target_mode::internal)
|
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-25 05:31:46 +08:00
|
|
|
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
|