KoPictureCollection Class Reference
A collection of pictures (a key and the picture itself). More...
#include <koPictureCollection.h>
Inheritance diagram for KoPictureCollection:


Detailed Description
A collection of pictures (a key and the picture itself).
Definition at line 40 of file koPictureCollection.h.
Member Enumeration Documentation
|
Definition at line 43 of file koPictureCollection.h. |
Member Function Documentation
|
Looks for a clipart in the collection, returns 0L if not found.
Definition at line 34 of file koPictureCollection.cc. References KoPicture::setKey(), and KoPictureKey::toString(). Referenced by insertPicture(), loadPicture(), readFromStore(), and saveXML(). |
|
Inserts a picture into the collection, if not already there.
Definition at line 50 of file koPictureCollection.cc. References findPicture(), KoPicture::isNull(), KoPicture::setKey(), and KoPictureKey::toString(). Referenced by downloadPicture(), insertPicture(), loadPicture(), and readFromStore(). |
|
Inserts a picture into the collection, if not already there Same as above, but takes the key from the
Definition at line 68 of file koPictureCollection.cc. References KoPicture::getKey(), and insertPicture(). |
|
Download a possibly remote file If this file is really remote, it is always downloaded. If the file is local, it acts as loadPicture. Definition at line 73 of file koPictureCollection.cc. References KoPicture::getKey(), insertPicture(), loadPicture(), and KoPicture::setKeyAndDownloadPicture(). |
|
Load a clipart from a file (and insert into the collection). The modification date of the file is checked, to create the key for this clipart. If this key maps to an existing clipart in the collection, then this picture is returned, otherwise the file is loaded. Definition at line 100 of file koPictureCollection.cc. References findPicture(), insertPicture(), KoPicture::isNull(), KoPicture::loadFromFile(), and KoPictureKey::setKeyFromFile(). Referenced by downloadPicture(), and findOrLoad(). |
|
Save the used picturess from the collection into the store Usually called from completeSaving.
Definition at line 189 of file koPictureCollection.cc. |
|
Save the used pictures from the collection into the store, however in KOffice 1.1 format.
Definition at line 194 of file koPictureCollection.cc. |
|
Generate the <pixmaps> or <cliparts> tag, that saves the key and the related relative path in the store (e.g. pictures/picture1.png) for each picture.
Definition at line 199 of file koPictureCollection.cc. References findPicture(), and KoPicture::isNull(). |
|
Read the <pixmaps> or <cliparts> tag, and save the result (key<->store-filename associations) into the QMap. You may want to 'new' a QMap in loadXML, and to use and then delete it in completeLoading (to save memory).
Definition at line 280 of file koPictureCollection.cc. |
|
Helper method for readFromStore.
Definition at line 262 of file koPictureCollection.cc. References KoPictureKey::loadAttributes(). |
|
Read all pictures from the store, into this collection The map comes from readXML, and is used to find which pictures to load, and which key to associate them.
Definition at line 287 of file koPictureCollection.cc. References KoStore::close(), findPicture(), insertPicture(), KoPicture::isNull(), KoPicture::load(), and KoStore::open(). |
|
Definition at line 338 of file koPictureCollection.cc. References loadPicture(). |
The documentation for this class was generated from the following files: