23#include <tdemessagebox.h>
25#include <KoFilterChain.h>
27#include <kgenericfactory.h>
28#include <KoDocument.h>
30#include "KPrDocument.h"
34#include "exportsizedia.h"
36typedef KGenericFactory<BmpExport, KoFilter> bmpExportFactory;
37K_EXPORT_COMPONENT_FACTORY( libkpresenterbmpexport, bmpExportFactory( "bmpexport" ) )
39BmpExport::BmpExport(KoFilter *fil, const char *name, const TQStringList&lst)
40 : ImageExport(fil,name,lst)
44BmpExport::~BmpExport()
48bool BmpExport::extraImageAttribute()
50 ExportSizeDia *exportDialog = new ExportSizeDia( width, height,
53 if (exportDialog->exec()) {
54 width = exportDialog->width();
55 height = exportDialog->height();
57 kdDebug() << "PNG Export: size = [" << width << "," << height << "]" << endl;
64bool BmpExport::saveImage( TQString fileName)
66 bool ret = pixmap.save( fileName, "BMP" );
69 KMessageBox::error( 0, i18n( "Failed to write file." ),
70 i18n( "BMP Export Error" ) );
75const char * BmpExport::exportFormat()
80#include "bmpexport.moc"
|