|
xlnt - community edition
|
Phonetic properties Element provides a collection of properties that affect display of East Asian Languages [Serialised phoneticPr] More...
#include <phonetic_pr.hpp>
Public Types | |
| enum | align { center, distributed, left, no_control } |
| possible values for alignment property More... | |
| enum | phonetic_type { full_width_katakana, half_width_katakana, hiragana, no_conversion } |
| possible values for type property More... | |
| using | font_id_t = std::uint32_t |
| FontID represented by an unsigned 32-bit integer More... | |
Public Member Functions | |
| phonetic_pr ()=default | |
| Default ctor for phonetic properties More... | |
| phonetic_pr (font_id_t font) | |
| FontID ctor for phonetic properties More... | |
| void | serialise (std::ostream &output_stream) const |
| adds the xml serialised representation of this element to the stream More... | |
| font_id_t | font_id () const |
| get the font index More... | |
| void | font_id (font_id_t font) |
| set the font index More... | |
| bool | has_type () const |
| is the phonetic type set More... | |
| phonetic_type | type () const |
| returns the phonetic type More... | |
| void | type (phonetic_type type) |
| sets the phonetic type More... | |
| bool | has_alignment () const |
| is the alignment set More... | |
| align | alignment () const |
| get the alignment More... | |
| void | alignment (align align) |
| set the alignment More... | |
| bool | operator== (const phonetic_pr &rhs) const |
| bool | operator!= (const phonetic_pr &rhs) const |
Static Public Member Functions | |
| static std::string | Serialised_ID () |
| static const std::string & | type_as_string (phonetic_type type) |
| string form of the type enum More... | |
| static phonetic_type | type_from_string (const std::string &str) |
| type enum from string More... | |
| static const std::string & | alignment_as_string (xlnt::phonetic_pr::align type) |
| string form of alignment enum More... | |
| static align | alignment_from_string (const std::string &str) |
| alignment enum from string More... | |
Phonetic properties Element provides a collection of properties that affect display of East Asian Languages [Serialised phoneticPr]
| using xlnt::phonetic_pr::font_id_t = std::uint32_t |
FontID represented by an unsigned 32-bit integer
|
strong |
possible values for alignment property
|
strong |
possible values for type property
|
default |
Default ctor for phonetic properties
|
explicit |
FontID ctor for phonetic properties
| align xlnt::phonetic_pr::alignment | ( | ) | const |
get the alignment
| void xlnt::phonetic_pr::alignment | ( | align | align | ) |
set the alignment
|
static |
string form of alignment enum
|
static |
alignment enum from string
| font_id_t xlnt::phonetic_pr::font_id | ( | ) | const |
get the font index
| void xlnt::phonetic_pr::font_id | ( | font_id_t | font | ) |
set the font index
| bool xlnt::phonetic_pr::has_alignment | ( | ) | const |
is the alignment set
| bool xlnt::phonetic_pr::has_type | ( | ) | const |
is the phonetic type set
| void xlnt::phonetic_pr::serialise | ( | std::ostream & | output_stream | ) | const |
adds the xml serialised representation of this element to the stream
| phonetic_type xlnt::phonetic_pr::type | ( | ) | const |
returns the phonetic type
| void xlnt::phonetic_pr::type | ( | phonetic_type | type | ) |
sets the phonetic type
|
static |
string form of the type enum
|
static |
type enum from string
1.8.13