1 #ifndef _GNM_STYLE_CONDITIONS_H_
2 # define _GNM_STYLE_CONDITIONS_H_
9 /* This is persisted directly in .gnumeric files, DO NOT REMOVE OR REORDER */
12 GNM_STYLE_COND_BETWEEN
,
13 GNM_STYLE_COND_NOT_BETWEEN
,
15 GNM_STYLE_COND_NOT_EQUAL
,
21 /* Arbitrary expr evaluated at EvalPos */
22 GNM_STYLE_COND_CUSTOM
,
24 /* New in Gnumeric 1.8 */
25 GNM_STYLE_COND_CONTAINS_STR
= 0x10,
26 GNM_STYLE_COND_NOT_CONTAINS_STR
,
27 GNM_STYLE_COND_BEGINS_WITH_STR
,
28 GNM_STYLE_COND_NOT_BEGINS_WITH_STR
,
29 GNM_STYLE_COND_ENDS_WITH_STR
,
30 GNM_STYLE_COND_NOT_ENDS_WITH_STR
,
32 GNM_STYLE_COND_CONTAINS_ERR
,
33 GNM_STYLE_COND_NOT_CONTAINS_ERR
,
35 GNM_STYLE_COND_CONTAINS_BLANKS
,
36 GNM_STYLE_COND_NOT_CONTAINS_BLANKS
45 GType
gnm_style_cond_get_type (void);
46 GnmStyleCond
*gnm_style_cond_new (GnmStyleCondOp op
, Sheet
*sheet
);
47 void gnm_style_cond_free (GnmStyleCond
*cond
);
48 GnmStyleCond
*gnm_style_cond_dup (GnmStyleCond
const *src
);
49 gboolean
gnm_style_cond_is_valid (GnmStyleCond
const *cond
);
51 void gnm_style_cond_set_overlay (GnmStyleCond
*cond
,
54 GnmExprTop
const *gnm_style_cond_get_expr (GnmStyleCond
const *cond
,
56 void gnm_style_cond_set_expr (GnmStyleCond
*cond
,
57 GnmExprTop
const *texpr
,
60 GnmExprTop
const *gnm_style_cond_get_alternate_expr (GnmStyleCond
const *cond
);
61 void gnm_style_cond_canonicalize (GnmStyleCond
*cond
);
63 Sheet
*gnm_style_cond_get_sheet (GnmStyleCond
const *cond
);
64 void gnm_style_cond_set_sheet (GnmStyleCond
*cond
, Sheet
*sheet
);
66 GType
gnm_style_conditions_get_type (void);
67 GnmStyleConditions
*gnm_style_conditions_new (Sheet
*sheet
);
68 GnmStyleConditions
*gnm_style_conditions_dup (GnmStyleConditions
const *sc
);
69 GPtrArray
const *gnm_style_conditions_details (GnmStyleConditions
const *sc
);
70 void gnm_style_conditions_insert (GnmStyleConditions
*sc
,
71 GnmStyleCond
const *cond
,
73 void gnm_style_conditions_delete (GnmStyleConditions
*sc
,
75 GPtrArray
*gnm_style_conditions_overlay (GnmStyleConditions
const *sc
,
76 GnmStyle
const *base
);
77 int gnm_style_conditions_eval (GnmStyleConditions
const *sc
,
78 GnmEvalPos
const *pos
);
80 Sheet
*gnm_style_conditions_get_sheet (GnmStyleConditions
const *sc
);
81 void gnm_style_conditions_set_sheet (GnmStyleConditions
*sc
,
84 guint32
gnm_style_conditions_hash (GnmStyleConditions
const *sc
);
86 gboolean
gnm_style_conditions_equal (GnmStyleConditions
const *sca
,
87 GnmStyleConditions
const *scb
,
88 gboolean relax_sheet
);
92 #endif /* _GNM_STYLE_CONDITIONS_H_ */