Source: doctypeviewmanager.h
|
|
|
|
// -*- c++ -*-
#ifndef DOCTYPEVIEWMANAGER_H
#define DOCTYPEVIEWMANAGER_H
#include
#include
#include
#include "utils/srctexteditpart.h"
class QTabWidget;
class KURL;
class DocTypeViewManager;
class DocType;
/**
* Manages the views for a particular DocType.
*
* @author Richard Moore, rich@kde.org
* @version $Id: doctypeviewmanager_h.html,v 1.1.1.1 2001/11/29 18:18:34 rich Exp $
*/
class DocTypeViewManager
{
public:
DocTypeViewManager( DocType *type );
virtual ~DocTypeViewManager() {}
DocType *docType() const { return type; }
virtual void openURL( const KURL &url ) = 0;
virtual void installViews( QTabWidget *parent, KParts::PartManager *mng ) = 0;
virtual void uninstallViews( QTabWidget *parent, KParts::PartManager *mng ) = 0;
virtual KParts::Part *findPart( QWidget *w );
void installSourceView( QTabWidget *parent, KParts::PartManager *mng );
void uninstallSourceView( QTabWidget *parent, KParts::PartManager *mng );
KParts::ReadWritePart *sourcePart() const { return srcPart; }
private:
DocType *type;
KParts::ReadWritePart *srcPart;
};
#endif // DOCTYPEMANAGER_H
// Local Variables:
// c-basic-offset: 4
// End:
Generated by: rich on pegasus on Fri Nov 9 01:30:42 2001, using kdoc 2.0a53. |