aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/stylesheet.c
diff options
context:
space:
mode:
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;
+}