xlnt/source/comment.cpp

41 lines
640 B
C++
Raw Normal View History

2014-08-14 06:56:34 +08:00
#include <xlnt/cell/comment.hpp>
#include <xlnt/cell/cell.hpp>
#include "detail/comment_impl.hpp"
2014-07-26 04:39:25 +08:00
namespace xlnt {
comment::comment(detail::comment_impl *d) : d_(d)
{
}
comment::comment(cell parent, const std::string &text, const std::string &author) : d_(nullptr)
2014-07-26 04:39:25 +08:00
{
d_ = parent.get_comment().d_;
2014-07-26 04:39:25 +08:00
}
comment::comment() : d_(nullptr)
2014-07-26 04:39:25 +08:00
{
}
comment::~comment()
{
}
std::string comment::get_author() const
{
return d_->author_;
2014-07-26 04:39:25 +08:00
}
std::string comment::get_text() const
{
return d_->text_;
2014-07-26 04:39:25 +08:00
}
bool comment::operator==(const xlnt::comment &other) const
{
return d_ == other.d_;
}
2014-07-26 04:39:25 +08:00
} // namespace xlnt