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 #ifndef IE_IMP_GRAPHICASDOCUMENT_H 00022 #define IE_IMP_GRAPHICASDOCUMENT_H 00023 00024 #include <stdio.h> 00025 #include "ie_imp.h" 00026 #include "ie_impGraphic.h" 00027 class PD_Document; 00028 00029 // This creates a new empty document and inserts the specified image 00030 00031 class ABI_EXPORT IE_Imp_GraphicAsDocument : public IE_Imp 00032 { 00033 public: 00034 IE_Imp_GraphicAsDocument(PD_Document * pDocument); 00035 ~IE_Imp_GraphicAsDocument(); 00036 00037 void setGraphicImporter(IE_ImpGraphic* importer) 00038 { DELETEP(m_pGraphicImporter); m_pGraphicImporter = importer; } 00039 00040 protected: 00041 00042 virtual UT_Error _loadFile(GsfInput * input); 00043 00044 private: 00045 00046 IE_ImpGraphic * m_pGraphicImporter; 00047 }; 00048 00049 #endif /* IE_IMP_GRAPHICASDOCUMENT_H */