filters
excelexport.cc00001
00002
00003 #include <excelexport.h>
00004 #include <kdebug.h>
00005 #include <kgenericfactory.h>
00006
00007
00008 typedef KGenericFactory<ExcelExport, KoFilter> ExcelExportFactory;
00009
00010
00011
00012 ExcelExport::ExcelExport(KoFilter *, const char *, const QStringList&) : KoFilter() {
00013 }
00014
00015
00016 KoFilter::ConversionStatus ExcelExport::convert(const QCString& from, const QCString& to) {
00017
00018 if ( ( (to != "application/excel") && (to != "application/msexcel") ) || from != "application/x-kspread") {
00019 kdWarning(0) << "Invalid mimetypes " << to << ", " << from << endl;
00020 return KoFilter::NotImplemented;
00021 }
00022
00023 KSpreadLeader *leader = new KSpreadLeader(m_chain);
00024 ExcelWorker *worker = new ExcelWorker();
00025 leader->setWorker(worker);
00026 return leader->convert();
00027 }
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066 #include <excelexport.moc>
|