 |
LeechCraft Monocle
0.6.70-13605-g8cd066ad6a
Modular document viewer for LeechCraft
|
Go to the documentation of this file.
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")
std::shared_ptr< ILinkAnnotation > ILinkAnnotation_ptr
std::shared_ptr< IHighlightAnnotation > IHighlightAnnotation_ptr
Base interface for annotations.
The interface for AnnotationType::Text annotations.
The interface for AnnotationType::Highlight annotations.
A caret pointing to some text inserted.
A simple text annotation.
virtual AnnotationType GetAnnotationType() const =0
Returns the type of the annotation.
A highlighted block in the text.
std::shared_ptr< ITextAnnotation > ITextAnnotation_ptr
The interface for AnnotationType::Link annotations.
virtual ~ICaretAnnotation()
std::shared_ptr< IAnnotation > IAnnotation_ptr
virtual QDateTime GetDate() const =0
Returns the date the annotation was created.
virtual QList< QPolygonF > GetPolygons() const =0
Returns the shape of the highlight.
AnnotationType
Defines an annotation type.
virtual ILink_ptr GetLink() const =0
Returns the link corresponding to this annotation.
virtual QString GetText() const =0
Returns the text contained in the annotation.
virtual QRectF GetBoundary() const =0
Returns the bounding rectangle of the annotation.
virtual QString GetAuthor() const =0
Returns the author of the annotation.
An annotation with a link.
virtual ~IHighlightAnnotation()
virtual bool IsInline() const =0
Returns whether this is an inline annotation.
std::shared_ptr< ICaretAnnotation > ICaretAnnotation_ptr
virtual ~ILinkAnnotation()
virtual ~ITextAnnotation()
Another type of annotation.
The interface for AnnotationType::Caret annotations.
std::shared_ptr< ILink > ILink_ptr