![]() |
LeechCraft Monocle
0.6.70-10870-g558588d6ec
Modular document viewer for LeechCraft
|
Additional interface for page links. More...
#include "ilink.h"
Public Member Functions | |
| virtual | ~IPageLink () |
| Virtual destructor. More... | |
| virtual QString | GetDocumentFilename () const =0 |
| The name of the document to open. More... | |
| virtual int | GetPageNumber () const =0 |
| Returns the index of the page this link refers to. More... | |
| virtual double | NewX () const =0 |
| Returns the new x coordinate of the viewport. More... | |
| virtual double | NewY () const =0 |
| Returns the new x coordinate of the viewport. More... | |
| virtual double | NewZoom () const =0 |
| Returns the new zoom value for the page. More... | |
Additional interface for page links.
Links of type LinkType::PageLink should implement this interface in addition to ILink.
|
inlinevirtual |
|
pure virtual |
The name of the document to open.
If the link is relative to the current document, this method returns an empty string.
|
pure virtual |
Returns the index of the page this link refers to.
|
pure virtual |
Returns the new x coordinate of the viewport.
The returned value is in page's coordinates, that is, between 0 and the width of the page it belongs to.
|
pure virtual |
Returns the new x coordinate of the viewport.
The returned value is in page's coordinates, that is, between 0 and the width of the page it belongs to.
|
pure virtual |
Returns the new zoom value for the page.