Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

document.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           document.h -  description
00003                              -------------------
00004     begin                : Mon Jan 15 2001
00005     copyright            : (C) 2001 by Christoph "Crossfire" Cullmann
00006                            (C) 2002 by Joseph Wenninger
00007     email                : crossfire@babylon2k.de
00008                            jowenn@kde.org
00009  ***************************************************************************/
00010 
00011 /***************************************************************************
00012     This library is free software; you can redistribute it and/or
00013     modify it under the terms of the GNU Library General Public
00014     License as published by the Free Software Foundation; either
00015     version 2 of the License, or (at your option) any later version.
00016 
00017     This library is distributed in the hope that it will be useful,
00018     but WITHOUT ANY WARRANTY; without even the implied warranty of
00019     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020     Library General Public License for more details.
00021 
00022     You should have received a copy of the GNU Library General Public License
00023     along with this library; see the file COPYING.LIB.  If not, write to
00024     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00025     Boston, MA 02111-1307, USA.
00026  ***************************************************************************/
00027 
00028 #ifndef _KATE_DOCUMENT_INCLUDE_
00029 #define _KATE_DOCUMENT_INCLUDE_
00030 
00031 #include <ktexteditor.h>
00032 
00033 class KateConfig;
00034 
00035 namespace Kate
00036 {
00037 
00039 class Mark
00040 {
00041   public:
00042     uint line;
00043     uint type;
00044 };
00045 
00048 class Document : public KTextEditor::Document
00049 {
00050   Q_OBJECT
00051 
00052   public:
00053     Document ();
00054     virtual ~Document ();
00055 
00056   public:
00059     virtual void readConfig () { ; };
00062     virtual void writeConfig () { ; };
00063 
00066     virtual void readSessionConfig (KateConfig *) { ; };
00069     virtual void writeSessionConfig (KateConfig *) { ; };
00070 
00073     virtual uint docID () { return 0L; };
00074 
00077     enum marks
00078     {
00079     Bookmark = 1,
00080     Breakpoint = 2,
00081     markType0 = 4,
00082     markType1 = 8,
00083     markType2 = 16,
00084     markType3 = 32,
00085     markType4 = 64,
00086     markType5 = 128,
00087     markType6 = 256,
00088     markType7 = 512,
00089     markType8 = 1024
00090     };
00091 
00094     virtual QList<Mark> marks () { QList<Mark> l; return l; };
00095 
00096   public slots:
00097     // clear buffer/filename - update the views
00098     virtual void flush () { ; };
00099 };
00100 
00101 };
00102 
00103 #endif

Generated on Sat Nov 5 16:17:10 2005 for OPIE by  doxygen 1.4.2