Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef AP_UNIXCLIPBOARD_H
00027 #define AP_UNIXCLIPBOARD_H
00028
00029 #include "xap_UnixClipboard.h"
00030 class AP_UnixApp;
00031
00032 class AP_UnixClipboard : public XAP_UnixClipboard
00033 {
00034 public:
00035 AP_UnixClipboard(AP_UnixApp * pUnixApp);
00036
00037 bool addTextData(T_AllowGet tTo, const void* pData, UT_sint32 iNumBytes);
00038 bool addRichTextData(T_AllowGet tTo, const void* pData, UT_sint32 iNumBytes);
00039 bool addHtmlData(T_AllowGet tTo, const void* pData, UT_sint32 iNumBytes, bool xhtml);
00040 bool addODTData(T_AllowGet tTo, const void* pData, UT_sint32 iNumBytes);
00041 bool addPNGData(T_AllowGet tTo, const void* pData, UT_sint32 iNumBytes);
00042
00043 bool getSupportedData(T_AllowGet tFrom,
00044 const void ** ppData, UT_uint32 * pLen,
00045 const char **pszFormatFound);
00046
00047 bool getTextData(T_AllowGet tFrom,
00048 const void ** ppData, UT_uint32 * pLen,
00049 const char **pszFormatFound);
00050
00051 bool getRichTextData(T_AllowGet tFrom,
00052 const void ** ppData, UT_uint32 * pLen,
00053 const char **pszFormatFound);
00054
00055 bool getImageData(T_AllowGet tFrom,
00056 const void ** ppData, UT_uint32 * pLen,
00057 const char **pszFormatFound);
00058
00059 bool getDynamicData(T_AllowGet tFrom,
00060 const void ** ppData, UT_uint32 * pLen,
00061 const char **pszFormatFound);
00062
00063 void addFormat(const char * fmt);
00064 void deleteFormat(const char * fmt);
00065
00066 static bool isTextTag ( const char * tag ) ;
00067 static bool isRichTextTag ( const char * tag ) ;
00068 static bool isHTMLTag ( const char * tag ) ;
00069 static bool isImageTag ( const char * tag ) ;
00070 static bool isDynamicTag ( const char * tag ) ;
00071 };
00072
00073 #endif