katedocumenthelpers.h

00001 /* This file is part of the KDE libraries
00002    Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org>
00003    Copyright (C) 2001 Joseph Wenninger <jowenn@kde.org>
00004    Copyright (C) 1999 Jochen Wilhelmy <digisnap@cs.tu-berlin.de>
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License version 2 as published by the Free Software Foundation.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018    Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef __KATE_DOCUMENT_HELPERS__
00022 #define __KATE_DOCUMENT_HELPERS__
00023 
00024 #include "../interfaces/document.h"
00025 
00026 #include <kparts/browserextension.h>
00027 
00028 #include <qstringlist.h>
00029 #include <qguardedptr.h>
00030 
00031 class KateDocument;
00032 
00036 class KateBrowserExtension : public KParts::BrowserExtension
00037 {
00038   Q_OBJECT
00039 
00040   public:
00045     KateBrowserExtension( KateDocument* doc );
00046 
00047   public slots:
00051     void copy();
00052 
00056     void slotSelectionChanged();
00057 
00061     void print();
00062 
00063   private:
00067     KateDocument* m_doc;
00068 };
00069 
00070 #endif
00071 
KDE Home | KDE Accessibility Home | Description of Access Keys