6 #include <glib-object.h>
10 #define GNM_HLINK_TYPE (gnm_hlink_get_type ())
11 #define GNM_HLINK(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNM_HLINK_TYPE, GnmHLink))
12 #define GNM_IS_HLINK(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNM_HLINK_TYPE))
14 #define GNM_HLINK_URL_TYPE (gnm_hlink_url_get_type ())
15 #define GNM_HLINK_URL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNM_HLINK_URL_TYPE, GnmHLinkURL))
16 #define GNM_IS_HLINK_URL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNM_HLINK_URL_TYPE))
18 GnmHLink
*gnm_sheet_hlink_find (Sheet
const *sheet
, GnmCellPos
const *pos
);
20 GType
gnm_hlink_get_type (void);
22 GnmHLink
*gnm_hlink_new (GType typ
, Sheet
*sheet
);
23 GnmHLink
*gnm_hlink_dup (GnmHLink
*lnk
);
25 gboolean
gnm_hlink_equal (GnmHLink
const *a
, GnmHLink
const *b
, gboolean relax_sheet
);
27 gboolean
gnm_hlink_activate (GnmHLink
*lnk
, WBCGtk
*wbcg
);
29 const char *gnm_hlink_get_target (GnmHLink
const *lnk
);
30 void gnm_hlink_set_target (GnmHLink
*lnk
, gchar
const *url
);
32 const char *gnm_hlink_get_tip (GnmHLink
const *lnk
);
33 void gnm_hlink_set_tip (GnmHLink
*lnk
, gchar
const *tip
);
35 Sheet
*gnm_hlink_get_sheet (GnmHLink
*lnk
);
36 void gnm_hlink_set_sheet (GnmHLink
*lnk
, Sheet
*sheet
);
38 GType
gnm_hlink_cur_wb_get_type (void);
39 GType
gnm_hlink_url_get_type (void);
40 GType
gnm_hlink_email_get_type (void);
41 GType
gnm_hlink_external_get_type (void);
43 // For internal links only
44 gboolean
gnm_hlink_get_range_target (GnmHLink
const *lnk
, GnmSheetRange
*sr
);
45 GnmExprTop
const *gnm_hlink_get_target_expr (GnmHLink
const *lnk
);
48 void _gnm_hlink_init (void);
52 #endif /* _GNM_HLINK_H_ */