Orcus
import_interface_view.hpp
1 /*************************************************************************
2  *
3  * Copyright (c) 2017 Kohei Yoshida
4  *
5  * Permission is hereby granted, free of charge, to any person
6  * obtaining a copy of this software and associated documentation
7  * files (the "Software"), to deal in the Software without
8  * restriction, including without limitation the rights to use,
9  * copy, modify, merge, publish, distribute, sublicense, and/or sell
10  * copies of the Software, and to permit persons to whom the
11  * Software is furnished to do so, subject to the following
12  * conditions:
13  *
14  * The above copyright notice and this permission notice shall be
15  * included in all copies or substantial portions of the Software.
16  *
17  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21  * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24  * OTHER DEALINGS IN THE SOFTWARE.
25  *
26  ************************************************************************/
27 
28 #ifndef IMPORT_ORCUS_SPREADSHEET_IMPORT_INTERFACE_VIEW_HPP
29 #define IMPORT_ORCUS_SPREADSHEET_IMPORT_INTERFACE_VIEW_HPP
30 
31 #include <cstdlib>
32 
33 #include "orcus/spreadsheet/view_types.hpp"
34 #include "orcus/types.hpp"
35 #include "orcus/env.hpp"
36 
37 namespace orcus { namespace spreadsheet { namespace iface {
38 
39 class ORCUS_DLLPUBLIC import_sheet_view
40 {
41 public:
42  virtual ~import_sheet_view();
43 
47  virtual void set_sheet_active() = 0;
48 
62  virtual void set_split_pane(
63  double hor_split, double ver_split,
64  const orcus::spreadsheet::address_t& top_left_cell,
65  orcus::spreadsheet::sheet_pane_t active_pane) = 0;
66 
76  virtual void set_frozen_pane(
77  orcus::spreadsheet::col_t visible_columns,
78  orcus::spreadsheet::row_t visible_rows,
79  const orcus::spreadsheet::address_t& top_left_cell,
80  orcus::spreadsheet::sheet_pane_t active_pane) = 0;
81 
90  virtual void set_selected_range(
91  orcus::spreadsheet::sheet_pane_t pane,
92  orcus::spreadsheet::range_t range) = 0;
93 };
94 
95 }}}
96 
97 #endif
orcus::spreadsheet::address_t
Definition: types.hpp:322
orcus::spreadsheet::range_t
Definition: types.hpp:334