3
* Copyright (C) 2007-2008 by Adam Pigg (adam@piggz.co.uk)
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version.
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
18
#ifndef SCRIPTINGKRSCRIPTIMAGE_H
19
#define SCRIPTINGKRSCRIPTIMAGE_H
25
class KoReportItemImage;
31
@author Adam Pigg <adam@piggz.co.uk>
33
class Image : public QObject
37
Image(KoReportItemImage *);
44
* Get the position of the barcode
45
* @return position in points
51
* Sets the position of the barcode in points
54
void setPosition(const QPointF&);
57
* Get the size of the barcode
58
* @return size in points
63
* Set the size of the barcode in points
66
void setSize(const QSizeF&);
69
* Get the resize mode for the image
70
* @return resizeMode Clip or Stretch
75
* Sets the resize mode for the image
76
* @param ResizeMode "Stretch" or "Clip" default is to clip
78
void setResizeMode(const QString &);
81
* Sets the data for the static image
82
* the data should be base64 encoded
85
void setInlineImage(const QByteArray&);
88
* Get the data from a file (expected to be an image)
89
* the returned data will be base64 encoded
90
* @param Path location of file
91
* @return File data enoded in base64
93
void loadFromFile(const QVariant &);
95
KoReportItemImage *m_image;