aboutsummaryrefslogtreecommitdiff
path: root/src/stylesheet.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-12-18 01:05:09 +0100
committerThomas White <taw@bitwiz.org.uk>2011-12-18 01:05:09 +0100
commit0f0b800481ee358cbe2bd5eb068b4ab58b327ab7 (patch)
tree46931121410acdfd1ac0ea333524e83300c3ca96 /src/stylesheet.c
parentb2811318f359d51cb892f53964dcb7ecbd71f0f5 (diff)
Auto-furniture: part 1
Diffstat (limited to 'src/stylesheet.c')
-rw-r--r--src/stylesheet.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/stylesheet.c b/src/stylesheet.c
index a597abd..296d562 100644
--- a/src/stylesheet.c
+++ b/src/stylesheet.c
@@ -419,6 +419,7 @@ struct style *new_style(StyleSheet *ss, const char *name)
if ( sty == NULL ) return NULL;
sty->name = strdup(name);
+ sty->role = S_ROLE_NONE;
n = ss->n_styles;
styles_new = realloc(ss->styles, (n+1)*sizeof(sty));
@@ -505,6 +506,7 @@ void default_stylesheet(StyleSheet *ss)
sty->valign = V_BOTTOM;
sty->offset_x = 0.0;
sty->offset_y = 0.0;
+ sty->role = S_ROLE_PDATE;
sty = new_style(ss, "Slide number");
sty->font = strdup("Sans 12");
@@ -518,6 +520,7 @@ void default_stylesheet(StyleSheet *ss)
sty->valign = V_BOTTOM;
sty->offset_x = 0.0;
sty->offset_y = 0.0;
+ sty->role = S_ROLE_SLIDENUMBER;
sty = new_style(ss, "Presentation title on slide");
sty->font = strdup("Sans 12");
@@ -531,6 +534,7 @@ void default_stylesheet(StyleSheet *ss)
sty->valign = V_BOTTOM;
sty->offset_x = 0.0;
sty->offset_y = 0.0;
+ sty->role = S_ROLE_PTITLE;
sty = new_style(ss, "Presentation title");
sty->font = strdup("Sans 50");
@@ -544,6 +548,7 @@ void default_stylesheet(StyleSheet *ss)
sty->valign = V_CENTER;
sty->offset_x = -200.0;
sty->offset_y = +300.0;
+ sty->role = S_ROLE_PTITLE_REF;
sty = new_style(ss, "Presentation author");
sty->font = strdup("Sans 30");
@@ -557,6 +562,7 @@ void default_stylesheet(StyleSheet *ss)
sty->valign = V_CENTER;
sty->offset_x = +200.0;
sty->offset_y = -300.0;
+ sty->role = S_ROLE_PAUTHOR_REF;
sty = new_style(ss, "Presentation date");
sty->font = strdup("Sans 30");
@@ -570,6 +576,7 @@ void default_stylesheet(StyleSheet *ss)
sty->valign = V_CENTER;
sty->offset_x = +200.0;
sty->offset_y = -300.0;
+ sty->role = S_ROLE_PDATE_REF;
ss->bgblocks = malloc(sizeof(struct bgblock));
ss->n_bgblocks = 1;
@@ -580,7 +587,6 @@ void default_stylesheet(StyleSheet *ss)
ss->bgblocks[0].max_y = 768.0;
ss->bgblocks[0].colour1 = strdup("#ffffffffffff");
ss->bgblocks[0].alpha1 = 1.0;
-
}