23#include <tdemessagebox.h>
25#include <KoFilterChain.h>
27#include <kgenericfactory.h>
28#include <KoDocument.h>
31#include "exportsizedia.h"
33typedef KGenericFactory<PngExport, KoFilter> PngExportFactory;
34K_EXPORT_COMPONENT_FACTORY( libkpresenterpngexport, PngExportFactory( "pngexport" ) )
36PngExport::PngExport(KoFilter *fil, const char *name, const TQStringList&lst)
37 : ImageExport(fil,name,lst)
41PngExport::~PngExport()
45bool PngExport::extraImageAttribute()
48 ExportSizeDia *exportDialog = new ExportSizeDia( width, height,
50 if (exportDialog->exec()) {
51 width = exportDialog->width();
52 height = exportDialog->height();
54 kdDebug() << "PNG Export: size = [" << width << "," << height << "]" << endl;
60const char * PngExport::exportFormat()
65bool PngExport::saveImage( TQString fileName)
67 bool ret = pixmap.save( fileName, "PNG" );
70 KMessageBox::error( 0, i18n( "Failed to write file." ),
71 i18n( "PNG Export Error" ) );
77#include "pngexport.moc"
|