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