~ubuntu-branches/ubuntu/oneiric/koffice/oneiric-updates

« back to all changes in this revision

Viewing changes to libs/koreport/items/field/krscriptfield.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-27 17:52:57 UTC
  • mfrom: (0.12.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101027175257-s04zqqk5bs8ckm9o
Tags: 1:2.2.83-0ubuntu1
* Merge with Debian git remaining changes:
 - Add build-deps on librcps-dev, opengtl-dev, libqtgtl-dev, freetds-dev,
   create-resources, libspnav-dev
 - Remove needless build-dep on libwv2-dev
 - koffice-libs recommends create-resources
 - krita recommends pstoedit
 - Keep our patches
* New upstream release 2.3 beta 3
  - Remove debian/patches fixed by upstream
  - Update install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Kexi Report Plugin
 
3
 * Copyright (C) 2007-2008 by Adam Pigg (adam@piggz.co.uk)
 
4
 *
 
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.
 
9
 *
 
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.
 
14
 *
 
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/>.
 
17
 */
 
18
#ifndef KRSCRIPTFIELD_H
 
19
#define KRSCRIPTFIELD_H
 
20
 
 
21
#include <QObject>
 
22
#include "KoReportItemField.h"
 
23
 
 
24
/**
 
25
 @author Adam Pigg <adam@piggz.co.uk>
 
26
*/
 
27
namespace Scripting
 
28
{
 
29
class Field : public QObject
 
30
{
 
31
    Q_OBJECT
 
32
public:
 
33
    Field(KoReportItemField*);
 
34
 
 
35
    ~Field();
 
36
 
 
37
public slots:
 
38
    /**Returns the source (column) that the field gets its data from*/
 
39
    QString source();
 
40
    /**Sets the source (column) for the field*/
 
41
    void setSource(const QString&);
 
42
 
 
43
    int horizontalAlignment();
 
44
    void setHorizonalAlignment(int);
 
45
 
 
46
    int verticalAlignment();
 
47
    void setVerticalAlignment(int);
 
48
 
 
49
    QColor backgroundColor();
 
50
    void setBackgroundColor(const QColor&);
 
51
 
 
52
    QColor foregroundColor();
 
53
    void setForegroundColor(const QColor&);
 
54
 
 
55
    int backgroundOpacity();
 
56
    void setBackgroundOpacity(int);
 
57
 
 
58
    QColor lineColor();
 
59
    void setLineColor(const QColor&);
 
60
 
 
61
    int lineWeight();
 
62
    void setLineWeight(int);
 
63
 
 
64
    int lineStyle();
 
65
    void setLineStyle(int);
 
66
 
 
67
    QPointF position();
 
68
    void setPosition(const QPointF&);
 
69
 
 
70
    QSizeF size();
 
71
    void setSize(const QSizeF&);
 
72
private:
 
73
    KoReportItemField *m_field;
 
74
 
 
75
};
 
76
}
 
77
#endif