1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
6 #include "libgnumeric.h"
7 #include <pango/pango-context.h>
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. */
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
29 GNM_VALIGN_BOTTOM
= 2,
30 GNM_VALIGN_CENTER
= 4,
31 GNM_VALIGN_JUSTIFY
= 8,
32 GNM_VALIGN_DISTRIBUTED
= 16
39 UNDERLINE_SINGLE_LOW
= 3,
40 UNDERLINE_DOUBLE_LOW
= 4
44 GNM_TEXT_DIR_RTL
= -1,
45 GNM_TEXT_DIR_CONTEXT
= 0,
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
,
60 PangoUnderline
gnm_translate_underline_to_pango (GnmUnderline ul
);
61 GnmUnderline
gnm_translate_underline_from_pango (PangoUnderline pul
);
65 #endif /* _GNM_STYLE_H_ */