20#include <xsltexport.h>
23#include <KoFilterChain.h>
24#include <kgenericfactory.h>
26#include <xsltexportdia.h>
28typedef KGenericFactory<XSLTExport, KoFilter> XSLTExportFactory;
29K_EXPORT_COMPONENT_FACTORY( libxsltexport, XSLTExportFactory( "kofficefilters" ) )
33 int check_libxsltexport() {
39XSLTExport::XSLTExport(KoFilter *, const char *, const TQStringList&) :
43KoFilter::ConversionStatus XSLTExport::convert( const TQCString& from, const TQCString&)
45 if(from != "application/x-kword" &&
46 from != "application/x-kontour" && from != "application/x-kspread" &&
47 from != "application/x-kivio" && from != "application/x-kchart" &&
48 from != "application/x-kpresenter")
49 return KoFilter::NotImplemented;
50 kdDebug() << "In the xslt filter" << endl;
52 KoStoreDevice* in = m_chain->storageFile( "root", KoStore::Read);
55 kdError() << "Unable to open input file!" << endl;
56 return KoFilter::FileNotFound;
59 XSLTExportDia* dialog = new XSLTExportDia(in, from, 0, "Exportation", true);
60 dialog->setOutputFile(m_chain->outputFile());
66#include <xsltexport.moc>
|