docmanageriface.h

00001 /***************************************************************************
00002  *   Copyright (C) 2005 by David Saxton                                    *
00003  *   david@bluehaze.org                                                    *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 
00011 #ifndef DOCMANAGERIFACE_H
00012 #define DOCMANAGERIFACE_H
00013 
00014 #include <dcopobject.h>
00015 #include <dcopref.h>
00016 
00017 class DocManager;
00018 class Document;
00019 
00023 class DocManagerIface : public DCOPObject
00024 {
00025         K_DCOP
00026 
00027         public:
00028                 DocManagerIface( DocManager * docManager );
00029                 ~DocManagerIface();
00030                 
00031         k_dcop:
00035                 bool closeAll();
00039                 DCOPRef openURL( const QString & url );
00044                 void gotoTextLine( const QString & url, int line );
00048                 DCOPRef createTextDocument();
00052                 DCOPRef createCircuitDocument();
00056                 DCOPRef createFlowCodeDocument();
00060                 DCOPRef createMechanicsDocument();
00061                 
00062         protected:
00063                 DCOPRef docToRef( Document * document );
00064                 
00065                 DocManager * m_pDocManager;
00066 };
00067 
00068 #endif

Generated on Tue May 8 17:05:29 2007 for KTechLab by  doxygen 1.5.1