Merge e92ca9bd71bb99441545c664a2312d269ef17db9 into 297b331435d6dee09bf89c8a5ad974b01f18039b

This commit is contained in:
Pavlov Vitaly 2024-02-26 11:50:57 -06:00 committed by GitHub
commit 333e642ff2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 16 additions and 0 deletions

View File

@ -24,6 +24,7 @@
#pragma once
#include <string>
#include <cstdint>
#include <xlnt/xlnt_config.hpp>

View File

@ -25,6 +25,7 @@
#include <string>
#include <vector>
#include <cstdint>
#include <xlnt/xlnt_config.hpp>

View File

@ -176,6 +176,11 @@ public:
/// </summary>
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:
/// <summary>
/// The worksheet this vector points to cells from

View File

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

View File

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

View File

@ -28,6 +28,8 @@
#include <functional>
#include <set>
#include <codecvt>
#include <xlnt/cell/cell.hpp>
#include <xlnt/packaging/manifest.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)));
}
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