1
/**************************************************************************
2
KugarView.cpp - description
4
begin : 2003-03-13 11:12:40
5
copyright : (C) 2003 by Joris Marcillac
6
email : jorismarcillac@ifrance.com
7
**************************************************************************/
9
/**************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
* This program is distributed in the hope that it will be useful, *
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
19
* Library General Public License for more details. *
21
* You should have received a copy of the GNU Library General Public *
22
* License along with this library; if not, write to the Free *
23
* Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, *
24
* MA 02111-1307, USA *
26
**************************************************************************/
28
#include "kugarview.h"
29
#include <mreportviewer.h>
31
class KugarViewPrivate : public MReportViewer, public QShared
35
KugarViewPrivate(QWidget *parent=0, const char *name=0)
36
:MReportViewer( parent, name )
40
virtual ~KugarViewPrivate()
45
// Constructs an empty report.
46
KugarView::KugarView(QWidget *parent, const char *name)
48
d = new KugarViewPrivate( parent, name );
51
// Constructs a copy of \a other.
52
KugarView::KugarView( const KugarView& other )
58
// Sets the report equal to \a other.
59
KugarView& KugarView::operator=( const KugarView& other )
67
void KugarView::deref()
75
KugarView::~KugarView()
80
bool KugarView::setReportData(const QString& data)
82
return d->setReportData( data );
85
bool KugarView::setReportData(QIODevice* dev)
87
return d->setReportData( dev );
90
bool KugarView::setReportTemplate(const QString &tpl)
92
return d->setReportTemplate( tpl );
95
bool KugarView::setReportTemplate(QIODevice *dev)
97
return d->setReportTemplate( dev );
100
bool KugarView::renderReport()
102
return d->renderReport();
105
void KugarView::clearReport()
110
void KugarView::printReport()
115
void KugarView::show()