interfaces

koChart.cpp
1/* This file is part of the KDE project
2 Copyright (C) 2000-2002 Kalle Dalheimer <kalle@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
7
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 * Boston, MA 02110-1301, USA.
17*/
18
19#include "koChart.h"
20
21#include <tqobjectlist.h>
22
23using namespace KoChart;
24
25WizardExtension::WizardExtension( Part *part, const char *name )
26 : TQObject( part, name )
27{
28 m_part = part;
29}
30
31WizardExtension::~WizardExtension()
32{
33}
34
35Part::Part( TQWidget *parentWidget, const char *widgetName,
36 TQObject *parent, const char *name,
37 bool singleViewMode )
38 : KoDocument( parentWidget, widgetName, parent, name, singleViewMode )
39{
40}
41
42Part::~Part()
43{
44}
45
46WizardExtension *Part::wizardExtension()
47{
48 TQObjectListIt it( TQObject::childrenListObject() );
49 for (; it.current(); ++it )
50 if ( it.current()->inherits( "KoChart::WizardExtension" ) )
51 return static_cast<WizardExtension *>( it.current() );
52
53 return 0;
54}
55
56#include "koChart.moc"