1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 #ifndef _GNM_SHEET_OBJECT_CELL_COMMENT_H_
3 # define _GNM_SHEET_OBJECT_CELL_COMMENT_H_
5 #include "sheet-object.h"
9 #define GNM_CELL_COMMENT_TYPE (cell_comment_get_type ())
10 #define GNM_CELL_COMMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNM_CELL_COMMENT_TYPE, GnmComment))
11 #define GNM_IS_CELL_COMMENT(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), GNM_CELL_COMMENT_TYPE))
13 GType
cell_comment_get_type (void);
15 char const *cell_comment_author_get (GnmComment
const *cc
);
16 void cell_comment_author_set (GnmComment
*cc
, char const *author
);
17 char const *cell_comment_text_get (GnmComment
const *cc
);
18 void cell_comment_text_set (GnmComment
*cc
, char const *text
);
20 /* convenience routine */
21 void cell_comment_set_pos (GnmComment
*cc
, GnmCellPos
const *pos
);
22 GnmComment
*cell_set_comment (Sheet
*sheet
, GnmCellPos
const *pos
,
23 char const *author
, char const *text
,
24 PangoAttrList
* markup
);
28 #endif /* _GNM_SHEET_OBJECT_CELL_COMMENT_H_ */