From b82f2beadfbd4deb1bd89566a8115c26e82cd0f9 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 6 Apr 2019 22:46:30 +0200 Subject: Save slides --- libstorycode/stylesheet.c | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) (limited to 'libstorycode/stylesheet.c') diff --git a/libstorycode/stylesheet.c b/libstorycode/stylesheet.c index 3fdb7af..e3aecee 100644 --- a/libstorycode/stylesheet.c +++ b/libstorycode/stylesheet.c @@ -31,6 +31,7 @@ #include #include "stylesheet.h" +#include "storycode.h" enum style_mask { @@ -423,32 +424,6 @@ static void add_text(char **text, size_t *len, size_t *lenmax, const char *prefi } -static char unitc(enum length_unit unit) -{ - if ( unit == LENGTH_FRAC ) return 'f'; - if ( unit == LENGTH_UNIT ) return 'u'; - return '?'; -} - - -static const char *bgcolc(enum gradient bggrad) -{ - if ( bggrad == GRAD_NONE ) return ""; - if ( bggrad == GRAD_HORIZ ) return "HORIZONTAL "; - if ( bggrad == GRAD_VERT ) return "VERTICAL "; - return "?"; -} - - -static const char *alignc(enum alignment ali) -{ - if ( ali == ALIGN_LEFT ) return "left"; - if ( ali == ALIGN_CENTER ) return "center"; - if ( ali == ALIGN_RIGHT ) return "right"; - return "?"; -} - - static void add_style(char **text, size_t *len, size_t *lenmax, const char *prefix, struct style *sty) { -- cgit v1.2.3