1 #ifndef _GNM_SHEET_OBJECT_CELL_COMMENT_H_
2 # define _GNM_SHEET_OBJECT_CELL_COMMENT_H_
3 
4 #include <sheet-object.h>
5 
6 G_BEGIN_DECLS
7 
8 #define GNM_CELL_COMMENT_TYPE     (cell_comment_get_type ())
9 #define GNM_CELL_COMMENT(obj)     (G_TYPE_CHECK_INSTANCE_CAST((obj), GNM_CELL_COMMENT_TYPE, GnmComment))
10 #define GNM_IS_CELL_COMMENT(o)    (G_TYPE_CHECK_INSTANCE_TYPE((o), GNM_CELL_COMMENT_TYPE))
11 
12 GType	     cell_comment_get_type (void);
13 
14 char const  *cell_comment_author_get (GnmComment const *cc);
15 void         cell_comment_author_set (GnmComment       *cc, char const *author);
16 char const  *cell_comment_text_get   (GnmComment const *cc);
17 void         cell_comment_text_set   (GnmComment       *cc, char const *text);
18 
19 /* convenience routine */
20 void	     cell_comment_set_pos   (GnmComment *cc, GnmCellPos const *pos);
21 GnmComment  *cell_set_comment	    (Sheet *sheet, GnmCellPos const *pos,
22 				     char const *author, char const *text,
23 				     PangoAttrList * markup);
24 
25 G_END_DECLS
26 
27 #endif /* _GNM_SHEET_OBJECT_CELL_COMMENT_H_ */
28