#include <KoPictureWmf.h>
Graphe d'héritage de KoPictureWmf:
Fonctions membres publiques | |
| KoPictureWmf () | |
| virtual | ~KoPictureWmf () |
| virtual KoPictureType::Type | getType (void) const |
| virtual KoPictureBase * | newCopy (void) const |
| virtual bool | isNull (void) const |
| 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) |
| Draw the image in a painter. | |
| virtual bool | loadData (const QByteArray &array, const QString &extension) |
| virtual bool | save (QIODevice *io) const |
| virtual QSize | getOriginalSize (void) const |
| virtual QPixmap | generatePixmap (const QSize &size, bool smoothScale=false) |
| virtual QString | getMimeType (const QString &extension) const |
Fonctions membres protégées | |
| QPixmap | getPixmap (QImage &image) |
| void | drawQPicture (QPicture &clipart, QPainter &painter, int x, int y, int width, int height, int sx, int sy, int sw, int sh) |
Attributs protégés | |
| QPicture | m_clipart |
| QByteArray | m_rawData |
| QSize | m_size |
| QSize | m_originalSize |
Définition à la ligne 41 du fichier KoPictureWmf.h.
| KoPictureWmf::KoPictureWmf | ( | ) |
Default constructor.
Définition à la ligne 35 du fichier KoPictureWmf.cpp.
Référencé par newCopy().
Voici le graphe d'appel pour cette fonction :
| KoPictureWmf::~KoPictureWmf | ( | ) | [virtual] |
Destructor.
Définition à la ligne 39 du fichier KoPictureWmf.cpp.
| KoPictureType::Type KoPictureWmf::getType | ( | void | ) | const [virtual] |
Réimplémentée à partir de KoPictureBase.
Définition à la ligne 48 du fichier KoPictureWmf.cpp.
Références KoPictureType::TypeWmf.
| KoPictureBase * KoPictureWmf::newCopy | ( | void | ) | const [virtual] |
Réimplémentée à partir de KoPictureBase.
Définition à la ligne 43 du fichier KoPictureWmf.cpp.
Références KoPictureWmf().
Voici le graphe d'appel pour cette fonction :
| bool KoPictureWmf::isNull | ( | void | ) | const [virtual] |
Returns true if the picture is null.
Réimplémentée à partir de KoPictureBase.
Définition à la ligne 53 du fichier KoPictureWmf.cpp.
Références m_clipart.
| void KoPictureWmf::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 | |||
| ) | [virtual] |
Draw the image in a painter.
The parameter fastMode allows the picture to be re-sized and drawn quicker if possible
The parameters width, height define the desired size for the image Note that the image is being scaled to that size using scale() - except when printing. This avoids scaling the image at each paint event.
The other parameters are very similar to QPainter::drawPixmap : (x, y) define the position in the painter, (sx, sy) specify the top-left point in pixmap that is to be drawn. The default is (0, 0). (sw, sh) specify the size of the pixmap that is to be drawn. The default, (-1, -1), means all the way to the bottom right of the pixmap.
Réimplémentée à partir de KoPictureBase.
Définition à la ligne 78 du fichier KoPictureWmf.cpp.
Références drawQPicture(), et m_clipart.
Voici le graphe d'appel pour cette fonction :
| bool KoPictureWmf::loadData | ( | const QByteArray & | array, | |
| const QString & | extension | |||
| ) | [virtual] |
Réimplémentée à partir de KoPictureBase.
Définition à la ligne 83 du fichier KoPictureWmf.cpp.
Références KoWmfRead::boundingRect(), KoWmfRead::load(), m_clipart, m_originalSize, m_rawData, et KoWmfPaint::play().
Voici le graphe d'appel pour cette fonction :
| bool KoPictureWmf::save | ( | QIODevice * | io | ) | const [virtual] |
save file
| io | QIODevice used for saving |
Réimplémentée à partir de KoPictureBase.
Définition à la ligne 102 du fichier KoPictureWmf.cpp.
Références m_rawData, et testguiform::size.
| QSize KoPictureWmf::getOriginalSize | ( | void | ) | const [virtual] |
Réimplémentée à partir de KoPictureBase.
Définition à la ligne 109 du fichier KoPictureWmf.cpp.
Références m_originalSize.
| QPixmap KoPictureWmf::generatePixmap | ( | const QSize & | size, | |
| bool | smoothScale = false | |||
| ) | [virtual] |
Réimplémentée à partir de KoPictureBase.
Définition à la ligne 114 du fichier KoPictureWmf.cpp.
Références m_clipart, et m_originalSize.
| QString KoPictureWmf::getMimeType | ( | const QString & | extension | ) | const [virtual] |
| QPixmap KoPictureWmf::getPixmap | ( | QImage & | image | ) | [protected] |
| void KoPictureWmf::drawQPicture | ( | QPicture & | clipart, | |
| QPainter & | painter, | |||
| int | x, | |||
| int | y, | |||
| int | width, | |||
| int | height, | |||
| int | sx, | |||
| int | sy, | |||
| int | sw, | |||
| int | sh | |||
| ) | [protected] |
Définition à la ligne 58 du fichier KoPictureWmf.cpp.
Référencé par draw().
Voici le graphe d'appel pour cette fonction :
QPicture KoPictureWmf::m_clipart [protected] |
Définition à la ligne 104 du fichier KoPictureWmf.h.
Référencé par draw(), generatePixmap(), isNull(), et loadData().
QByteArray KoPictureWmf::m_rawData [protected] |
QSize KoPictureWmf::m_size [protected] |
Définition à la ligne 106 du fichier KoPictureWmf.h.
QSize KoPictureWmf::m_originalSize [protected] |
Définition à la ligne 107 du fichier KoPictureWmf.h.
Référencé par generatePixmap(), getOriginalSize(), et loadData().
1.5.1-p1