aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/narrative.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2019-09-14 23:45:38 +0200
committerThomas White <taw@bitwiz.me.uk>2019-09-14 23:45:38 +0200
commitc6abe4626c40d4925d6233cf0ca1c30cd49a22cd (patch)
tree4c2b419987f909695993c9b2b51a335fa1b67111 /libstorycode/narrative.h
parentbef894ac4fc76a7c163fba44a8127162a6c40d2b (diff)
Handle *bold* in parser, rather than as a separate stage
Diffstat (limited to 'libstorycode/narrative.h')
-rw-r--r--libstorycode/narrative.h22
1 files changed, 19 insertions, 3 deletions
diff --git a/libstorycode/narrative.h b/libstorycode/narrative.h
index 3e21ca1..a51136b 100644
--- a/libstorycode/narrative.h
+++ b/libstorycode/narrative.h
@@ -31,11 +31,20 @@
typedef struct _narrative Narrative;
+enum narrative_run_type
+{
+ NARRATIVE_RUN_NORMAL,
+ NARRATIVE_RUN_BOLD,
+ NARRATIVE_RUN_ITALIC,
+ NARRATIVE_RUN_UNDERLINE,
+};
+
#include "slide.h"
#include "imagestore.h"
extern Narrative *narrative_new(void);
extern void narrative_free(Narrative *n);
+extern void narrative_add_empty_item(Narrative *n);
extern void narrative_add_stylesheet(Narrative *n, Stylesheet *ss);
extern Stylesheet *narrative_get_stylesheet(Narrative *n);
@@ -51,9 +60,15 @@ extern int narrative_get_unsaved(Narrative *n);
extern int narrative_item_is_text(Narrative *n, int item);
-extern void narrative_add_prestitle(Narrative *n, char *text);
-extern void narrative_add_bp(Narrative *n, char *text);
-extern void narrative_add_text(Narrative *n, char *text);
+extern void narrative_add_text(Narrative *n, char **texts,
+ enum narrative_run_type *types, int n_runs);
+
+extern void narrative_add_bp(Narrative *n, char **texts,
+ enum narrative_run_type *types, int n_runs);
+
+extern void narrative_add_prestitle(Narrative *n, char **texts,
+ enum narrative_run_type *types, int n_runs);
+
extern void narrative_add_slide(Narrative *n, Slide *slide);
extern void narrative_add_eop(Narrative *n);
extern void narrative_insert_slide(Narrative *n, Slide *slide, int pos);
@@ -68,5 +83,6 @@ extern Slide *narrative_get_slide_by_number(Narrative *n, int pos);
extern int narrative_get_slide_number_for_para(Narrative *n, int para);
extern int narrative_get_slide_number_for_slide(Narrative *n, Slide *s);
+extern void narrative_debug(Narrative *n);
#endif /* NARRATIVE_H */