~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to libs/flake/KoImageCollection.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#include "flake_export.h"
23
23
 
24
 
#include <KoDataCenter.h>
 
24
#include <QObject>
 
25
#include <KoDataCenterBase.h>
25
26
 
26
27
class QImage;
27
28
class QUrl;
32
33
 * An collection of KoImageData objects to allow loading and saving them all together to the KoStore.
33
34
 * It also makes sure that if the same image is added to the collection that they share the internal data structure.
34
35
 */
35
 
class FLAKE_EXPORT KoImageCollection : public KoDataCenter
 
36
class FLAKE_EXPORT KoImageCollection : public QObject, public KoDataCenterBase
36
37
{
 
38
    Q_OBJECT
37
39
public:
38
40
    /// constructor
39
 
    KoImageCollection();
 
41
    KoImageCollection(QObject *parent = 0);
40
42
    virtual ~KoImageCollection();
41
43
 
42
44
    /// reimplemented
46
48
     * Save all images to the store which are in the context
47
49
     * @return returns true if save was successful (no images failed).
48
50
     */
49
 
    bool completeSaving(KoStore *store, KoXmlWriter * manifestWriter, KoShapeSavingContext * context);
 
51
    bool completeSaving(KoStore *store, KoXmlWriter *manifestWriter, KoShapeSavingContext *context);
50
52
 
51
53
    /**
52
54
     * Create a data object for the image data.
93
95
    void remove(const KoImageData &data);
94
96
    void removeOnKey(qint64 imageDataKey);
95
97
 
 
98
    bool fillFromKey(KoImageData &idata, qint64 imageDataKey);
 
99
 
96
100
    /**
97
101
     * Get the number of images inside the collection
98
102
     */
99
103
    int size() const;
 
104
    /**
 
105
     * Get the number of images inside the collection
 
106
     */
100
107
    int count() const;
101
108
 
102
109
private: