Fixed 3nd block of errors

This commit is contained in:
Vitaly Pavlov 2024-02-26 18:50:52 +03:00
parent b9f9a9d224
commit e92ca9bd71
5 changed files with 14 additions and 0 deletions

View File

@ -176,6 +176,11 @@ public:
/// </summary> /// </summary>
const cell operator[](std::size_t column_index) const; const cell operator[](std::size_t column_index) const;
/// <summary>
/// Returns true if this sheet has an initialized cell at the given cell_index.
/// </summary>
bool has_cell(std::size_t cell_index) const;
private: private:
/// <summary> /// <summary>
/// The worksheet this vector points to cells from /// The worksheet this vector points to cells from

View File

@ -22,6 +22,7 @@
// @author: see AUTHORS file // @author: see AUTHORS file
#include <cmath> #include <cmath>
#include <ctime> #include <ctime>
#include <cstdint>
#include <xlnt/utils/time.hpp> #include <xlnt/utils/time.hpp>

View File

@ -22,6 +22,7 @@
// @author: see AUTHORS file // @author: see AUTHORS file
#include <cmath> #include <cmath>
#include <ctime> #include <ctime>
#include <cstdint>
#include <xlnt/utils/timedelta.hpp> #include <xlnt/utils/timedelta.hpp>

View File

@ -28,6 +28,8 @@
#include <functional> #include <functional>
#include <set> #include <set>
#include <codecvt>
#include <xlnt/cell/cell.hpp> #include <xlnt/cell/cell.hpp>
#include <xlnt/packaging/manifest.hpp> #include <xlnt/packaging/manifest.hpp>
#include <xlnt/packaging/relationship.hpp> #include <xlnt/packaging/relationship.hpp>

View File

@ -171,4 +171,9 @@ const cell cell_vector::operator[](std::size_t cell_index) const
return ws_.cell(cursor_.make_offset(0, static_cast<int>(cell_index))); return ws_.cell(cursor_.make_offset(0, static_cast<int>(cell_index)));
} }
bool cell_vector::has_cell(std::size_t cell_index) const
{
return ws_.has_cell(cursor_.make_offset(0, static_cast<int>(cell_index)));
}
} // namespace xlnt } // namespace xlnt