23#include <tdemessagebox.h>
25#include <KoFilterChain.h>
27#include <kgenericfactory.h>
28#include <KoDocument.h>
31#include "exportsizedia.h"
33typedef KGenericFactory<MngExport, KoFilter> mngExportFactory;
34K_EXPORT_COMPONENT_FACTORY( libkchartmngexport, mngExportFactory( "mngexport" ) )
36MngExport::MngExport(KoFilter *fil, const char *name, const TQStringList&lst)
37 : ImageExport(fil,name,lst)
41MngExport::~MngExport()
45void MngExport::extraImageAttribute()
47 ExportSizeDia *exportDialog = new ExportSizeDia( width, height,
49 if (exportDialog->exec()) {
50 width = exportDialog->width();
51 height = exportDialog->height();
53 kdDebug() << "MNG Export: size = [" << width << "," << height << "]" << endl;
59bool MngExport::saveImage( TQString fileName)
61 bool ret = pixmap.save( fileName, "MNG" );
64 KMessageBox::error( 0, i18n( "Failed to write file." ),
65 i18n( "MNG Export Error" ) );
70const char * MngExport::exportFormat()
75#include "mngexport.moc"
|