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

« back to all changes in this revision

Viewing changes to libs/koreport/renderer/scripting/krscriptlabel.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 KRSCRIPTLABEL_H
19
 
#define KRSCRIPTLABEL_H
20
 
 
21
 
#include <QObject>
22
 
#include <krlabeldata.h>
23
 
 
24
 
/**
25
 
 @author Adam Pigg <adam@piggz.co.uk>
26
 
*/
27
 
namespace Scripting
28
 
{
29
 
class Label : public QObject
30
 
{
31
 
    Q_OBJECT
32
 
public:
33
 
    Label(KRLabelData *);
34
 
 
35
 
    ~Label();
36
 
 
37
 
public slots:
38
 
    QString caption();
39
 
    void setCaption(const QString&);
40
 
 
41
 
    /**Gets/sets the horizontal alignment, -1 Left, 0 Center, +1 Right*/
42
 
    int horizontalAlignment();
43
 
    void setHorizonalAlignment(int);
44
 
 
45
 
    /**Gets/sets the vertical alignment, -1 Top, 0 Middle, +1 Bottom*/
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
 
    /**Gets/sets the line style.  Valid values are those from Qt::PenStyle (0-5)*/
65
 
    int lineStyle();
66
 
    void setLineStyle(int);
67
 
 
68
 
    QPointF position();
69
 
    void setPosition(const QPointF&);
70
 
 
71
 
    QSizeF size();
72
 
    void setSize(const QSizeF&);
73
 
 
74
 
private:
75
 
    KRLabelData *m_label;
76
 
};
77
 
}
78
 
 
79
 
#endif