KoPictureCollection.cpp
125TQString KoPictureCollection::getFileName(const Type pictureType, KoPicture& picture, int& counter)
151bool KoPictureCollection::saveToStore(const Type pictureType, KoStore *store, const TQValueList<KoPictureKey>& keys)
177bool KoPictureCollection::saveOasisToStore( KoStore *store, TQValueList<KoPictureKey> keys, KoXmlWriter* manifestWriter )
202TQDomElement KoPictureCollection::saveXML(const Type pictureType, TQDomDocument &doc, TQValueList<KoPictureKey> keys)
229void KoPictureCollection::readXML( TQDomElement& pixmapsElem, TQMap <KoPictureKey, TQString>& map )
TQDomElement saveXML(const Type pictureType, TQDomDocument &doc, TQValueList< KoPictureKey > keys)
Generate the <PICTURES>, <PIXMAPS> or <CLIPARTS> tag, that saves the key and the related relative pat...
Definition KoPictureCollection.cpp:202
KoPicture findOrLoad(const TQString &fileName, const TQDateTime &dateTime)
Definition KoPictureCollection.cpp:305
KoPicture downloadPicture(const KURL &url, TQWidget *window)
Download a possibly remote file.
Definition KoPictureCollection.cpp:75
KoPicture loadPicture(const TQString &fileName)
Load a clipart from a file (and insert into the collection).
Definition KoPictureCollection.cpp:102
KoPicture findPicture(const KoPictureKey &key) const
Looks for a clipart in the collection, returns a new KoPicture with that key if not found.
Definition KoPictureCollection.cpp:35
void readFromStore(KoStore *store, const StoreMap &storeMap)
Read all pictures from the store, into this collection The map comes from readXML,...
Definition KoPictureCollection.cpp:254
StoreMap readXML(TQDomElement &pixmapsElem)
Read the <PICTURES>, <PIXMAPS> or <CLIPARTS> tag, and save the result (key<->store-filename associati...
Definition KoPictureCollection.cpp:247
TQString getOasisFileName(const KoPicture &picture) const
Return filename as url for picture.
Definition KoPictureCollection.cpp:139
KoPicture insertPicture(const KoPictureKey &key, const KoPicture &picture)
Inserts a picture into the collection, if not already there.
Definition KoPictureCollection.cpp:52
bool saveToStore(const Type pictureType, KoStore *store, const TQValueList< KoPictureKey > &keys)
Save the used picturess from the collection into the store Usually called from completeSaving().
Definition KoPictureCollection.cpp:151
KoPictureKey is the structure describing a picture in a unique way.
Definition KoPictureKey.h:76
TQString toString() const
Convert this key into a string representation of it.
Definition KoPictureKey.cpp:139
void loadAttributes(const TQDomElement &elem)
Load this key from XML (as KOffice 1.3)
Definition KoPictureKey.cpp:96
void setKeyFromFile(const TQString &filename)
Sets the key according to filename, including modification time.
Definition KoPictureKey.cpp:146
KoPicture is a container class for various types of pictures supported by KOffice.
Definition KoPicture.h:44
bool setKeyAndDownloadPicture(const KURL &url, TQWidget *window)
Download and set the key for a possibly remote file.
Definition KoPicture.cpp:235
void setKey(const KoPictureKey &key)
Set the key structure describing the picture in a unique way.
Definition KoPicture.cpp:119
bool loadFromFile(const TQString &fileName)
Load the picture from a file named fileName.
Definition KoPicture.cpp:208
KoPictureKey getKey(void) const
Retrieve the key structure describing the picture in a unique way.
Definition KoPicture.cpp:114
This class implements a TQIODevice around KoStore, so that it can be used to create a TQDomDocument f...
Definition KoStoreDevice.h:31
A class for writing out XML (to any TQIODevice), with a special attention on performance.
Definition KoXmlWriter.h:37
void addManifestEntry(const TQString &fullPath, const TQString &mediaType)
Special helper for writing "manifest" files This is equivalent to startElement/2*addAttribute/endElem...
Definition KoXmlWriter.cpp:283
