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)
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.
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.
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/>.
20
#ifndef __REPORTENTITYLABEL_H__
21
#define __REPORTENTITYLABEL_H__
23
#include <QGraphicsRectItem>
24
#include <koproperty/Property.h>
25
#include <koproperty/Set.h>
26
#include "KoReportItemLabel.h"
27
#include <KoReportDesignerItemRectBase.h>
31
class KoReportDesignerItemLabel : public KoReportItemLabel, public KoReportDesignerItemRectBase
35
KoReportDesignerItemLabel(KoReportDesigner *, QGraphicsScene * scene, const QPointF &pos);
36
KoReportDesignerItemLabel(QDomNode & element, KoReportDesigner *, QGraphicsScene * scene);
37
virtual ~KoReportDesignerItemLabel();
39
virtual void buildXML(QDomDocument & doc, QDomElement & parent);
40
virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0);
41
virtual KoReportDesignerItemLabel* clone();
44
void init(QGraphicsScene*);
48
void slotPropertyChanged(KoProperty::Set &, KoProperty::Property &);