filters

excelexport.cc

00001 /* insert your license here */
00002 
00003 #include <excelexport.h>
00004 #include <kdebug.h>
00005 #include <kgenericfactory.h>
00006 
00007 
00008 typedef KGenericFactory<ExcelExport, KoFilter> ExcelExportFactory;
00009 //K_EXPORT_COMPONENT_FACTORY(libkspreadexcelexport, ExcelExportFactory("excelexport"))
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     // Double check that's we really what we want to do
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 KoFilter::ConversionStatus ExcelWorker::startDocument(KSpreadFilterProperty property) {
00032     return KoFilter::OK;
00033 }
00034 
00035 
00036 KoFilter::ConversionStatus ExcelWorker::startInfoLog(KSpreadFilterProperty property) {
00037     return KoFilter::OK;
00038 }
00039 
00040 
00041 KoFilter::ConversionStatus ExcelWorker::startInfoAuthor(KSpreadFilterProperty property) {
00042     return KoFilter::OK;
00043 }
00044 
00045 
00046 KoFilter::ConversionStatus ExcelWorker::startInfoAbout(KSpreadFilterProperty property) {
00047     return KoFilter::OK;
00048 }
00049 
00050 
00051 KoFilter::ConversionStatus ExcelWorker::startSpreadBook(KSpreadFilterProperty property) {
00052     return KoFilter::OK;
00053 }
00054 
00055 
00056 KoFilter::ConversionStatus ExcelWorker::startSpreadSheet(KSpreadFilterProperty property) {
00057     return KoFilter::OK;
00058 }
00059 
00060 
00061 KoFilter::ConversionStatus ExcelWorker::startSpreadCell(KSpreadFilterProperty property) {
00062     return KoFilter::OK;
00063 }
00064 */
00065 
00066 #include <excelexport.moc>
KDE Home | KDE Accessibility Home | Description of Access Keys