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

ap_Convert.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 2000 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 #ifndef AP_CONVERT_H
00021 #define AP_CONVERT_H
00022 
00023 #include "ie_types.h"
00024 #include "pd_Document.h"
00025 #include "ut_string_class.h"
00026 
00028 
00029 class GR_Graphics;
00030 class PD_Document;
00031 class ABI_EXPORT AP_Convert
00032 {
00033  public:
00034     AP_Convert(int verbose=1);
00035     ~AP_Convert(void);
00036 
00037     bool convertTo(const char * szSourceFilename,
00038                IEFileType sourceFormat,
00039                const char * szTargetFilename,
00040                IEFileType targetFormat);
00041 
00042     bool convertTo(const char * szFilename,
00043                const char * szSourceSuffixOrMime,
00044                const char * szTargetFilename,
00045                const char * szTargetSuffixOrMime);
00046 
00047     bool convertTo(const char * szSourceFilename,
00048                const char * szSourceSuffixOrMime,
00049                const char * szTargetSuffixOrMime);
00050 
00051     void setVerbose(int level);
00052     void setMergeSource (const char * source);
00053 
00054     bool print(const char * file, GR_Graphics * pGraphics, const char * szFileExtension = NULL);
00055     bool printFirstPage(GR_Graphics * pGraphics, PD_Document * pDoc);
00056 
00057     void setImpProps (const char * props) {
00058         m_impProps = props;
00059     }
00060 
00061     void setExpProps (const char * props) {
00062         m_expProps = props;
00063     }
00064 
00065  private:
00066     int m_iVerbose;
00067     UT_UTF8String m_mergeSource;
00068 
00069     UT_UTF8String m_impProps;
00070     UT_UTF8String m_expProps;
00071 };
00072 
00073 #endif /* AP_CONVERT_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1