#include <ap_UnixClipboard.h>
Public Member Functions | |
AP_UnixClipboard (AP_UnixApp *pUnixApp) | |
bool | addTextData (T_AllowGet tTo, const void *pData, UT_sint32 iNumBytes) |
bool | addRichTextData (T_AllowGet tTo, const void *pData, UT_sint32 iNumBytes) |
bool | addHtmlData (T_AllowGet tTo, const void *pData, UT_sint32 iNumBytes, bool xhtml) |
bool | addODTData (T_AllowGet tTo, const void *pData, UT_sint32 iNumBytes) |
bool | addPNGData (T_AllowGet tTo, const void *pData, UT_sint32 iNumBytes) |
bool | getSupportedData (T_AllowGet tFrom, const void **ppData, UT_uint32 *pLen, const char **pszFormatFound) |
bool | getTextData (T_AllowGet tFrom, const void **ppData, UT_uint32 *pLen, const char **pszFormatFound) |
bool | getRichTextData (T_AllowGet tFrom, const void **ppData, UT_uint32 *pLen, const char **pszFormatFound) |
bool | getImageData (T_AllowGet tFrom, const void **ppData, UT_uint32 *pLen, const char **pszFormatFound) |
bool | getDynamicData (T_AllowGet tFrom, const void **ppData, UT_uint32 *pLen, const char **pszFormatFound) |
void | addFormat (const char *fmt) |
void | deleteFormat (const char *fmt) |
Static Public Member Functions | |
static bool | isTextTag (const char *tag) |
static bool | isRichTextTag (const char *tag) |
static bool | isHTMLTag (const char *tag) |
static bool | isImageTag (const char *tag) |
static bool | isDynamicTag (const char *tag) |
AP_UnixClipboard::AP_UnixClipboard | ( | AP_UnixApp * | pUnixApp | ) |
References XAP_UnixClipboard::AddFmt(), addFormat(), AP_CLIPBOARD_APPLICATION_ODT, AP_CLIPBOARD_APPLICATION_RTF, AP_CLIPBOARD_APPLICATION_XHTML, AP_CLIPBOARD_IMAGE_BMP, AP_CLIPBOARD_IMAGE_GIF, AP_CLIPBOARD_IMAGE_GOChart, AP_CLIPBOARD_IMAGE_JPEG, AP_CLIPBOARD_IMAGE_PGM, AP_CLIPBOARD_IMAGE_PNG, AP_CLIPBOARD_IMAGE_PNM, AP_CLIPBOARD_IMAGE_PPM, AP_CLIPBOARD_IMAGE_RAS, AP_CLIPBOARD_IMAGE_SVG, AP_CLIPBOARD_IMAGE_SVG_XML, AP_CLIPBOARD_IMAGE_TIFF, AP_CLIPBOARD_IMAGE_WBMP, AP_CLIPBOARD_IMAGE_WMF, AP_CLIPBOARD_IMAGE_XBM, AP_CLIPBOARD_IMAGE_XPM, AP_CLIPBOARD_TEXT, AP_CLIPBOARD_TEXT_COMPOUND, AP_CLIPBOARD_TEXT_PLAIN, AP_CLIPBOARD_TEXT_STRING, AP_CLIPBOARD_TEXT_UTF8_STRING, AP_CLIPBOARD_TXT_HTML, AP_CLIPBOARD_TXT_RTF, and vec_DynamicFormatsAccepted.
void AP_UnixClipboard::addFormat | ( | const char * | fmt | ) |
References XAP_UnixClipboard::AddFmt(), and vec_DynamicFormatsAccepted.
Referenced by AP_UnixClipboard().
bool AP_UnixClipboard::addHtmlData | ( | T_AllowGet | tTo, | |
const void * | pData, | |||
UT_sint32 | iNumBytes, | |||
bool | xhtml | |||
) |
References XAP_UnixClipboard::addData(), AP_CLIPBOARD_APPLICATION_XHTML, and AP_CLIPBOARD_TXT_HTML.
Referenced by AP_UnixApp::copyToClipboard().
bool AP_UnixClipboard::addODTData | ( | T_AllowGet | tTo, | |
const void * | pData, | |||
UT_sint32 | iNumBytes | |||
) |
References XAP_UnixClipboard::addData(), and AP_CLIPBOARD_APPLICATION_ODT.
Referenced by AP_UnixApp::copyToClipboard().
bool AP_UnixClipboard::addPNGData | ( | T_AllowGet | tTo, | |
const void * | pData, | |||
UT_sint32 | iNumBytes | |||
) |
References XAP_UnixClipboard::addData(), and AP_CLIPBOARD_IMAGE_PNG.
Referenced by AP_UnixApp::copyToClipboard().
bool AP_UnixClipboard::addRichTextData | ( | T_AllowGet | tTo, | |
const void * | pData, | |||
UT_sint32 | iNumBytes | |||
) |
References XAP_UnixClipboard::addData(), AP_CLIPBOARD_APPLICATION_RTF, and AP_CLIPBOARD_TXT_RTF.
Referenced by AP_UnixApp::copyToClipboard().
bool AP_UnixClipboard::addTextData | ( | T_AllowGet | tTo, | |
const void * | pData, | |||
UT_sint32 | iNumBytes | |||
) |
void AP_UnixClipboard::deleteFormat | ( | const char * | fmt | ) |
References XAP_UnixClipboard::deleteFmt(), and vec_DynamicFormatsAccepted.
bool AP_UnixClipboard::getDynamicData | ( | T_AllowGet | tFrom, | |
const void ** | ppData, | |||
UT_uint32 * | pLen, | |||
const char ** | pszFormatFound | |||
) |
References XAP_UnixClipboard::getData(), and vec_DynamicFormatsAccepted.
bool AP_UnixClipboard::getImageData | ( | T_AllowGet | tFrom, | |
const void ** | ppData, | |||
UT_uint32 * | pLen, | |||
const char ** | pszFormatFound | |||
) |
References XAP_UnixClipboard::getData(), and imgszFormatsAccepted.
bool AP_UnixClipboard::getRichTextData | ( | T_AllowGet | tFrom, | |
const void ** | ppData, | |||
UT_uint32 * | pLen, | |||
const char ** | pszFormatFound | |||
) |
References XAP_UnixClipboard::getData(), and rtfszFormatsAccepted.
bool AP_UnixClipboard::getSupportedData | ( | T_AllowGet | tFrom, | |
const void ** | ppData, | |||
UT_uint32 * | pLen, | |||
const char ** | pszFormatFound | |||
) |
References XAP_UnixClipboard::getData(), getTextData(), htmlszFormatsAccepted, imgszFormatsAccepted, rtfszFormatsAccepted, and vec_DynamicFormatsAccepted.
Referenced by AP_UnixApp::pasteFromClipboard().
bool AP_UnixClipboard::getTextData | ( | T_AllowGet | tFrom, | |
const void ** | ppData, | |||
UT_uint32 * | pLen, | |||
const char ** | pszFormatFound | |||
) |
Referenced by getSupportedData(), and AP_UnixApp::pasteFromClipboard().
bool AP_UnixClipboard::isDynamicTag | ( | const char * | tag | ) | [static] |
References vec_DynamicFormatsAccepted.
Referenced by AP_UnixApp::pasteFromClipboard().
bool AP_UnixClipboard::isHTMLTag | ( | const char * | tag | ) | [static] |
References AP_CLIPBOARD_APPLICATION_XHTML, and AP_CLIPBOARD_TXT_HTML.
Referenced by AP_UnixApp::getCurrentSelection(), and AP_UnixApp::pasteFromClipboard().
bool AP_UnixClipboard::isImageTag | ( | const char * | tag | ) | [static] |
Referenced by AP_UnixApp::getCurrentSelection(), and AP_UnixApp::pasteFromClipboard().
bool AP_UnixClipboard::isRichTextTag | ( | const char * | tag | ) | [static] |
References AP_CLIPBOARD_APPLICATION_RTF, and AP_CLIPBOARD_TXT_RTF.
Referenced by AP_UnixApp::getCurrentSelection(), and AP_UnixApp::pasteFromClipboard().
bool AP_UnixClipboard::isTextTag | ( | const char * | tag | ) | [static] |
References AP_CLIPBOARD_TEXT, AP_CLIPBOARD_TEXT_COMPOUND, AP_CLIPBOARD_TEXT_PLAIN, AP_CLIPBOARD_TEXT_STRING, and AP_CLIPBOARD_TEXT_UTF8_STRING.
Referenced by AP_UnixApp::getCurrentSelection().