22#ifndef koPictureCollection_h
23#define koPictureCollection_h
27#include <tqvaluelist.h>
77 KoPicture downloadPicture( const KURL& url, TQWidget *window);
86 KoPicture loadPicture( const TQString &fileName );
99 bool saveToStore( const Type pictureType, KoStore * store, const TQValueList<KoPictureKey>& keys );
109 TQDomElement saveXML( const Type pictureType, TQDomDocument &doc,
110 TQValueList<KoPictureKey> keys );
112 bool saveOasisToStore( KoStore *store, TQValueList<KoPictureKey> keys, KoXmlWriter* manifestWriter );
115 typedef TQMap<KoPictureKey, TQString> StoreMap;
123 StoreMap readXML( TQDomElement &pixmapsElem );
128 void readXML( TQDomElement& pixmapsElem, TQMap <KoPictureKey, TQString>& map );
135 void readFromStore( KoStore * store, const StoreMap & storeMap );
147 KoPicture findOrLoad( const TQString& fileName, const TQDateTime& dateTime);
153 TQString getOasisFileName( const KoPicture& picture) const;
158 void assignUniqueIds();
165 TQString getFileName( const Type pictureType, KoPicture& picture, int& counter);
A collection of pictures (a key and the picture itself).
@ CollectionPicture collection with mixed pictures
@ CollectionImage collection with images only
@ CollectionClipart collection with cliparts only
KoPictureKey is the structure describing a picture in a unique way.
KoPicture is a container class for various types of pictures supported by KOffice.
Saves and loads KOffice documents using various backends.
A class for writing out XML (to any TQIODevice), with a special attention on performance.
|