koPictureWmf.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
#ifndef __koPictureWmf_h__
00021
#define __koPictureWmf_h__
00022
00023
#include <qstring.h>
00024
#include <qpicture.h>
00025
00026
class QPainter;
00027
class QSize;
00028
00029
00030
00035
class KoPictureWmf :
public KoPictureBase
00036 {
00037
public:
00041 KoPictureWmf();
00042
00046
virtual ~KoPictureWmf();
00047
00048
virtual KoPictureType::Type getType(
void) const;
00049
00050 virtual KoPictureBase* newCopy(
void) const;
00051
00052
00056 virtual
bool isNull(
void) const;
00057
00073 virtual
void draw(
QPainter& painter,
int x,
int y,
int width,
int height,
int sx = 0,
int sy = 0,
int sw = -1,
int sh = -1,
bool fastMode = false);
00074
00075 virtual
bool load(const
QByteArray& array, const
QString& extension);
00076
00081 virtual
bool save(
QIODevice* io);
00082
00087 virtual
bool saveAsKOffice1Dot1(
QIODevice* io, const
QString& extension);
00088
00089 virtual
QSize getOriginalSize(
void) const;
00090
00091 virtual
QPixmap generatePixmap(const
QSize& size,
bool smoothScale = false);
00092
00097 virtual
bool isClipartAsKOffice1Dot1(
void) const;
00098
00099 virtual
QString getMimeType(const
QString& extension) const;
00100
00101 protected:
00102
QPixmap getPixmap(
QImage& image);
00106
void drawQPicture(
QPicture& clipart,
QPainter& painter,
00107
int x,
int y,
int width,
int height,
int sx,
int sy,
int sw,
int sh);
00108 protected:
00109
QPicture m_clipart;
00110
QByteArray m_rawData;
00111
QSize m_size;
00112
QSize m_originalSize;
00113 };
00114
00115 #endif
This file is part of the documentation for lib Library Version 1.3.3.