Orcus
orcus_gnumeric.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 ORCUS_ORCUS_GNUMERIC_HPP
9 #define ORCUS_ORCUS_GNUMERIC_HPP
10 
11 #include "interface.hpp"
12 
13 namespace orcus {
14 
15 namespace spreadsheet { namespace iface { class import_factory; }}
16 
17 struct orcus_gnumeric_impl;
18 
19 class ORCUS_DLLPUBLIC orcus_gnumeric : public iface::import_filter
20 {
21  orcus_gnumeric(const orcus_gnumeric&); // disabled
22 public:
23  orcus_gnumeric(spreadsheet::iface::import_factory* factory);
24  ~orcus_gnumeric();
25 
26  static bool detect(const unsigned char* blob, size_t size);
27 
28  virtual void read_file(const std::string& filepath);
29 
30  virtual void read_stream(const char* content, size_t len);
31 
32  virtual const char* get_name() const;
33 
34 private:
35  void read_content_xml(const char* p, size_t size);
36 
37 private:
38  orcus_gnumeric_impl* mp_impl;
39 };
40 
41 }
42 
43 #endif
44 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: import_interface.hpp:685
Definition: orcus_gnumeric.hpp:19
Definition: base64.hpp:15
Definition: interface.hpp:21