gnm-format.h 1.34 KB
Newer Older
1 2 3 4
#ifndef GNM_FORMAT_H
#define GNM_FORMAT_H

#include "gnumeric.h"
5
#include <goffice/utils/go-format.h>
Morten Welinder's avatar
Morten Welinder committed
6
#include <pango/pango.h>
7 8 9 10 11 12 13

char  *format_value	    (GOFormat const *format,
			     GnmValue const *value, GOColor *go_color,
			     double col_width, GODateConventions const *date_conv);
void   format_value_gstring (GString *result,
			     GOFormat const *format,
			     GnmValue const *value, GOColor *go_color,
Morten Welinder's avatar
Morten Welinder committed
14 15 16 17
			     double col_width,
			     GODateConventions const *date_conv);

void   gnm_format_layout    (PangoLayout *result,
18
			     GOFontMetrics *metrics,
Morten Welinder's avatar
Morten Welinder committed
19 20 21 22 23
			     GOFormat const *format,
			     GnmValue const *value, GOColor *go_color,
			     int col_width,
			     GODateConventions const *date_conv,
			     gboolean unicode_minus);
24

25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
/*
 * http://www.unicode.org/charts/PDF/U0080.pdf
 * http://www.unicode.org/charts/PDF/U2000.pdf
 * http://www.unicode.org/charts/PDF/U20A0.pdf
 * http://www.unicode.org/charts/PDF/U2200.pdf
 */
#define UNICODE_LOGICAL_NOT_C 0x00AC
#define UNICODE_ZERO_WIDTH_SPACE_C 0X200B
#define UNICODE_EURO_SIGN_C 0x20AC
#define UNICODE_MINUS_SIGN_C 0x2212
#define UNICODE_DIVISION_SLASH_C 0x2215
#define UNICODE_LOGICAL_AND_C 0x2227
#define UNICODE_LOGICAL_OR_C 0x2228
#define UNICODE_NOT_EQUAL_TO_C 0x2260
#define UNICODE_LESS_THAN_OR_EQUAL_TO_C 0x2264
#define UNICODE_GREATER_THAN_OR_EQUAL_TO_C 0x2265



44
#endif /* GNM_FORMAT_H */