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

« back to all changes in this revision

Viewing changes to libs/koreport/items/label/KoReportDesignerItemLabel.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
 * OpenRPT report writer and rendering engine
 
3
 * Copyright (C) 2001-2007 by OpenMFG, LLC (info@openmfg.com)
 
4
 * Copyright (C) 2007-2008 by Adam Pigg (adam@piggz.co.uk)
 
5
 *
 
6
 * This library is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU Lesser General Public
 
8
 * License as published by the Free Software Foundation; either
 
9
 * version 2.1 of the License, or (at your option) any later version.
 
10
 *
 
11
 * This library is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 
14
 * Lesser General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU Lesser General Public
 
17
 * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
 
18
 */
 
19
 
 
20
#ifndef __REPORTENTITYLABEL_H__
 
21
#define __REPORTENTITYLABEL_H__
 
22
 
 
23
#include <QGraphicsRectItem>
 
24
#include <koproperty/Property.h>
 
25
#include <koproperty/Set.h>
 
26
#include "KoReportItemLabel.h"
 
27
#include <KoReportDesignerItemRectBase.h>
 
28
//
 
29
// ReportEntityLabel
 
30
//
 
31
class KoReportDesignerItemLabel : public KoReportItemLabel, public KoReportDesignerItemRectBase
 
32
{
 
33
  Q_OBJECT
 
34
public:
 
35
    KoReportDesignerItemLabel(KoReportDesigner *, QGraphicsScene * scene, const QPointF &pos);
 
36
    KoReportDesignerItemLabel(QDomNode & element, KoReportDesigner *, QGraphicsScene * scene);
 
37
    virtual ~KoReportDesignerItemLabel();
 
38
 
 
39
    virtual void buildXML(QDomDocument & doc, QDomElement & parent);
 
40
    virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0);
 
41
    virtual KoReportDesignerItemLabel* clone();
 
42
 
 
43
private:
 
44
    void init(QGraphicsScene*);
 
45
    QRectF getTextRect();
 
46
 
 
47
private slots:
 
48
    void slotPropertyChanged(KoProperty::Set &, KoProperty::Property &);
 
49
};
 
50
 
 
51
#endif