$search
#include <xpdfctrl.h>
Public Member Functions | |
void | goto_page (unsigned int page) |
void | hide () |
void | load_file (const char *filename) |
void | next_page () |
void | prev_page () |
XpdfControl (const char *remote) | |
~XpdfControl () | |
Private Member Functions | |
void | execute_command (const char *format,...) |
Private Attributes | |
bool | __hidden |
char * | __remote |
Xpdf Remote Control interface. This class supports launching and controlling a remote Xpdf instance.
Definition at line 25 of file xpdfctrl.h.
XpdfControl::XpdfControl | ( | const char * | remote | ) |
Constructor.
remote | remote name, this is Xpdf specific, read its documentation. Basically it must be a simple system-wide unique string. |
Definition at line 43 of file xpdfctrl.cpp.
XpdfControl::~XpdfControl | ( | ) |
Destructor.
Definition at line 50 of file xpdfctrl.cpp.
void XpdfControl::execute_command | ( | const char * | format, | |
... | ||||
) | [private] |
Execute Xpdf command.
format | a format string using standard sprintf notation followed by the required number of arguments. The command is appended an ampersand, so that the execution happens concurrently. |
Definition at line 102 of file xpdfctrl.cpp.
void XpdfControl::goto_page | ( | unsigned int | page | ) |
Got to specific page.
n | page number to go to |
Definition at line 73 of file xpdfctrl.cpp.
void XpdfControl::hide | ( | ) |
Hide Xpdf window.
Definition at line 80 of file xpdfctrl.cpp.
void XpdfControl::load_file | ( | const char * | filename | ) |
Load PDF file. This will start Xpdf if it was not running before and show the window if it was hidden.
filename | name of the file to open |
Definition at line 91 of file xpdfctrl.cpp.
void XpdfControl::next_page | ( | ) |
Got to next page.
Definition at line 57 of file xpdfctrl.cpp.
void XpdfControl::prev_page | ( | ) |
Got to previous page.
Definition at line 64 of file xpdfctrl.cpp.
bool XpdfControl::__hidden [private] |
Definition at line 41 of file xpdfctrl.h.
char* XpdfControl::__remote [private] |
Definition at line 42 of file xpdfctrl.h.