lib
KoPictureShared Class Reference
List of all members.Detailed Description
Definition at line 44 of file KoPictureShared.h.
Public Member Functions | |
KoPictureShared (void) | |
~KoPictureShared (void) | |
KoPictureShared (const KoPictureShared &other) | |
KoPictureShared & | operator= (const KoPictureShared &other) |
KoPictureType::Type | getType (void) const |
bool | isNull (void) const |
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) |
QDragObject * | dragObject (QWidget *dragSource=0L, const char *name=0L) |
bool | load (QIODevice *io, const QString &extension) |
bool | loadFromBase64 (const QCString &str) |
bool | save (QIODevice *io) const |
bool | saveAsBase64 (KoXmlWriter &writer) const |
void | setExtension (const QString &extension) |
QString | getExtension (void) const |
QSize | getOriginalSize (void) const |
void | clearAndSetMode (const QString &newMode) |
void | clear (void) |
bool | loadFromFile (const QString &fileName) |
bool | loadXpm (QIODevice *io) |
QPixmap | generatePixmap (const QSize &size, bool smoothScale=false) |
QString | getMimeType (void) const |
QImage | generateImage (const QSize &size) |
bool | hasAlphaBuffer () const |
void | setAlphaBuffer (bool enable) |
QImage | createAlphaMask (int conversion_flags=0) const |
void | clearCache (void) |
QString | uniquePictureId () const |
void | assignPictureId (uint _id) |
Protected Member Functions | |
bool | loadWmf (QIODevice *io) |
bool | loadTmp (QIODevice *io) |
bool | identifyAndLoad (QByteArray data) |
bool | loadCompressed (QIODevice *io, const QString &mimeType, const QString &extension) |
Protected Attributes | |
KoPictureBase * | m_base |
QString | m_extension |
uint | m_pictureId |
Constructor & Destructor Documentation
|
Default constructor.
Definition at line 39 of file KoPictureShared.cpp. |
|
Destructor.
Definition at line 53 of file KoPictureShared.cpp. |
|
Copy constructor. This makes a deep copy. Do not use if you want to share! Definition at line 58 of file KoPictureShared.cpp. |
Member Function Documentation
|
Reset the KoPictureShared (but not the key!).
Definition at line 333 of file KoPictureShared.cpp. |
|
Clear and set the mode of this KoPictureShared.
Definition at line 340 of file KoPictureShared.cpp. |
|
Clear any cache. It is used to avoid using too much memory especially if the application somehow caches the KoPicture too. Definition at line 504 of file KoPictureShared.cpp. |
|
Create a dragobject containing this picture.
Definition at line 470 of file KoPictureShared.cpp. |
|
Draw the image in a painter.
The parameter
The parameters
The other parameters are very similar to QPainter::drawPixmap : ( Definition at line 92 of file KoPictureShared.cpp. |
|
Generate a QImage. (always in slow mode)
Definition at line 477 of file KoPictureShared.cpp. |
|
Definition at line 463 of file KoPictureShared.cpp. |
|
Find type of image, create base accordingly, and load data.
Definition at line 154 of file KoPictureShared.cpp. |
|
Returns true if the picture is null.
Definition at line 85 of file KoPictureShared.cpp. |
|
Load a file.
Definition at line 426 of file KoPictureShared.cpp. |
|
Load a potentially broken XPM file (for KPresenter).
Definition at line 282 of file KoPictureShared.cpp. |
|
Assignment operator. This makes a deep copy. Do not use if you want to share! Definition at line 68 of file KoPictureShared.cpp. |
|
Save picture into a QIODevice.
Definition at line 317 of file KoPictureShared.cpp. |
|
OASIS FlatXML support: Save picture as base64-encoded data into an XML writer.
Definition at line 326 of file KoPictureShared.cpp. |
The documentation for this class was generated from the following files: