aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/scparse_priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'libstorycode/scparse_priv.h')
-rw-r--r--libstorycode/scparse_priv.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/libstorycode/scparse_priv.h b/libstorycode/scparse_priv.h
index 5812c94..0ddfe1c 100644
--- a/libstorycode/scparse_priv.h
+++ b/libstorycode/scparse_priv.h
@@ -27,6 +27,17 @@
#include "narrative.h"
#include "slide.h"
+enum style_mask
+{
+ STYMASK_GEOM = 1<<0,
+ STYMASK_FONT = 1<<1,
+ STYMASK_ALIGNMENT = 1<<2,
+ STYMASK_PADDING = 1<<3,
+ STYMASK_PARASPACE = 1<<4,
+ STYMASK_FGCOL = 1<<5,
+ STYMASK_BGCOL = 1<<6,
+};
+
struct scpctx
{
Presentation *p;
@@ -38,10 +49,17 @@ struct scpctx
int max_str;
char **str;
- /* Frame options */
+ /* Current style or frame options.
+ * These will be copied to a stylesheet entry or frame when the
+ * top-level rule is matched. */
+ enum style_mask mask;
struct frame_geom geom;
- int geom_set;
char *font;
+ enum alignment alignment;
+ struct length padding[4];
+ struct length paraspace[4];
+ double fgcol[4];
+ double bgcol[4];
};
#endif /* SCPARSE_PRIV_H */