Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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