![]() |
LeechCraft Monocle
0.6.70-6645-gcd10d7e
Modular document viewer for LeechCraft
|
Base interface for links. More...
#include "ilink.h"
Public Member Functions | |
virtual | ~ILink () |
Virtual destructor. More... | |
virtual LinkType | GetLinkType () const =0 |
Returns the link type. More... | |
virtual QRectF | GetArea () const =0 |
Returns the area on the page of this link. More... | |
virtual void | Execute ()=0 |
Executes the link. More... | |
|
inlinevirtual |
|
pure virtual |
Executes the link.
This method is called to indicate that the user has chosen to execute the action related to the link.
|
pure virtual |
Returns the area on the page of this link.
The returned rectangle is in page's coordinates, that is, with width from 0 to page width and height from 0 to page height.
If the link doesn't belong to a page (i. e. is a TOC link) the return value isn't used and may be arbitrary.
|
pure virtual |
Returns the link type.