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

ie_impGraphic_Cocoa.h

Go to the documentation of this file.
00001 /* -*- c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*- */
00002 
00003 /* AbiWord
00004  * Copyright (C) 1998 AbiSource, Inc.
00005  * Copyright (C) 2001, 2003 Hubert Figuiere
00006  *
00007  * Portions from Nisus Software and Apple documentation
00008  *
00009  * This program is free software; you can redistribute it and/or
00010  * modify it under the terms of the GNU General Public License
00011  * as published by the Free Software Foundation; either version 2
00012  * of the License, or (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00022  * 02110-1301 USA.
00023  */
00024 
00025 #ifndef __IE_IMPGRAPHIC_COCOA_H__
00026 #define __IE_IMPGRAPHIC_COCOA_H__
00027 
00028 // WARNING: this file should conform to C++
00029 
00030 #include "ut_bytebuf.h"
00031 #include "ie_impGraphic.h"
00032 
00033 class IE_ImpGraphicCocoa_Sniffer : public IE_ImpGraphicSniffer
00034 {
00035  public:
00036     virtual UT_Confidence_t recognizeContents (const char * szBuf,
00037                     UT_uint32 iNumbytes);
00038     virtual const IE_SuffixConfidence * getSuffixConfidence ();
00039     virtual const IE_MimeConfidence * getMimeConfidence ();
00040     virtual bool getDlgLabels (const char ** szDesc,
00041                    const char ** szSuffixList,
00042                    IEGraphicFileType * ft);
00043     virtual UT_Error constructImporter (IE_ImpGraphic ** ppieg);
00044 };
00045 
00046 class IE_ImpGraphic_Cocoa : public IE_ImpGraphic
00047 {
00048 public:
00049     virtual UT_Error    importGraphic(const UT_ConstByteBufPtr & pBB,
00050                                           FG_ConstGraphicPtr & pfg);
00051     virtual UT_Error    convertGraphic(const UT_ConstByteBufPtr & pBB,
00052                                        UT_ConstByteBufPtr & ppBB);
00053  private:
00054     UT_Error _convertGraphic(const UT_ConstByteBufPtr & pBB);
00055     UT_ConstByteBufPtr  m_pPngBB;       // pBB Converted to PNG
00056 };
00057 
00058 #endif
00059 

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1