#include #include #include "detail/comment_impl.hpp" namespace xlnt { comment::comment(detail::comment_impl *d) : d_(d) { } comment::comment(cell parent, const string &text, const string &author) : d_(nullptr) { d_ = parent.get_comment().d_; d_->text_ = text; d_->author_ = author; } comment::comment() : d_(nullptr) { } comment::~comment() { } string comment::get_author() const { return d_->author_; } string comment::get_text() const { return d_->text_; } bool comment::operator==(const xlnt::comment &other) const { return d_ == other.d_; } } // namespace xlnt