Initial commit of pristine erwise source
[erwise] / Xl / XlStyle.h
1 /*
2  * XlStyle.h --
3  *
4  * Author: Teemu Rantanen <tvr@cs.hut.fi>
5  * Copyright (c) 1992 Teemu Rantanen
6  *                    All rights reserved
7  *
8  * Created: Thu Mar  5 00:32:52 1992 tvr
9  * Last modified: Tue May 12 21:49:52 1992 tvr
10  *
11  */
12
13 /*
14  * Flags needed for text formatting are on XlFormatText.h
15  */
16
17 /*
18  * This structure contains *all* information needed to format text
19  */
20
21 typedef struct XlStyle {
22     /*
23      * Font structure
24      */
25     XFontStruct *fontinfo;
26
27     /*
28      * Name of the font used to display this style. When we setup resources,
29      * identify whether we should or should not free original string.
30      */
31     char *fontname;
32     int must_free_fontname;
33
34     /*
35      * Name of the font on configure -data
36      */
37
38     char *config_name;
39
40     /*
41      * Tags. This way no enumeration is needed
42      */
43     char *styletags;
44
45     /*
46      * Width of a character 'm'.
47      */
48     int char_width;
49
50     /*
51      * Stylespecific object positioning
52      */
53     int mode;
54
55     /*
56      * How much to indent first line of a paragraph
57      */
58     int indent1st;
59
60     /*
61      * left and righ limits
62      */
63     int left;
64     int right;
65
66     /*
67      * Spaces on linespaces, stylechanges and paragraphchanges
68      */
69     int space_line;
70     int space_paragraph;
71     int space_style_before;
72     int space_style;
73
74 } XlStyle_t;
75
76
77
78 extern XlStyle_t XlStyles[];
79 extern int xl_lineheightandgap();
80 extern int xl_wordgap();
81 extern int xl_object_style();
82
83
84
85 #define MIDDLE_L_HACK           25
86 #define MIDDLE_R_HACK           30