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 KRSCRIPTFIELD_H
19
#define KRSCRIPTFIELD_H
22
#include "KoReportItemField.h"
25
@author Adam Pigg <adam@piggz.co.uk>
29
class Field : public QObject
33
Field(KoReportItemField*);
38
/**Returns the source (column) that the field gets its data from*/
40
/**Sets the source (column) for the field*/
41
void setSource(const QString&);
43
int horizontalAlignment();
44
void setHorizonalAlignment(int);
46
int verticalAlignment();
47
void setVerticalAlignment(int);
49
QColor backgroundColor();
50
void setBackgroundColor(const QColor&);
52
QColor foregroundColor();
53
void setForegroundColor(const QColor&);
55
int backgroundOpacity();
56
void setBackgroundOpacity(int);
59
void setLineColor(const QColor&);
62
void setLineWeight(int);
65
void setLineStyle(int);
68
void setPosition(const QPointF&);
71
void setSize(const QSizeF&);
73
KoReportItemField *m_field;