30 #include <xlnt/xlnt_config.hpp> 31 #include <xlnt/cell/phonetic_run.hpp> 32 #include <xlnt/cell/rich_text_run.hpp> 33 #include <xlnt/worksheet/phonetic_pr.hpp> 62 rich_text(
const std::string &plain_text,
const class font &text_font);
78 void plain_text(
const std::string &s,
bool preserve_space);
83 std::string plain_text()
const;
88 std::vector<rich_text_run> runs()
const;
93 void runs(
const std::vector<rich_text_run> &new_runs);
103 std::vector<phonetic_run> phonetic_runs()
const;
108 void phonetic_runs(
const std::vector<phonetic_run> &new_phonetic_runs);
118 bool has_phonetic_properties()
const;
128 void phonetic_properties(
const phonetic_pr &phonetic_props);
148 bool operator==(
const std::string &rhs)
const;
153 bool operator!=(
const std::string &rhs)
const;
159 std::vector<rich_text_run> runs_;
160 std::vector<phonetic_run> phonetic_runs_;
167 std::size_t operator()(
const rich_text &k)
const 171 for (
auto r : k.
runs())
173 res ^= std::hash<std::string>()(r.first);
Typedef a rich_text_run as a pair of string and optional font.
Definition: rich_text_run.hpp:38
std::vector< rich_text_run > runs() const
Returns a copy of the individual runs that comprise this text.
Enumerates the possible types a cell can be determined by it's current value.
Definition: cell.hpp:37
Describes the font style of a particular cell.
Definition: font.hpp:41
bool operator==(std::nullptr_t, const cell &cell)
Returns true if this cell is uninitialized.
Encapsulates zero or more formatted text runs where a text run is a string of text with the same defi...
Definition: rich_text.hpp:41
Encapsulates a run of text that
Definition: phonetic_run.hpp:37
Many settings in xlnt are allowed to not have a value set. This class encapsulates a value which may ...
Definition: format.hpp:44
Definition: rich_text.hpp:164
bool operator!=(const std::string &reference_string, const range_reference &ref)
Returns true if the string representation of the range is not equivalent to ref.
Phonetic properties Element provides a collection of properties that affect display of East Asian Lan...
Definition: phonetic_pr.hpp:39