Merge branch 'master' of https://git.maemo.org/projects/erwise
[erwise] / Xl / XlFormatText.h
1 /*
2  * XlFormatText.h --
3  *
4  * Author: Teemu Rantanen <tvr@cs.hut.fi>
5  * Copyright (c) 1992 Teemu Rantanen
6  *                    All rights reserved
7  *
8  * Created: Fri Mar  6 20:44:40 1992 tvr
9  * Last modified: Mon Mar  9 04:57:21 1992 tvr
10  *
11  */
12
13 /*
14  * Returncode of line checking
15  */
16 #define FORMAT_FULL_LINE                1
17 #define FORMAT_NEXT_OBJECT_TOO_LONG     2
18 #define FORMAT_REGION_ENDS              4
19 #define FORMAT_NEW_STYLE                8
20 #define FORMAT_ONLY_OBJECT_TOO_LONG     16
21
22 /*
23  * Indent defines
24  */
25 #define I_LEFT                          1
26 #define I_FIRST                         2
27 #define I_MIDDLE_L                      4
28 #define I_MIDDLE_R                      8
29 #define I_RIGHT                         16
30
31 /*
32  * Font style flags stored on XlStyle_t
33  */
34
35 /*
36  * Line styles
37  */
38 #define STYLE_LEFTIFY                           0
39 #define STYLE_RIGHTIFY                          1
40 #define STYLE_CENTER                            2
41 #define STYLE_JUSTIFY                           3
42
43 #define STYLE_MASK                              3
44
45 /*
46  * Do not format text
47  */
48 #define STYLE_RAW                               4
49
50 /*
51  * Generate region change on tabulator
52  */
53 #define STYLE_CHANGE_REGION_ON_TAB              8
54
55
56 /*
57  * How to set current margins
58  */
59
60 #define MARGIN_START_STYLE                      0
61 #define MARGIN_HANDLE_P_OBJECT                  1