mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
make the code compile
This commit is contained in:
parent
b3c044948f
commit
9d312ee7f4
|
@ -23,13 +23,23 @@
|
|||
// @author: see AUTHORS file
|
||||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
#include <iterator>
|
||||
#include <functional>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include <xlnt/xlnt_config.hpp>
|
||||
|
||||
namespace xlnt {
|
||||
|
||||
class cell;
|
||||
class path;
|
||||
class worksheet;
|
||||
|
||||
namespace detail {
|
||||
class xlsx_consumer;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// workbook is the container for all other parts of the document.
|
||||
/// </summary>
|
||||
|
@ -42,7 +52,7 @@ public:
|
|||
/// Closes currently open read stream. This will be called automatically
|
||||
/// by the destructor if it hasn't already been called manually.
|
||||
/// </summary>
|
||||
close();
|
||||
void close();
|
||||
|
||||
/// <summary>
|
||||
/// Registers callback as the function to be called when a cell is read.
|
||||
|
@ -88,7 +98,7 @@ public:
|
|||
/// Interprets file with the given filename as an XLSX file and sets the
|
||||
/// content of this workbook to match that file.
|
||||
/// </summary>
|
||||
void open(const xlnt::path &filename);
|
||||
void open(const path &filename);
|
||||
|
||||
/// <summary>
|
||||
/// Interprets data in stream as an XLSX file and sets the content of this
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
// @license: http://www.opensource.org/licenses/mit-license.php
|
||||
// @author: see AUTHORS file
|
||||
|
||||
#include <detail/serialization/xlsx_consumer.hpp>
|
||||
#include <xlnt/workbook/streaming_workbook_reader.hpp>
|
||||
|
||||
namespace xlnt {
|
||||
|
@ -31,7 +32,7 @@ streaming_workbook_reader::~streaming_workbook_reader()
|
|||
close();
|
||||
}
|
||||
|
||||
streaming_workbook_reader::close()
|
||||
void streaming_workbook_reader::close()
|
||||
{
|
||||
if (consumer_)
|
||||
{
|
||||
|
@ -41,22 +42,22 @@ streaming_workbook_reader::close()
|
|||
|
||||
void streaming_workbook_reader::on_cell(std::function<void(cell)> callback)
|
||||
{
|
||||
consumer_->on_cell(callback);
|
||||
//consumer_->on_cell(callback);
|
||||
}
|
||||
|
||||
void streaming_workbook_reader::on_worksheet_start(std::function<void(std::string)> callback)
|
||||
{
|
||||
consumer_->on_worksheet_start(callback);
|
||||
//consumer_->on_worksheet_start(callback);
|
||||
}
|
||||
|
||||
void streaming_workbook_reader::on_worksheet_end(std::function<void(worksheet)> callback)
|
||||
{
|
||||
consumer_->on_worksheet_end(callback);
|
||||
//consumer_->on_worksheet_end(callback);
|
||||
}
|
||||
|
||||
void streaming_workbook_reader::open(const std::vector<std::uint8_t> &data)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
void streaming_workbook_reader::open(const std::string &filename)
|
||||
|
|
Loading…
Reference in New Issue
Block a user