87
96
// enum definitions
88
97
// WARNING!!! oKular uses that very same values so if you change them notify the author!
89
98
enum SubType { AText = 1, ALine = 2, AGeom = 3, AHighlight = 4, AStamp = 5,
90
AInk = 6, ALink = 7, A_BASE = 0 };
99
AInk = 6, ALink = 7, ACaret = 8, AFileAttachment = 9, ASound = 10,
100
AMovie = 11, A_BASE = 0 };
91
101
enum Flag { Hidden = 1, FixedSize = 2, FixedRotation = 4, DenyPrint = 8,
92
102
DenyWrite = 16, DenyDelete = 32, ToggleHidingOnMouse = 64, External = 128 };
93
103
enum LineStyle { Solid = 1, Dashed = 2, Beveled = 4, Inset = 8, Underline = 16 };
95
105
enum RevScope { Reply = 1, Group = 2, Delete = 4 };
96
106
enum RevType { None = 1, Marked = 2, Unmarked = 4, Accepted = 8, Rejected = 16, Cancelled = 32, Completed = 64 };
109
* Returns the author of the annotation.
98
111
QString author() const;
113
* Sets a new author for the annotation.
99
115
void setAuthor( const QString &author );
101
117
QString contents() const;
102
118
void setContents( const QString &contents );
121
* Returns the unique name (ID) of the annotation.
104
123
QString uniqueName() const;
125
* Sets a new unique name for the annotation.
127
* \note no check of the new uniqueName is done
105
129
void setUniqueName( const QString &uniqueName );
107
131
QDateTime modificationDate() const;
499
530
Q_DISABLE_COPY( LinkAnnotation )
534
* \short Caret annotation.
536
* The caret annotation represents a symbol to indicate the presence of text.
538
class POPPLER_QT4_EXPORT CaretAnnotation : public Annotation
542
CaretAnnotation( const QDomNode &node );
543
virtual ~CaretAnnotation();
544
virtual void store( QDomNode &parentNode, QDomDocument &document ) const;
545
virtual SubType subType() const;
548
* The symbols for the caret annotation.
550
enum CaretSymbol { None, P };
552
CaretSymbol caretSymbol() const;
553
void setCaretSymbol( CaretSymbol symbol );
556
Q_DECLARE_PRIVATE( CaretAnnotation )
557
Q_DISABLE_COPY( CaretAnnotation )
561
* \short File attachment annotation.
563
* The file attachment annotation represents a file embedded in the document.
567
class POPPLER_QT4_EXPORT FileAttachmentAnnotation : public Annotation
570
FileAttachmentAnnotation();
571
FileAttachmentAnnotation( const QDomNode &node );
572
virtual ~FileAttachmentAnnotation();
573
virtual void store( QDomNode &parentNode, QDomDocument &document ) const;
574
virtual SubType subType() const;
577
* Returns the name of the icon of this annotation.
579
QString fileIconName() const;
581
* Sets a new name for the icon of this annotation.
583
void setFileIconName( const QString &icon );
586
* Returns the EmbeddedFile of this annotation.
588
EmbeddedFile* embeddedFile() const;
590
* Sets a new EmbeddedFile for this annotation.
592
* \note FileAttachmentAnnotation takes ownership of the object
594
void setEmbeddedFile( EmbeddedFile *ef );
597
Q_DECLARE_PRIVATE( FileAttachmentAnnotation )
598
Q_DISABLE_COPY( FileAttachmentAnnotation )
602
* \short Sound annotation.
604
* The sound annotation represents a sound to be played when activated.
608
class POPPLER_QT4_EXPORT SoundAnnotation : public Annotation
612
SoundAnnotation( const QDomNode &node );
613
virtual ~SoundAnnotation();
614
virtual void store( QDomNode &parentNode, QDomDocument &document ) const;
615
virtual SubType subType() const;
618
* Returns the name of the icon of this annotation.
620
QString soundIconName() const;
622
* Sets a new name for the icon of this annotation.
624
void setSoundIconName( const QString &icon );
627
* Returns the SoundObject of this annotation.
629
SoundObject* sound() const;
631
* Sets a new SoundObject for this annotation.
633
* \note SoundAnnotation takes ownership of the object
635
void setSound( SoundObject *ef );
638
Q_DECLARE_PRIVATE( SoundAnnotation )
639
Q_DISABLE_COPY( SoundAnnotation )
643
* \short Movie annotation.
645
* The movie annotation represents a movie to be played when activated.
649
class POPPLER_QT4_EXPORT MovieAnnotation : public Annotation
653
MovieAnnotation( const QDomNode &node );
654
virtual ~MovieAnnotation();
655
virtual void store( QDomNode &parentNode, QDomDocument &document ) const;
656
virtual SubType subType() const;
659
* Returns the MovieObject of this annotation.
661
MovieObject* movie() const;
663
* Sets a new MovieObject for this annotation.
665
* \note MovieAnnotation takes ownership of the object
667
void setMovie( MovieObject *movie );
670
* Returns the title of the movie of this annotation.
672
QString movieTitle() const;
674
* Sets a new title for the movie of this annotation.
676
void setMovieTitle( const QString &title );
679
Q_DECLARE_PRIVATE( MovieAnnotation )
680
Q_DISABLE_COPY( MovieAnnotation )