koPictureWmf.h
Go to the documentation of this file.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 #include <koffice_export.h>
00026
00027 class QPainter;
00028 class QSize;
00029
00039 class KOFFICECORE_EXPORT KoPictureWmf : public KoPictureBase
00040 {
00041 public:
00045 KoPictureWmf();
00046
00050 virtual ~KoPictureWmf();
00051
00052 virtual KoPictureType::Type getType(void) const;
00053
00054 virtual KoPictureBase* newCopy(void) const;
00055
00056
00060 virtual bool isNull(void) const;
00061
00077 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);
00078
00079 virtual bool loadData(const QByteArray& array, const QString& extension);
00080
00085 virtual bool save(QIODevice* io) const;
00086
00091 virtual bool saveAsKOffice1Dot1(QIODevice* io, const QString& extension) const;
00092
00093 virtual QSize getOriginalSize(void) const;
00094
00095 virtual QPixmap generatePixmap(const QSize& size, bool smoothScale = false);
00096
00101 virtual bool isClipartAsKOffice1Dot1(void) const;
00102
00103 virtual QString getMimeType(const QString& extension) const;
00104
00105 protected:
00106 QPixmap getPixmap(QImage& image);
00111 void drawQPicture(QPicture& clipart, QPainter& painter,
00112 int x, int y, int width, int height, int sx, int sy, int sw, int sh);
00113 protected:
00114 QPicture m_clipart;
00115 QByteArray m_rawData;
00116 QSize m_size;
00117 QSize m_originalSize;
00118 };
00119
00120 #endif
This file is part of the documentation for lib Library Version 1.4.2.