summaryrefslogtreecommitdiffstats
path: root/filters/kspread/excel/excelexport.cpp
blob: 0ecf41f7b1ffccb72bb2e151224dfdd2a49ce83b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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>