summaryrefslogtreecommitdiff
path: root/libdocument
diff options
context:
space:
mode:
Diffstat (limited to 'libdocument')
-rw-r--r--libdocument/ev-annotation.c17
-rw-r--r--libdocument/ev-annotation.h9
2 files changed, 23 insertions, 3 deletions
diff --git a/libdocument/ev-annotation.c b/libdocument/ev-annotation.c
index d0e03ebb..1cb13010 100644
--- a/libdocument/ev-annotation.c
+++ b/libdocument/ev-annotation.c
@@ -1324,3 +1324,20 @@ ev_annotation_text_markup_highlight_new (EvPage *page)
"type", EV_ANNOTATION_TEXT_MARKUP_HIGHLIGHT,
NULL));
}
+
+EvAnnotation *
+ev_annotation_text_markup_strike_out_new (EvPage *page)
+{
+ return EV_ANNOTATION (g_object_new (EV_TYPE_ANNOTATION_TEXT_MARKUP,
+ "page", page,
+ "type", EV_ANNOTATION_TEXT_MARKUP_STRIKE_OUT,
+ NULL));
+}
+
+EvAnnotationTextMarkupType
+ev_annotation_text_markup_get_markup_type (EvAnnotationTextMarkup *annot)
+{
+ g_return_val_if_fail (EV_IS_ANNOTATION_TEXT_MARKUP (annot), 0);
+
+ return annot->type;
+}
diff --git a/libdocument/ev-annotation.h b/libdocument/ev-annotation.h
index d1c85cb5..e608ed37 100644
--- a/libdocument/ev-annotation.h
+++ b/libdocument/ev-annotation.h
@@ -111,7 +111,8 @@ typedef enum {
} EvAnnotationTextIcon;
typedef enum {
- EV_ANNOTATION_TEXT_MARKUP_HIGHLIGHT
+ EV_ANNOTATION_TEXT_MARKUP_HIGHLIGHT,
+ EV_ANNOTATION_TEXT_MARKUP_STRIKE_OUT
} EvAnnotationTextMarkupType;
/* EvAnnotation */
@@ -181,8 +182,10 @@ gboolean ev_annotation_attachment_set_attachment (EvAnnotationAttach
EvAttachment *attachment);
/* EvAnnotationTextMarkup */
-GType ev_annotation_text_markup_get_type (void) G_GNUC_CONST;
-EvAnnotation *ev_annotation_text_markup_highlight_new (EvPage *page);
+GType ev_annotation_text_markup_get_type (void) G_GNUC_CONST;
+EvAnnotation *ev_annotation_text_markup_highlight_new (EvPage *page);
+EvAnnotation *ev_annotation_text_markup_strike_out_new (EvPage *page);
+EvAnnotationTextMarkupType ev_annotation_text_markup_get_markup_type (EvAnnotationTextMarkup *annot);
G_END_DECLS