• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ap_UnixClipboard.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 1998 AbiSource, Inc.
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017  * 02110-1301 USA.
00018  */
00019 
00020 /*****************************************************************
00021 ******************************************************************
00022 ** Only one of these is created by the application.
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 /* AP_UNIXCLIPBOARD_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1