interfaces

koChart.cc

00001 /* This file is part of the KDE project
00002    Copyright (C) 2000-2002 Kalle Dalheimer <kalle@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016  * Boston, MA 02110-1301, USA.
00017 */
00018 
00019 #include "koChart.h"
00020 
00021 #include <qobjectlist.h>
00022 
00023 using namespace KoChart;
00024 
00025 WizardExtension::WizardExtension( Part *part, const char *name )
00026     : QObject( part, name )
00027 {
00028     m_part = part;
00029 }
00030 
00031 WizardExtension::~WizardExtension()
00032 {
00033 }
00034 
00035 Part::Part( QWidget *parentWidget, const char *widgetName,
00036             QObject *parent, const char *name,
00037             bool singleViewMode )
00038     : KoDocument( parentWidget, widgetName, parent, name, singleViewMode )
00039 {
00040 }
00041 
00042 Part::~Part()
00043 {
00044 }
00045 
00046 WizardExtension *Part::wizardExtension()
00047 {
00048     QObjectListIt it( *QObject::children() );
00049     for (; it.current(); ++it )
00050         if ( it.current()->inherits( "KoChart::WizardExtension" ) )
00051             return static_cast<WizardExtension *>( it.current() );
00052 
00053     return 0;
00054 }
00055 
00056 #include "koChart.moc"
KDE Home | KDE Accessibility Home | Description of Access Keys