1 /* This file is part of the KDE project 2 * Copyright (C) 2001-2002 Lennart Kudling <kudling@kde.org> 3 * Copyright (C) 2001-2005,2007 Rob Buis <buis@kde.org> 4 * Copyright (C) 2002,2004-2005 Laurent Montel <montel@kde.org> 5 * Copyright (C) 2002 Benoit Vautrin <benoit.vautrin@free.fr> 6 * Copyright (C) 2004-2005,2007 David Faure <faure@kde.org> 7 * Copyright (C) 2004,2006 Peter Simonsson <psn@linux.se> 8 * Copyright (C) 2004-2005 Fredrik Edemar <f_edemar@linux.se> 9 * Copyright (C) 2005-2007 Jan Hambrecht <jaham@gmx.net> 10 * Copyright (C) 2005-2007 Thomas Zander <zander@kde.org> 11 * Copyright (C) 2006 Inge Wallin <inge@lysator.liu.se> 12 * Copyright (C) 2006 Tim Beaulen <tbscope@gmail.com> 13 * Copyright (C) 2006,2012 C. Boemann <cbo@boemann.dk> 14 * Copyright (C) 2006-2007 Thorsten Zachmann <t.zachmann@zagge.de> 15 * 16 * This library is free software; you can redistribute it and/or 17 * modify it under the terms of the GNU Library General Public 18 * License as published by the Free Software Foundation; either 19 * version 2 of the License, or (at your option) any later version. 20 * 21 * This library is distributed in the hope that it will be useful, 22 * but WITHOUT ANY WARRANTY; without even the implied warranty of 23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 24 * Library General Public License for more details. 25 * 26 * You should have received a copy of the GNU Library General Public License 27 * along with this library; see the file COPYING.LIB. If not, write to 28 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 29 * Boston, MA 02110-1301, USA. 30 */ 31 32 #ifndef KARBON_PART_H 33 #define KARBON_PART_H 34 35 #include <KoPart.h> 36 37 #include "karbonui_export.h" 38 39 class KoView; 40 class KoDocument; 41 42 class KARBONUI_EXPORT KarbonPart : public KoPart 43 { 44 Q_OBJECT 45 46 public: 47 explicit KarbonPart(QObject *parent); 48 49 ~KarbonPart() override; 50 51 /// reimplemented 52 KoView *createViewInstance(KoDocument *document, QWidget *parent) override; 53 /// reimplemented 54 KoMainWindow *createMainWindow() override; 55 56 protected Q_SLOTS: 57 /// reimplemented 58 void openTemplate(const QUrl& url) override; 59 }; 60 61 #endif 62