Poppler Qt5 24.12.0
|
#include <poppler-link.h>
Public Types | |
enum | RenditionAction { NoRendition , PlayRendition , StopRendition , PauseRendition , ResumeRendition } |
Public Types inherited from Poppler::Link | |
enum | LinkType { None , Goto , Execute , Browse , Action , Sound , Movie , Rendition , JavaScript , OCGState , Hide , ResetForm , SubmitForm } |
Public Member Functions | |
RenditionAction | action () const |
bool | isReferencedAnnotation (const ScreenAnnotation *annotation) const |
LinkRendition (const QRectF &linkArea, ::MediaRendition *rendition, int operation, const QString &script, const Ref &annotationReference) | |
LinkRendition (const QRectF &linkArea, std::unique_ptr<::MediaRendition > &&rendition, int operation, const QString &script, const Ref annotationReference) | |
LinkType | linkType () const override |
MediaRendition * | rendition () const |
QString | script () const |
~LinkRendition () override | |
Public Member Functions inherited from Poppler::Link | |
QRectF | linkArea () const |
QVector< Link * > | nextLinks () const |
virtual | ~Link () |
Rendition: Rendition link.
Describes the possible rendition actions.
Poppler::LinkRendition::LinkRendition | ( | const QRectF & | linkArea, |
::MediaRendition * | rendition, | ||
int | operation, | ||
const QString & | script, | ||
const Ref & | annotationReference | ||
) |
Create a new rendition link.
linkArea | the active area of the link |
rendition | the media rendition object. Ownership is taken |
operation | the numeric operation (action) ( |
script | the java script code |
annotationReference | the object reference of the screen annotation associated with this rendition action |
Poppler::LinkRendition::LinkRendition | ( | const QRectF & | linkArea, |
std::unique_ptr<::MediaRendition > && | rendition, | ||
int | operation, | ||
const QString & | script, | ||
const Ref | annotationReference | ||
) |
Create a new rendition link.
linkArea | the active area of the link |
rendition | the media rendition object. |
operation | the numeric operation (action) ( |
script | the java script code |
annotationReference | the object reference of the screen annotation associated with this rendition action |
RenditionAction Poppler::LinkRendition::action | ( | ) | const |
Returns the action that should be executed if a rendition object is provided.
bool Poppler::LinkRendition::isReferencedAnnotation | ( | const ScreenAnnotation * | annotation | ) | const |
Returns whether the given annotation
is the referenced screen annotation for this rendition link
.
|
overridevirtual |
The type of this link.
Reimplemented from Poppler::Link.
QString Poppler::LinkRendition::script | ( | ) | const |
The JS code that shall be executed or an empty string.