summaryrefslogtreecommitdiffstats
path: root/filters/kspread/excel/excelexport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'filters/kspread/excel/excelexport.cpp')
-rw-r--r--filters/kspread/excel/excelexport.cpp66
1 files changed, 66 insertions, 0 deletions
diff --git a/filters/kspread/excel/excelexport.cpp b/filters/kspread/excel/excelexport.cpp
new file mode 100644
index 000000000..0ecf41f7b
--- /dev/null
+++ b/filters/kspread/excel/excelexport.cpp
@@ -0,0 +1,66 @@
+/* insert your license here */
+
+#include <excelexport.h>
+#include <kdebug.h>
+#include <kgenericfactory.h>
+
+
+typedef KGenericFactory<ExcelExport, KoFilter> ExcelExportFactory;
+//K_EXPORT_COMPONENT_FACTORY(libkspreadexcelexport, ExcelExportFactory("excelexport"))
+
+
+ExcelExport::ExcelExport(KoFilter *, const char *, const TQStringList&) : KoFilter() {
+}
+
+
+KoFilter::ConversionStatus ExcelExport::convert(const TQCString& from, const TQCString& to) {
+ // Double check that's we really what we want to do
+ if ( ( (to != "application/excel") && (to != "application/msexcel") ) || from != "application/x-kspread") {
+ kdWarning(0) << "Invalid mimetypes " << to << ", " << from << endl;
+ return KoFilter::NotImplemented;
+ }
+
+ KSpreadLeader *leader = new KSpreadLeader(m_chain);
+ ExcelWorker *worker = new ExcelWorker();
+ leader->setWorker(worker);
+ return leader->convert();
+}
+
+
+/*
+KoFilter::ConversionStatus ExcelWorker::startDocument(KSpreadFilterProperty property) {
+ return KoFilter::OK;
+}
+
+
+KoFilter::ConversionStatus ExcelWorker::startInfoLog(KSpreadFilterProperty property) {
+ return KoFilter::OK;
+}
+
+
+KoFilter::ConversionStatus ExcelWorker::startInfoAuthor(KSpreadFilterProperty property) {
+ return KoFilter::OK;
+}
+
+
+KoFilter::ConversionStatus ExcelWorker::startInfoAbout(KSpreadFilterProperty property) {
+ return KoFilter::OK;
+}
+
+
+KoFilter::ConversionStatus ExcelWorker::startSpreadBook(KSpreadFilterProperty property) {
+ return KoFilter::OK;
+}
+
+
+KoFilter::ConversionStatus ExcelWorker::startSpreadSheet(KSpreadFilterProperty property) {
+ return KoFilter::OK;
+}
+
+
+KoFilter::ConversionStatus ExcelWorker::startSpreadCell(KSpreadFilterProperty property) {
+ return KoFilter::OK;
+}
+*/
+
+#include <excelexport.moc>