document.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __ktexteditor_document_h__
00020 #define __ktexteditor_document_h__
00021
00022 #include "editor.h"
00023
00024 namespace KTextEditor
00025 {
00026
00027 class Document : public KTextEditor::Editor
00028 {
00029 friend class PrivateDocument;
00030
00031 Q_OBJECT
00032
00033 public:
00034 Document ( QObject *parent = 0, const char *name = 0 );
00035 virtual ~Document ();
00036
00037 unsigned int documentNumber () const;
00038
00039 QCString documentDCOPSuffix () const;
00040
00046 virtual class View *createView ( QWidget *parent, const char *name = 0 ) = 0;
00047
00048
00049
00050
00051 virtual QPtrList<class View> views () const = 0;
00052
00053 private:
00054 class PrivateDocument *d;
00055 static unsigned int globalDocumentNumber;
00056 unsigned int myDocumentNumber;
00057 };
00058
00059 Document *createDocument ( const char* libname, QObject *parent = 0, const char *name = 0 );
00060
00061 }
00062
00063 #endif
This file is part of the documentation for kdelibs Version 3.1.4.