KTextEditor
factory.h
Go to the documentation of this file.00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2005 Christoph Cullmann <cullmann@kde.org> 00003 Copyright (C) 2005 Dominik Haumann (dhdev@gmx.de) (documentation) 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License version 2 as published by the Free Software Foundation. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 Boston, MA 02110-1301, USA. 00018 */ 00019 00020 #ifndef KDELIBS_KTEXTEDITOR_FACTORY_H 00021 #define KDELIBS_KTEXTEDITOR_FACTORY_H 00022 00023 #include <ktexteditor/ktexteditor_export.h> 00024 // our main baseclass of the KTextEditor::Document 00025 #include <kparts/factory.h> 00026 00033 namespace KTextEditor 00034 { 00035 00036 class Editor; 00037 00089 class KTEXTEDITOR_EXPORT Factory : public KParts::Factory 00090 { 00091 Q_OBJECT 00092 00093 public: 00100 Factory ( QObject *parent ); 00101 00105 virtual ~Factory (); 00106 00113 virtual Editor *editor () = 0; 00114 00115 private: 00116 class FactoryPrivate* const d; 00117 }; 00118 00119 } 00120 00121 #endif 00122 00123 // kate: space-indent on; indent-width 2; replace-tabs on;