File indexing completed on 2024-05-12 16:30:48

0001 /* This file is part of the KDE project
0002  * Copyright (C) 2001-2002 Lennart Kudling <kudling@kde.org>
0003  * Copyright (C) 2001-2005,2007 Rob Buis <buis@kde.org>
0004  * Copyright (C) 2002,2004-2005 Laurent Montel <montel@kde.org>
0005  * Copyright (C) 2002 Benoit Vautrin <benoit.vautrin@free.fr>
0006  * Copyright (C) 2004-2005,2007 David Faure <faure@kde.org>
0007  * Copyright (C) 2004,2006 Peter Simonsson <psn@linux.se>
0008  * Copyright (C) 2004-2005 Fredrik Edemar <f_edemar@linux.se>
0009  * Copyright (C) 2005-2007 Jan Hambrecht <jaham@gmx.net>
0010  * Copyright (C) 2005-2007 Thomas Zander <zander@kde.org>
0011  * Copyright (C) 2006 Inge Wallin <inge@lysator.liu.se>
0012  * Copyright (C) 2006 Tim Beaulen <tbscope@gmail.com>
0013  * Copyright (C) 2006,2012 C. Boemann <cbo@boemann.dk>
0014  * Copyright (C) 2006-2007 Thorsten Zachmann <t.zachmann@zagge.de>
0015  *
0016  * This library is free software; you can redistribute it and/or
0017  * modify it under the terms of the GNU Library General Public
0018  * License as published by the Free Software Foundation; either
0019  * version 2 of the License, or (at your option) any later version.
0020  *
0021  * This library is distributed in the hope that it will be useful,
0022  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0023  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0024  * Library General Public License for more details.
0025  *
0026  * You should have received a copy of the GNU Library General Public License
0027  * along with this library; see the file COPYING.LIB.  If not, write to
0028  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0029  * Boston, MA 02110-1301, USA.
0030 */
0031 
0032 #ifndef KARBON_PART_H
0033 #define KARBON_PART_H
0034 
0035 #include <KoPart.h>
0036 
0037 #include "karbonui_export.h"
0038 
0039 class KoView;
0040 class KoDocument;
0041 
0042 class KARBONUI_EXPORT KarbonPart : public KoPart
0043 {
0044     Q_OBJECT
0045 
0046 public:
0047     explicit KarbonPart(QObject *parent);
0048 
0049     ~KarbonPart() override;
0050 
0051     /// reimplemented
0052     KoView *createViewInstance(KoDocument *document, QWidget *parent) override;
0053     /// reimplemented
0054     KoMainWindow *createMainWindow() override;
0055 
0056 protected Q_SLOTS:
0057     /// reimplemented
0058     void openTemplate(const QUrl& url) override;
0059 };
0060 
0061 #endif