Poppler::Link Class Reference

Encapsulates data that describes a link. More...

#include <poppler-link.h>

Inheritance diagram for Poppler::Link:
Inheritance graph
[legend]

List of all members.

Public Types

enum  LinkType {
  None, Goto, Execute, Browse,
  Action, Sound, Movie, JavaScript
}

Public Member Functions

QRectF linkArea () const
virtual LinkType linkType () const
virtual ~Link ()

Detailed Description

Encapsulates data that describes a link.

This is the base class for links. It makes mandatory for inherited kind of links to reimplement the linkType() method and return the type of the link described by the reimplemented class.


Member Enumeration Documentation

The possible kinds of link.

Inherited classes must return an unique identifier

Enumerator:
None 

Unknown link.

Goto 

A "Go To" link.

Execute 

A command to be executed.

Browse 

An URL to be browsed (eg "http://poppler.freedesktop.org").

Action 

A "standard" action to be executed in the viewer.

Sound 

A link representing a sound to be played.

Movie 

An action to be executed on a movie.

JavaScript 

A JavaScript code to be interpreted.

Since:
0.10

Member Function Documentation

QRectF Poppler::Link::linkArea (  )  const

The area of a Page where the link should be active.

Note:
this can be a null rect, in this case the link represents a general action. The area is given in 0..1 range

The documentation for this class was generated from the following file:

Generated on Sun Oct 18 01:52:19 2009 for Poppler Qt4 by  doxygen 1.6.1