Orcus
Toggle main menu visibility
Loading...
Searching...
No Matches
include
orcus
orcus_xlsx.hpp
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/*
3
* This Source Code Form is subject to the terms of the Mozilla Public
4
* License, v. 2.0. If a copy of the MPL was not distributed with this
5
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
*/
7
8
#ifndef INCLUDED_ORCUS_ORCUS_XLSX_HPP
9
#define INCLUDED_ORCUS_ORCUS_XLSX_HPP
10
11
#include "interface.hpp"
12
13
#include <memory>
14
15
namespace
orcus {
16
17
namespace
spreadsheet {
namespace
iface {
class
import_factory
; }}
18
19
struct
xlsx_rel_sheet_info;
20
struct
xlsx_rel_table_info;
21
struct
xlsx_rel_pivot_cache_info;
22
struct
xlsx_rel_pivot_cache_record_info;
23
struct
orcus_xlsx_impl;
24
class
xlsx_opc_handler;
25
26
class
ORCUS_DLLPUBLIC orcus_xlsx :
public
iface::import_filter
27
{
28
friend
class
xlsx_opc_handler;
29
struct
impl;
30
std::unique_ptr<impl> mp_impl;
31
32
public
:
33
orcus_xlsx(
spreadsheet::iface::import_factory
* factory);
34
~orcus_xlsx();
35
36
orcus_xlsx(
const
orcus_xlsx&) =
delete
;
37
orcus_xlsx& operator= (
const
orcus_xlsx&) =
delete
;
38
39
static
bool
detect(
const
unsigned
char
* blob,
size_t
size);
40
41
virtual
void
read_file
(std::string_view filepath)
override
;
42
virtual
void
read_stream
(std::string_view stream)
override
;
43
44
virtual
std::string_view
get_name
()
const override
;
45
46
private
:
47
48
void
set_formulas_to_doc();
49
50
void
read_workbook(
const
std::string& dir_path,
const
std::string& file_name);
51
55
void
read_sheet(
const
std::string& dir_path,
const
std::string& file_name, xlsx_rel_sheet_info* data);
56
61
void
read_shared_strings(
const
std::string& dir_path,
const
std::string& file_name);
62
63
void
read_styles(
const
std::string& dir_path,
const
std::string& file_name);
64
65
void
read_table(
const
std::string& dir_path,
const
std::string& file_name, xlsx_rel_table_info* data);
66
67
void
read_pivot_cache_def(
68
const
std::string& dir_path,
const
std::string& file_name,
69
const
xlsx_rel_pivot_cache_info* data);
70
71
void
read_pivot_cache_rec(
72
const
std::string& dir_path,
const
std::string& file_name,
73
const
xlsx_rel_pivot_cache_record_info* data);
74
75
void
read_pivot_table(
const
std::string& dir_path,
const
std::string& file_name);
76
77
void
read_rev_headers(
const
std::string& dir_path,
const
std::string& file_name);
78
79
void
read_rev_log(
const
std::string& dir_path,
const
std::string& file_name);
80
81
void
read_drawing(
const
std::string& dir_path,
const
std::string& file_name);
82
};
83
84
}
85
86
#endif
87
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
orcus::iface::import_filter
Definition
interface.hpp:27
orcus::orcus_xlsx::read_file
virtual void read_file(std::string_view filepath) override
orcus::orcus_xlsx::read_stream
virtual void read_stream(std::string_view stream) override
orcus::orcus_xlsx::get_name
virtual std::string_view get_name() const override
orcus::spreadsheet::iface::import_factory
Definition
import_interface.hpp:1169
Generated on
for Orcus by
1.17.0