Commit 6ef7285c authored by Arturo Espinosa's avatar Arturo Espinosa

More groundwork -mig

parent 1c996033
#ifndef GNUMERIC_CELL_H
#define GNUMERIC_CELL_H
typedef struct {
int column;
int row;
Value value;
Style style;
/* Rendered versions of the cell */
char *text; /* Text displayed */
int width; /* Width of text */
int height; /* Height of text */
} Cell;
#endif /* GNUMERIC_CELL_H */
enum style_type_enum {
STYLE_FONT,
STYLE_TEXT_SIZE,
STYLE_BACKGROUND_COLOR,
STYLE_FOREGROUND_COLOR,
};
#ifndef GNUMERIC_STYLE_H
#define GNUMERIC_STYLE_H
typedef struct {
enum style_type_enum style_type;
int serial_number;
int ref_count;
} Style;
int ref_count;
char *format;
} StyleFormat;
typedef struct {
Style style;
char *font_name;
int ref_count;
char *font_name;
GdkFont *font;
} StyleFont;
typedef enum {
BORDER_NONE,
BORDER_SOLID
} StyleBorderType;
typedef struct {
Style style;
int size;
} StyleSize;
int ref_count;
/*
* if the value is BorderNone, then the respective
* color is not allocated, otherwise, it has a
* valid color
*/
unsigned int left:4;
unsigned int right:4;
unsigned int top:4;
unsigned int bottom:4;
GdkColor left_color;
GdkColor right_color;
GdkColor top_color;
GdkColor bottom_color;
} StyleBorder;
typedef struct {
int ref_count;
int pattern;
} StyleShade;
/* Alignment definitions */
typedef enum {
HALIGN_GENERAL = 1,
HALIGN_LEFT = 2,
HALIGN_RIGHT = 4,
HALIGN_CENTER = 8
HALIGN_FILL = 0x10,
HALIGN_JUSTIFY = 0x20
} StyleHAlignFlags;
tyepdef struct {
typedef enum {
VALIGN_TOP = 1,
VALIGN_BOTTOM = 2,
VALIGN_CENTER = 4,
VALIGN_JUSTIFY = 8
} StyleVAlignFlags;
typedef enum {
ORIENT_HORIZ = 1,
ORIENT_VERT_HORIZ_TEXT = 2,
ORIENT_VERT_VERT_TEXT = 4,
ORIENT_VERT_VERT_TEXT2 = 8
} StyleOrientation;
typedef struct {
StyleFormat *format;
StyleFont *font;
StyleBorder *border;
StyleShade *shading;
unsigned int halign:6;
unsigned int valign:4;
unsigned int orientation:4;
} Style;
typedef struct {
int row;
int height;
Style style;
char *format_string;
} StyleFormat;
} RowStyle;
typedef struct {
Style style;
char *color_name; /* external representation */
GdkColor color;
} StyleColor;
int col;
int width;
Style style;
} ColStyle;
typedef StyleColor StyleBackground;
typedef StyleColor StyleForeground;
typedef struct {
int sheet;
Style style;
} SheetStyle;
typedef struct {
Style style;
} WorkbookStyle;
#endif /* GNUMERIC_STYLE_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment