mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Merge e92ca9bd71bb99441545c664a2312d269ef17db9 into 297b331435d6dee09bf89c8a5ad974b01f18039b
This commit is contained in:
commit
333e642ff2
@ -24,6 +24,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <cstdint>
|
||||
|
||||
#include <xlnt/xlnt_config.hpp>
|
||||
|
||||
|
@ -25,6 +25,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <cstdint>
|
||||
|
||||
#include <xlnt/xlnt_config.hpp>
|
||||
|
||||
|
@ -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
|
||||
|
@ -22,6 +22,7 @@
|
||||
// @author: see AUTHORS file
|
||||
#include <cmath>
|
||||
#include <ctime>
|
||||
#include <cstdint>
|
||||
|
||||
#include <xlnt/utils/time.hpp>
|
||||
|
||||
|
@ -22,6 +22,7 @@
|
||||
// @author: see AUTHORS file
|
||||
#include <cmath>
|
||||
#include <ctime>
|
||||
#include <cstdint>
|
||||
|
||||
#include <xlnt/utils/timedelta.hpp>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user