Orcus
factory.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_SPREADSHEET_IMPORT_FACTORY_HPP__
9 #define __ORCUS_SPREADSHEET_IMPORT_FACTORY_HPP__
10 
11 #include "orcus/spreadsheet/import_interface.hpp"
12 #include "orcus/spreadsheet/export_interface.hpp"
13 #include "orcus/env.hpp"
14 
15 namespace orcus { namespace spreadsheet {
16 
17 class document;
18 
19 struct import_factory_impl;
20 
21 class ORCUS_SPM_DLLPUBLIC import_factory : public iface::import_factory
22 {
23 public:
24  import_factory(document& doc, row_t row_size = 1048576, col_t col_size = 1024);
25  virtual ~import_factory();
26 
27  virtual iface::import_global_settings* get_global_settings();
28  virtual iface::import_shared_strings* get_shared_strings();
29  virtual iface::import_styles* get_styles();
30  virtual iface::import_sheet* append_sheet(const char* sheet_name, size_t sheet_name_length);
31  virtual iface::import_sheet* get_sheet(const char* sheet_name, size_t sheet_name_length);
32  virtual iface::import_sheet* get_sheet(sheet_t sheet_index);
33  virtual void finalize();
34 
35 private:
36  import_factory_impl* mp_impl;
37 };
38 
39 struct export_factory_impl;
40 
41 class ORCUS_SPM_DLLPUBLIC export_factory : public iface::export_factory
42 {
43 public:
45  virtual ~export_factory();
46 
47  virtual const iface::export_sheet* get_sheet(const char* sheet_name, size_t sheet_name_length) const;
48 
49 private:
50  export_factory_impl* mp_impl;
51 };
52 
53 }}
54 
55 #endif
56 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: import_interface.hpp:415
Definition: factory.hpp:21
Definition: import_interface.hpp:80
Definition: document.hpp:44
Definition: import_interface.hpp:641
Definition: export_interface.hpp:26
Definition: factory.hpp:41
Definition: import_interface.hpp:685
Definition: export_interface.hpp:18
Definition: import_interface.hpp:26
Definition: base64.hpp:15