mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
20 lines
530 B
C++
20 lines
530 B
C++
#include <xlnt/packaging/relationship.hpp>
|
|
|
|
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)
|
|
{
|
|
if (t == type::hyperlink)
|
|
{
|
|
target_mode_ = target_mode::external;
|
|
}
|
|
}
|
|
|
|
XLNT_FUNCTION relationship::relationship()
|
|
: type_(type::invalid), id_(""), source_uri_(""), target_uri_(""), target_mode_(target_mode::internal)
|
|
{
|
|
}
|
|
|
|
} // namespace xlnt
|