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

ie_impGraphic_WMF.h

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

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1