aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/meta/object_setter.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdp/meta/object_setter.d')
-rw-r--r--src/sdp/meta/object_setter.d12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/sdp/meta/object_setter.d b/src/sdp/meta/object_setter.d
index 967f9ec..77e44e0 100644
--- a/src/sdp/meta/object_setter.d
+++ b/src/sdp/meta/object_setter.d
@@ -7,10 +7,13 @@ module sdp.meta.object_setter;
template ObjectSetter() {
/+ structs +/
struct DocObj_TypeInfo_ { // typeinfo
- string of_part = ""; // frontmatter, body, backmatter
- string of_section = ""; // toc, body, glossary, biography, book index, blurb
- string is_of = ""; // para, block ?
+ string is_of_part = ""; // frontmatter, body, backmatter
+ string is_of_section = ""; // toc, body, glossary, biography, book index, blurb
+ string is_of_type = ""; // para, block ?
string is_a = ""; // heading, para, table, code block, group, ...
+ alias of_part = is_of_part;
+ alias of_section = is_of_section;
+ alias is_of = is_of_type;
}
struct DocObj_TxtAttrib_ { // attrib
int indent_base = 0;
@@ -25,6 +28,7 @@ template ObjectSetter() {
bool contains_image_without_dimensions = false;
}
struct DocObj_Node_ { // node
+ enum ONtype { none, substantive, non_substantive, glossary, bibliography, book_index, blurb, comment }
string[string][string] node;
int ocn = 0;
string object_number() const @property {
@@ -32,7 +36,7 @@ template ObjectSetter() {
? ""
: ocn.to!string;
}
- string ocn_type = ""; // code duplicated typeinfo is_a
+ int o_n_type = 0;
string marked_up_level = "9";
int heading_lev_markup = 9;
int heading_lev_collapsed = 9;