xlnt/source/packaging/relationship.cpp

20 lines
530 B
C++
Raw Normal View History

#include <xlnt/packaging/relationship.hpp>
2014-05-22 05:48:51 +08:00
namespace xlnt {
XLNT_FUNCTION relationship::relationship(type t, const string &r_id, const 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;
}
}
XLNT_FUNCTION 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