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 #include <koffice_export.h>
00027 class KoDocument;
00028 class KDCOPActionProxy;
00029 
00039 class KOFFICECORE_EXPORT 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 
00064     void openURL( QString url );
00065 
00069     bool isLoading();
00070 
00074     bool isModified();
00075 
00079     int viewCount();
00080 
00084     DCOPRef view( int idx );
00085 
00089     DCOPRef action( const QCString &name );
00093     QCStringList actions();
00097     QMap<QCString,DCOPRef> actionMap();
00098 
00102     void save();
00103 
00107     void saveAs( const QString & url );
00108 
00109     void setOutputMimeType( const QCString & mimetype );
00110 
00111     QString documentInfoAuthorName() const;
00112     QString documentInfoEmail() const;
00113     QString documentInfoCompanyName() const;
00114     QString documentInfoTitle() const;
00115     QString documentInfoAbstract() const;
00116     QString documentInfoKeywords() const;
00117     QString documentInfoSubject() const;
00118     QString documentInfoTelephone() const;
00119     QString documentInfoTelephoneWork() const;
00120     QString documentInfoTelephoneHome() const;
00121     QString documentInfoFax() const;
00122     QString documentInfoCountry() const;
00123     QString documentInfoPostalCode() const;
00124     QString documentInfoCity() const;
00125     QString documentInfoStreet() const;
00126     QString documentInfoInitial() const;
00127     QString documentInfoAuthorPostion() const;
00128     void setDocumentInfoAuthorName(const QString & text);
00129     void setDocumentInfoEmail(const QString &text);
00130     void setDocumentInfoCompanyName(const QString &text);
00131     void setDocumentInfoTelephone(const QString &text);
00132     void setDocumentInfoTelephoneWork(const QString &text);
00133     void setDocumentInfoTelephoneHome(const QString &text);
00134     void setDocumentInfoFax(const QString &text);
00135     void setDocumentInfoCountry(const QString &text);
00136     void setDocumentInfoTitle(const QString & text);
00137     void setDocumentInfoPostalCode(const QString &text);
00138     void setDocumentInfoCity(const QString & text);
00139     void setDocumentInfoStreet(const QString &text);
00140     void setDocumentInfoAbstract(const QString &text);
00141     void setDocumentInfoInitial(const QString & text);
00142     void setDocumentInfoKeywords(const QString & text );
00143     void setDocumentInfoSubject(const QString & text);
00144     void setDocumentInfoAuthorPosition(const QString & text);
00145 
00146 public:
00147     virtual QCStringList functionsDynamic();
00148     virtual bool processDynamic( const QCString &fun, const QByteArray &data,
00149                                  QCString& replyType, QByteArray &replyData );
00150 
00151 protected:
00152     KoDocument * m_pDoc;
00153     KDCOPActionProxy *m_actionProxy;
00154 };
00155 
00156 #endif
00157 
KDE Logo
This file is part of the documentation for lib Library Version 1.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Feb 13 09:40:00 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003