lib Library API Documentation

KoDocumentIface.h

00001 /* This file is part of the KDE project 00002 Copyright (C) 2000 David Faure <faure@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00017 Boston, MA 02111-1307, USA. 00018 */ 00019 00020 #ifndef __KoDocumentIface_h__ 00021 #define __KoDocumentIface_h__ 00022 00023 #include <dcopobject.h> 00024 #include <qvaluelist.h> 00025 #include <dcopref.h> 00026 00027 class KoDocument; 00028 class KDCOPActionProxy; 00029 00039 class KoDocumentIface : public DCOPObject 00040 { 00041 K_DCOP 00042 public: 00043 00044 KoDocumentIface( KoDocument * doc, const char * name = 0 ); 00045 ~KoDocumentIface(); 00046 00051 static QCString newIfaceName(); 00052 00053 k_dcop: 00057 QString url(); 00058 00062 void openURL( QString url ); 00063 00067 bool isModified(); 00068 00072 int viewCount(); 00073 00077 DCOPRef view( int idx ); 00078 00082 DCOPRef action( const QCString &name ); 00086 QCStringList actions(); 00090 QMap<QCString,DCOPRef> actionMap(); 00091 00095 void saveAs( const QString & url ); 00096 void setOutputMimeType( const QCString & mimetype ); 00097 00098 QString documentInfoAuthorName() const; 00099 QString documentInfoEmail() const; 00100 QString documentInfoCompanyName() const; 00101 QString documentInfoTitle() const; 00102 QString documentInfoAbstract() const; 00103 QString documentInfoTelephone() const; 00104 QString documentInfoFax() const; 00105 QString documentInfoCountry() const; 00106 QString documentInfoPostalCode() const; 00107 QString documentInfoCity() const; 00108 QString documentInfoStreet() const; 00109 QString documentInfoInitial() const; 00110 void setDocumentInfoAuthorName(const QString & text); 00111 void setDocumentInfoEmail(const QString &text); 00112 void setDocumentInfoCompanyName(const QString &text); 00113 void setDocumentInfoTelephone(const QString &text); 00114 void setDocumentInfoFax(const QString &text); 00115 void setDocumentInfoCountry(const QString &text); 00116 void setDocumentInfoTitle(const QString & text); 00117 void setDocumentInfoPostalCode(const QString &text); 00118 void setDocumentInfoCity(const QString & text); 00119 void setDocumentInfoStreet(const QString &text); 00120 void setDocumentInfoAbstract(const QString &text); 00121 void setDocumentInfoInitial(const QString & text); 00122 00123 public: 00124 virtual QCStringList functionsDynamic(); 00125 virtual bool processDynamic( const QCString &fun, const QByteArray &data, 00126 QCString& replyType, QByteArray &replyData ); 00127 00128 protected: 00129 KoDocument * m_pDoc; 00130 KDCOPActionProxy *m_actionProxy; 00131 }; 00132 00133 #endif 00134
KDE Logo
This file is part of the documentation for lib Library Version 1.3.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Sep 28 04:03:59 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003