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( libkpresentermngexport, mngExportFactory( "mngexport" ) )
36MngExport::MngExport(KoFilter *fil, const char *name, const TQStringList&lst)
37 : ImageExport(fil,name,lst)
41MngExport::~MngExport()
45bool MngExport::extraImageAttribute()
48 ExportSizeDia *exportDialog = new ExportSizeDia( width, height,
50 if (exportDialog->exec()) {
51 width = exportDialog->width();
52 height = exportDialog->height();
54 kdDebug() << "MNG Export: size = [" << width << "," << height << "]" << endl;
61bool MngExport::saveImage( TQString fileName)
63 bool ret = pixmap.save( fileName, "MNG" );
66 KMessageBox::error( 0, i18n( "Failed to write file." ),
67 i18n( "MNG Export Error" ) );
72const char * MngExport::exportFormat()
77#include "mngexport.moc"
|