|
|
|
@ -27,6 +27,7 @@ class Annotation; |
|
|
|
class AnnotationObjectRect; |
|
|
|
class AnnotationObjectRect; |
|
|
|
class AnnotationPrivate; |
|
|
|
class AnnotationPrivate; |
|
|
|
class Document; |
|
|
|
class Document; |
|
|
|
|
|
|
|
class EmbeddedFile; |
|
|
|
class Page; |
|
|
|
class Page; |
|
|
|
class PagePrivate; |
|
|
|
class PagePrivate; |
|
|
|
class TextAnnotationPrivate; |
|
|
|
class TextAnnotationPrivate; |
|
|
|
@ -36,6 +37,7 @@ class HighlightAnnotationPrivate; |
|
|
|
class StampAnnotationPrivate; |
|
|
|
class StampAnnotationPrivate; |
|
|
|
class InkAnnotationPrivate; |
|
|
|
class InkAnnotationPrivate; |
|
|
|
class CaretAnnotationPrivate; |
|
|
|
class CaretAnnotationPrivate; |
|
|
|
|
|
|
|
class FileAttachmentAnnotationPrivate; |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @short Helper class for (recursive) annotation retrieval/storage. |
|
|
|
* @short Helper class for (recursive) annotation retrieval/storage. |
|
|
|
@ -103,6 +105,7 @@ class OKULAR_EXPORT Annotation |
|
|
|
AStamp = 5, ///< A stamp annotation
|
|
|
|
AStamp = 5, ///< A stamp annotation
|
|
|
|
AInk = 6, ///< An ink annotation
|
|
|
|
AInk = 6, ///< An ink annotation
|
|
|
|
ACaret = 8, ///< A caret annotation
|
|
|
|
ACaret = 8, ///< A caret annotation
|
|
|
|
|
|
|
|
AFileAttachment = 9, ///< A file attachment annotation
|
|
|
|
A_BASE = 0 ///< The annotation base class
|
|
|
|
A_BASE = 0 ///< The annotation base class
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -1286,6 +1289,41 @@ class OKULAR_EXPORT CaretAnnotation : public Annotation |
|
|
|
Q_DISABLE_COPY( CaretAnnotation ) |
|
|
|
Q_DISABLE_COPY( CaretAnnotation ) |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class OKULAR_EXPORT FileAttachmentAnnotation : public Annotation |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
public: |
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Creates a new file attachment annotation. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
FileAttachmentAnnotation(); |
|
|
|
|
|
|
|
explicit FileAttachmentAnnotation( const QDomNode &node ); |
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Destroys the file attachment annotation. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
virtual ~FileAttachmentAnnotation(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QString fileIconName() const; |
|
|
|
|
|
|
|
void setFileIconName( const QString &icon ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EmbeddedFile* embeddedFile() const; |
|
|
|
|
|
|
|
void setEmbeddedFile( EmbeddedFile *ef ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Returns the sub type of the caret annotation. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
SubType subType() const; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Stores the caret annotation as xml in @p document |
|
|
|
|
|
|
|
* under the given parent @p node. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
void store( QDomNode &node, QDomDocument &document ) const; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
|
|
|
Q_DECLARE_PRIVATE( FileAttachmentAnnotation ) |
|
|
|
|
|
|
|
Q_DISABLE_COPY( FileAttachmentAnnotation ) |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|