aboutsummaryrefslogtreecommitdiff
path: root/src/stylesheet.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-09-10 01:17:12 +0200
committerThomas White <taw@bitwiz.org.uk>2012-09-10 01:17:12 +0200
commitb254880cc2f1ebad293c9396e71e1158a5d86ee2 (patch)
tree2ecf17eee73625a376eb3479e7101d9d3aef99fa /src/stylesheet.h
parent750e7e89dd7b7fdf8a4b8543d6dd7b66fdc70942 (diff)
Slide template stuff
Diffstat (limited to 'src/stylesheet.h')
-rw-r--r--src/stylesheet.h24
1 files changed, 10 insertions, 14 deletions
diff --git a/src/stylesheet.h b/src/stylesheet.h
index 58f4c13..49e3b77 100644
--- a/src/stylesheet.h
+++ b/src/stylesheet.h
@@ -49,15 +49,9 @@ struct slide_template
{
char *name;
- struct frame_class **frame_classes;
- int n_frame_classes;
-};
-
-
-struct _stylesheet
-{
- struct style **styles;
- int n_styles;
+ /* References to the styles in the main list */
+ struct style **styles;
+ int n_styles;
};
@@ -70,16 +64,18 @@ extern void free_stylesheet(StyleSheet *ss);
extern void default_stylesheet(StyleSheet *ss);
extern struct style *new_style(StyleSheet *ss, const char *name);
-
-extern int save_stylesheet(StyleSheet *ss, const char *filename);
-
extern struct style *find_style(StyleSheet *ss, const char *name);
-extern enum justify str_to_halign(char *halign);
-extern enum vert_pos str_to_valign(char *valign);
+extern struct slide_template *new_template(StyleSheet *ss, const char *name);
+extern void add_to_template(struct slide_template *t, struct style *sty);
+extern int save_stylesheet(StyleSheet *ss, const char *filename);
extern StyleSheet *tree_to_stylesheet(struct ds_node *root);
extern void write_stylesheet(StyleSheet *ss, struct serializer *ser);
+typedef struct _styleiterator StyleIterator;
+
+extern struct style *style_first(StyleSheet *ss, StyleIterator **piter);
+extern struct style *style_next(StyleSheet *ss, StyleIterator *iter);
#endif /* STYLESHEET_H */