KTextEditor
containerinterface.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef KDELIBS_KTEXTEDITOR_CONTAINER_INTERFACE_H
00020 #define KDELIBS_KTEXTEDITOR_CONTAINER_INTERFACE_H
00021
00022 #include <ktexteditor/ktexteditor_export.h>
00023
00024 #include <QtCore/QObject>
00025
00026 namespace KTextEditor
00027 {
00028
00029 class Document;
00030 class View;
00031
00032
00063 class KTEXTEDITOR_EXPORT ContainerInterface
00064 {
00065 public:
00069 ContainerInterface();
00070
00072 virtual ~ContainerInterface();
00073
00082 virtual void setContainer( QObject * container ) = 0;
00083
00112 virtual QObject * container() = 0;
00113 };
00114
00164 class KTEXTEDITOR_EXPORT MdiContainer
00165 {
00166 public:
00167
00169 MdiContainer();
00170
00172 virtual ~MdiContainer();
00173
00179 virtual void setActiveView( View * view )=0;
00180
00188 virtual View * activeView()=0;
00189
00210 virtual Document * createDocument()=0;
00211
00227 virtual bool closeDocument( Document * doc )=0;
00228
00246 virtual View * createView( Document * doc )=0;
00247
00258 virtual bool closeView( View * view )=0;
00259 };
00260
00261 }
00262
00263 Q_DECLARE_INTERFACE(KTextEditor::ContainerInterface, "org.kde.KTextEditor.ContainerInterface")
00264
00265 #endif // KDELIBS_KTEXTEDITOR_CONTAINER_EXTENSION_H