Orcus
Toggle main menu visibility
Loading...
Searching...
No Matches
include
orcus
spreadsheet
shared_strings.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_SPREADSHEET_SHARED_STRINGS_HPP
9
#define INCLUDED_ORCUS_SPREADSHEET_SHARED_STRINGS_HPP
10
11
#include "document_types.hpp"
12
13
#include <vector>
14
#include <memory>
15
#include <string>
16
17
namespace
ixion {
class
model_context; }
18
19
namespace
orcus {
20
21
namespace
spreadsheet {
22
30
class
ORCUS_SPM_DLLPUBLIC shared_strings
31
{
32
struct
impl;
33
std::unique_ptr<impl> mp_impl;
34
35
public
:
36
shared_strings() =
delete
;
37
shared_strings(
const
shared_strings&) =
delete
;
38
shared_strings& operator=(
const
shared_strings&) =
delete
;
39
40
shared_strings(ixion::model_context& cxt);
41
~shared_strings();
42
49
void
set_format_runs
(std::size_t sindex, std::unique_ptr<format_runs_t> runs);
50
59
const
format_runs_t*
get_format_runs
(std::size_t index)
const
;
60
69
const
std::string*
get_string
(std::size_t index)
const
;
70
71
void
dump(std::ostream& os)
const
;
72
};
73
74
}}
75
76
#endif
77
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
orcus::spreadsheet::shared_strings::get_format_runs
const format_runs_t * get_format_runs(std::size_t index) const
orcus::spreadsheet::shared_strings::set_format_runs
void set_format_runs(std::size_t sindex, std::unique_ptr< format_runs_t > runs)
orcus::spreadsheet::shared_strings::get_string
const std::string * get_string(std::size_t index) const
Generated on
for Orcus by
1.17.0