104 virtual QDateTime
GetDate ()
const = 0;
127 virtual QString
GetText ()
const = 0;
213 "org.LeechCraft.Monocle.IAnnotation/1.0")
214 Q_DECLARE_INTERFACE (
LC::Monocle::ITextAnnotation,
215 "org.LeechCraft.Monocle.ITextAnnotation/1.0")
216 Q_DECLARE_INTERFACE (
LC::Monocle::IHighlightAnnotation,
217 "org.LeechCraft.Monocle.IHighlightAnnotation/1.0")
218 Q_DECLARE_INTERFACE (
LC::Monocle::ILinkAnnotation,
219 "org.LeechCraft.Monocle.ILinkAnnotation/1.0")
220 Q_DECLARE_INTERFACE (
LC::Monocle::ICaretAnnotation,
221 "org.LeechCraft.Monocle.ICaretAnnotation/1.0")
A highlighted block in the text.
The interface for AnnotationType::Text annotations.
virtual AnnotationType GetAnnotationType() const =0
Returns the type of the annotation.
std::shared_ptr< ICaretAnnotation > ICaretAnnotation_ptr
std::shared_ptr< ILink > ILink_ptr
virtual QRectF GetBoundary() const =0
Returns the bounding rectangle of the annotation.
virtual QList< QPolygonF > GetPolygons() const =0
Returns the shape of the highlight.
virtual ~ICaretAnnotation()
virtual QString GetAuthor() const =0
Returns the author of the annotation.
virtual ~IHighlightAnnotation()
std::shared_ptr< IAnnotation > IAnnotation_ptr
std::shared_ptr< IHighlightAnnotation > IHighlightAnnotation_ptr
A caret pointing to some text inserted.
Base interface for annotations.
The interface for AnnotationType::Highlight annotations.
A simple text annotation.
std::shared_ptr< ILinkAnnotation > ILinkAnnotation_ptr
std::shared_ptr< ITextAnnotation > ITextAnnotation_ptr
virtual ~ITextAnnotation()
virtual ~ILinkAnnotation()
The interface for AnnotationType::Link annotations.
Another type of annotation.
An annotation with a link.
AnnotationType
Defines an annotation type.
virtual ILink_ptr GetLink() const =0
Returns the link corresponding to this annotation.
virtual bool IsInline() const =0
Returns whether this is an inline annotation.
virtual QDateTime GetDate() const =0
Returns the date the annotation was created.
The interface for AnnotationType::Caret annotations.
virtual QString GetText() const =0
Returns the text contained in the annotation.