Commit 81c268b8 authored by Philipp Reinkemeier's avatar Philipp Reinkemeier Committed by Carlos Garcia Campos

libdocument: adding annotation squiggly.

This adds the type to libdocument, as well as a method
to create such annotations.
parent 230bcca4
......@@ -1471,6 +1471,16 @@ ev_annotation_text_markup_underline_new (EvPage *page)
return annot;
}
EvAnnotation *
ev_annotation_text_markup_squiggly_new (EvPage *page)
{
EvAnnotation *annot = EV_ANNOTATION (g_object_new (EV_TYPE_ANNOTATION_TEXT_MARKUP,
"page", page,
"type", EV_ANNOTATION_TEXT_MARKUP_SQUIGGLY,
NULL));
return annot;
}
EvAnnotationTextMarkupType
ev_annotation_text_markup_get_markup_type (EvAnnotationTextMarkup *annot)
{
......
......@@ -112,7 +112,8 @@ typedef enum {
typedef enum {
EV_ANNOTATION_TEXT_MARKUP_HIGHLIGHT,
EV_ANNOTATION_TEXT_MARKUP_STRIKE_OUT,
EV_ANNOTATION_TEXT_MARKUP_UNDERLINE
EV_ANNOTATION_TEXT_MARKUP_UNDERLINE,
EV_ANNOTATION_TEXT_MARKUP_SQUIGGLY
} EvAnnotationTextMarkupType;
/* EvAnnotation */
......@@ -191,6 +192,7 @@ GType ev_annotation_text_markup_get_type (void) G_GN
EvAnnotation *ev_annotation_text_markup_highlight_new (EvPage *page);
EvAnnotation *ev_annotation_text_markup_strike_out_new (EvPage *page);
EvAnnotation *ev_annotation_text_markup_underline_new (EvPage *page);
EvAnnotation *ev_annotation_text_markup_squiggly_new (EvPage *page);
EvAnnotationTextMarkupType ev_annotation_text_markup_get_markup_type (EvAnnotationTextMarkup *annot);
gboolean ev_annotation_text_markup_set_markup_type (EvAnnotationTextMarkup *annot,
EvAnnotationTextMarkupType markup_type);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment