• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KTextEditor

loadsavefiltercheckplugin.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002    Copyright (C) 2001,2006 Joseph Wenninger <jowenn@kde.org>
00003       [katedocument.cpp, LGPL v2 only]
00004 
00005 ================RELICENSED=================
00006 
00007     This file is part of the KDE libraries
00008     Copyright (C) 2008 Joseph Wenninger <jowenn@kde.org>
00009 
00010     This library is free software; you can redistribute it and/or
00011     modify it under the terms of the GNU Library General Public
00012     License as published by the Free Software Foundation; either
00013     version 2 of the License, or (at your option) any later version.
00014 
00015     This library is distributed in the hope that it will be useful,
00016     but WITHOUT ANY WARRANTY; without even the implied warranty of
00017     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018     Library General Public License for more details.
00019 
00020     You should have received a copy of the GNU Library General Public License
00021     along with this library; see the file COPYING.LIB.  If not, write to
00022     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00023     Boston, MA 02110-1301, USA.
00024 */
00025 
00026 #ifndef KDELIBS_KTEXTEDITOR_LOADSAVEFILTERCHECKPLUGIN_H
00027 #define KDELIBS_KTEXTEDITOR_LOADSAVEFILTERCHECKPLUGIN_H
00028 
00029 //BEGIN includes
00030 #include <ktexteditor/document.h>
00031 #include <QtCore/QObject>
00032 //END  includes
00033 
00034 namespace KTextEditor
00035 {
00036 
00037 class LoadSaveFilterCheckPluginPrivate;
00038 
00042 class KTEXTEDITOR_EXPORT LoadSaveFilterCheckPlugin:public QObject {
00043   Q_OBJECT
00044   public:
00045     LoadSaveFilterCheckPlugin(QObject *parent); //expect parent to be 0
00046     virtual ~LoadSaveFilterCheckPlugin();
00047     /*this one is called once everything is set up for saving (especially the encoding has been determind (example: used for checking python source encoding headers))
00048     return true if saving should continue, false to abort
00049     */
00050     virtual bool preSavePostDialogFilterCheck(KTextEditor::Document *document) =0;
00051     /*this one is called after the file has been saved
00052       return true if following plugins should be handled*/
00053     virtual bool postSaveFilterCheck(KTextEditor::Document *document, bool saveas) =0;
00054     /*this one is called once the document has been completely loaded and configured (encoding,highlighting, ...))*/
00055     virtual void postLoadFilter(KTextEditor::Document *document) =0;
00056   private:
00057     class LoadSaveFilterCheckPluginPrivate* const d;
00058 };
00059 
00060 }
00061 
00062 #endif
00063 
00064 // kate: space-indent on; indent-width 2; replace-tabs on;

KTextEditor

Skip menu "KTextEditor"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal