aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/stylesheet.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2019-04-27 17:47:11 +0200
committerThomas White <taw@bitwiz.me.uk>2019-04-27 18:19:32 +0200
commit62f12af48623c9f94c4508b1438bacdb65cdac12 (patch)
tree0ce658a467edb5d22da9ef990384074e10ef2d05 /libstorycode/stylesheet.c
parentc9155a34b2e233cff07afb7638a591577b7a767d (diff)
Implement selection of style in editor
Diffstat (limited to 'libstorycode/stylesheet.c')
-rw-r--r--libstorycode/stylesheet.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libstorycode/stylesheet.c b/libstorycode/stylesheet.c
index f625b19..77e37e1 100644
--- a/libstorycode/stylesheet.c
+++ b/libstorycode/stylesheet.c
@@ -560,3 +560,15 @@ const char *stylesheet_get_substyle_name(Stylesheet *s, const char *stn, int i)
if ( i >= sty->n_substyles ) return NULL;
return sty->substyles[i].name;
}
+
+
+const char *stylesheet_get_friendly_name(const char *in)
+{
+ if ( strcmp(in, "SLIDE") == 0 ) return "Slide";
+ if ( strcmp(in, "NARRATIVE") == 0 ) return "Narrative";
+ if ( strcmp(in, "BP") == 0 ) return "Bullet point";
+ if ( strcmp(in, "SLIDETITLE") == 0 ) return "Slide title";
+ if ( strcmp(in, "PRESTITLE") == 0 ) return "Presentation title";
+ if ( strcmp(in, "TEXT") == 0 ) return "Text frame";
+ return in;
+}