2014-06-05 16:19:31 -04:00
|
|
|
#include "cell_impl.hpp"
|
2014-08-13 18:56:34 -04:00
|
|
|
#include <xlnt/worksheet/worksheet.hpp>
|
2014-05-30 18:42:25 -04:00
|
|
|
|
|
|
|
namespace xlnt {
|
|
|
|
namespace detail {
|
|
|
|
|
2014-07-29 18:01:54 -04:00
|
|
|
cell_impl::cell_impl() : parent_(nullptr), column_(0), row_(0), style_(nullptr), merged(false), is_date_(false), has_hyperlink_(false)
|
2014-05-30 18:42:25 -04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-07-29 18:01:54 -04:00
|
|
|
cell_impl::cell_impl(worksheet_impl *parent, int column_index, int row_index) : parent_(parent), column_(column_index), row_(row_index), style_(nullptr), merged(false), is_date_(false), has_hyperlink_(false)
|
2014-05-30 18:42:25 -04:00
|
|
|
{
|
|
|
|
}
|
2014-06-12 17:04:37 -04:00
|
|
|
|
2014-07-26 16:19:15 -04:00
|
|
|
cell_impl::cell_impl(const cell_impl &rhs) : is_date_(false)
|
2014-06-12 17:04:37 -04:00
|
|
|
{
|
|
|
|
*this = rhs;
|
|
|
|
}
|
|
|
|
|
|
|
|
cell_impl &cell_impl::operator=(const cell_impl &rhs)
|
|
|
|
{
|
|
|
|
parent_ = rhs.parent_;
|
2014-07-25 16:39:25 -04:00
|
|
|
value_ = rhs.value_;
|
2014-06-12 17:04:37 -04:00
|
|
|
hyperlink_ = rhs.hyperlink_;
|
2014-07-25 16:39:25 -04:00
|
|
|
formula_ = rhs.formula_;
|
|
|
|
column_ = rhs.column_;
|
|
|
|
row_ = rhs.row_;
|
2014-06-12 17:04:37 -04:00
|
|
|
style_ = rhs.style_;
|
|
|
|
merged = rhs.merged;
|
|
|
|
is_date_ = rhs.is_date_;
|
|
|
|
has_hyperlink_ = rhs.has_hyperlink_;
|
|
|
|
return *this;
|
|
|
|
}
|
2014-05-30 18:42:25 -04:00
|
|
|
|
|
|
|
} // namespace detail
|
|
|
|
} // namespace xlnt
|