![]() |
HTMLPRINTER
2.13.5-1
|
#include <stdarg.h>#include "types.h"Data Structures | |
| struct | prtControlSeq |
Typedefs | |
| typedef void(* | prtAsyncCallback) (void *data) |
Enumerations | |
| enum | PrtError { PRT_OK = 0, PRT_BUSY = -1, PRT_PAPERJAM = -2, PRT_HEADOPEN = -3, PRT_PAPEREND = -4, PRT_OVERHEAT = -5, PRT_OVERVOLTAGE = -6, PRT_UNDERVOLTAGE = -7, PRT_FAIL = -8, PRT_SCRIPT_ERROR = -9, PRT_NO_PRINTER = -10, PRT_UNSUPPORTED = -20, PRT_INVALID_PARAM = -21, PRT_NO_RESOURCE = -22, PRT_FILE_NOT_FOUND = -23, PRT_PROTOCOL = -24, PRT_FINAL_RESULT =- 40, PRT_TIMEOUT = -41 } |
| List of general errors. More... | |
| enum | PrtPropertyInt { PRT_PROP_STATE =0, PRT_PROP_HEAD_TEMP, PRT_PROP_HEAD_VOLTAGE, PRT_PROP_PIXEL_WIDTH, PRT_PROP_CONTRAST, PRT_PROP_DEFAULT_FONT_SIZE, PRT_PROP_PRINT_MODE } |
| List of numeric properties. More... | |
| enum | PrtPropertyString { PRT_PROP_RESOURCE_PATH, PRT_PROP_FILE_PREFIX, PRT_PROP_DEFAULT_FONT, PRT_PROP_CSS, PRT_PROP_INIFILE, PRT_PROP_JS_ROOT, PRT_PROP_DEVICE } |
| List of string properties. More... | |
Functions | |
| DllSpec const char * | prt_GetVersion () |
| DllSpec std::string | prtFormat (const char *format,...) |
| DllSpec std::string | prtFormatV (const char *format, va_list va) |
| DllSpec int | prtGetFD () |
| DllSpec int | prtGetHtml (const std::map< std::string, std::string > &value, const std::string &text, std::string &html, bool full) |
| DllSpec int | prtGetHtmlURL (const std::map< std::string, std::string > &value, const std::string &url, std::string &html, bool full) |
| DllSpec bool | prtGetLocalProperties () |
| DllSpec unsigned | prtGetLogMask (void) |
| DllSpec int | prtGetPropertyInt (enum PrtPropertyInt property, int *value) |
| DllSpec int | prtGetPropertyString (enum PrtPropertyString property, char *value, int len) |
| DllSpec int | prtGetPropertyString (enum PrtPropertyString property, std::string &value) |
| DllSpec std::string | prtGetText (const std::string &name, const std::string &deflt="") |
| DllSpec enum PrtError | prtHTML (const stringmap &value, const std::string &text, bool landscape=false) |
| enum PrtError | prtHTML (const std::string &text, bool landscape=false) |
| enum PrtError | prtHTML2PNG (const char *destfile, int width, const std::string &text, bool landscape=false) |
| enum PrtError | prtHTML2PNG (const std::string &destfile, int width, const std::string &text, bool landscape=false) |
| DllSpec enum PrtError | prtHTML2PNG (const char *destfile, int width, const stringmap &value, const std::string &text, bool landscape=false) |
| DllSpec enum PrtError | prtHTML2Text (std::string &result, int width, const stringmap &value, const std::string &text, const prtControlSeq &ctrl) |
| enum PrtError | prtHTML2Text (std::string &result, int width, const std::string &text, const prtControlSeq &ctrl) |
| enum PrtError | prtHTMLAsync (const std::string &text, bool landscape=false, prtAsyncCallback cb=0, void *cbdata=0) |
| DllSpec enum PrtError | prtHTMLAsync (const stringmap &value, const std::string &text, bool landscape=false, prtAsyncCallback cb=0, void *cbdata=0) |
| DllSpec const char * | prtLibVersion () |
| DllSpec std::string | prtScriptError () |
| DllSpec int | prtSetCatalog (const std::string &filename) |
| DllSpec void | prtSetLocalProperties (bool local) |
| DllSpec void | prtSetLogMask (unsigned mask) |
| DllSpec int | prtSetPropertyInt (enum PrtPropertyInt property, int value) |
| DllSpec int | prtSetPropertyString (enum PrtPropertyString property, const char *value) |
| int | prtSetPropertyString (enum PrtPropertyString property, const std::string &value) |
| DllSpec int | prtSetRemotePrinter (const std::string &address) |
| enum PrtError | prtURL (const std::string &url, bool landscape=false) |
| enum PrtError | prtURL (const char *url, bool landscape=false) |
| enum PrtError | prtURL (const stringmap &value, const std::string &url, bool landscape=false) |
| DllSpec enum PrtError | prtURL (const stringmap &value, const char *url, bool landscape=false) |
| enum PrtError | prtURL2PNG (const std::string &destfile, int width, const char *url, bool landscape=false) |
| enum PrtError | prtURL2PNG (const std::string &destfile, int width, const stringmap &value, const char *url, bool landscape=false) |
| enum PrtError | prtURL2PNG (const char *destfile, int width, const std::string &url, bool landscape=false) |
| enum PrtError | prtURL2PNG (const char *destfile, int width, const char *url, bool landscape=false) |
| DllSpec enum PrtError | prtURL2PNG (const char *destfile, int width, const stringmap &value, const char *url, bool landscape=false) |
| enum PrtError | prtURL2PNG (const std::string &destfile, int width, const std::string &url, bool landscape=false) |
| enum PrtError | prtURL2PNG (const char *destfile, int width, const stringmap &value, const std::string &url, bool landscape=false) |
| enum PrtError | prtURL2PNG (const std::string &destfile, int width, const stringmap &value, const std::string &url, bool landscape=false) |
| enum PrtError | prtURL2Text (std::string &result, int width, const char *url, const prtControlSeq &ctrl) |
| DllSpec enum PrtError | prtURL2Text (std::string &result, int width, const stringmap &value, const char *url, const prtControlSeq &ctrl) |
| enum PrtError | prtURL2Text (std::string &result, int width, const std::string &url, const prtControlSeq &ctrl) |
| enum PrtError | prtURL2Text (std::string &result, int width, const stringmap &value, const std::string &url, const prtControlSeq &ctrl) |
| enum PrtError | prtURLAsync (const stringmap &value, const std::string &url, bool landscape=false, prtAsyncCallback cb=0, void *cbdata=0) |
| enum PrtError | prtURLAsync (const std::string &url, bool landscape=false, prtAsyncCallback cb=0, void *cbdata=0) |
| DllSpec enum PrtError | prtURLAsync (const stringmap &value, const char *url, bool landscape=false, prtAsyncCallback cb=0, void *cbdata=0) |
| enum PrtError | prtURLAsync (const char *url, bool landscape=false, prtAsyncCallback cb=0, void *cbdata=0) |
| DllSpec enum PrtError | prtWait (int timeout_msec=-1) |