Introspection non-fixes.
[gnumeric.git] / src / style.h
blob0bbc571e851adb3acdaadc1da3da681895059a02
1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 #ifndef _GNM_STYLE_H_
3 # define _GNM_STYLE_H_
5 #include "gnumeric.h"
6 #include "libgnumeric.h"
7 #include <pango/pango-context.h>
9 G_BEGIN_DECLS
11 #define DEFAULT_FONT "Sans"
12 #define DEFAULT_SIZE 10.0
14 /* Alignment definitions */
15 /* Do not change these flags they are used as keys in the 1.0.x xml format. */
16 typedef enum {
17 GNM_HALIGN_GENERAL = 0x01,
18 GNM_HALIGN_LEFT = 0x02,
19 GNM_HALIGN_RIGHT = 0x04,
20 GNM_HALIGN_CENTER = 0x08,
21 GNM_HALIGN_FILL = 0x10,
22 GNM_HALIGN_JUSTIFY = 0x20,
23 GNM_HALIGN_CENTER_ACROSS_SELECTION = 0x40,
24 GNM_HALIGN_DISTRIBUTED = 0x80
25 } GnmHAlign;
27 typedef enum {
28 GNM_VALIGN_TOP = 1,
29 GNM_VALIGN_BOTTOM = 2,
30 GNM_VALIGN_CENTER = 4,
31 GNM_VALIGN_JUSTIFY = 8,
32 GNM_VALIGN_DISTRIBUTED = 16
33 } GnmVAlign;
35 typedef enum {
36 UNDERLINE_NONE = 0,
37 UNDERLINE_SINGLE = 1,
38 UNDERLINE_DOUBLE = 2,
39 UNDERLINE_SINGLE_LOW = 3,
40 UNDERLINE_DOUBLE_LOW = 4
41 } GnmUnderline;
43 typedef enum {
44 GNM_TEXT_DIR_RTL = -1,
45 GNM_TEXT_DIR_CONTEXT = 0,
46 GNM_TEXT_DIR_LTR = 1
47 } GnmTextDir;
49 #include "mstyle.h"
51 GType gnm_align_h_get_type (void);
52 #define GNM_ALIGN_H_TYPE (gnm_align_h_get_type ())
54 GType gnm_align_v_get_type (void);
55 #define GNM_ALIGN_V_TYPE (gnm_align_v_get_type ())
57 GnmSpanCalcFlags gnm_style_required_spanflags (GnmStyle const *style);
58 GnmHAlign gnm_style_default_halign (GnmStyle const *style,
59 GnmCell const *c);
60 PangoUnderline gnm_translate_underline_to_pango (GnmUnderline ul);
61 GnmUnderline gnm_translate_underline_from_pango (PangoUnderline pul);
63 G_END_DECLS
65 #endif /* _GNM_STYLE_H_ */