2015-11-03 21:38:09 +08:00
|
|
|
#include <xlnt/packaging/relationship.hpp>
|
2014-05-22 05:48:51 +08:00
|
|
|
|
|
|
|
namespace xlnt {
|
|
|
|
|
2015-11-08 09:00:54 +08:00
|
|
|
XLNT_FUNCTION relationship::relationship(type t, const string &r_id, const string &target_uri)
|
2015-11-01 22:43:01 +08:00
|
|
|
: type_(t), id_(r_id), source_uri_(""), target_uri_(target_uri), target_mode_(target_mode::internal)
|
2014-05-22 05:48:51 +08:00
|
|
|
{
|
2015-11-01 22:43:01 +08:00
|
|
|
if (t == type::hyperlink)
|
2014-05-22 05:48:51 +08:00
|
|
|
{
|
|
|
|
target_mode_ = target_mode::external;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-08 09:00:54 +08:00
|
|
|
XLNT_FUNCTION relationship::relationship()
|
2015-11-01 22:43:01 +08:00
|
|
|
: 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
|