F:/KPlato/koffice/libs/kofficecore/KoDocumentIface.h

Aller à la documentation de ce fichier.
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., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef __KoDocumentIface_h__
00021 #define __KoDocumentIface_h__
00022 
00023 #include <QMap>
00024 
00025 #include <dcopobject.h>
00026 #include <q3valuelist.h>
00027 //Added by qt3to4:
00028 #include <dcopref.h>
00029 #include <koffice_export.h>
00030 class KoDocument;
00031 class KDCOPActionProxy;
00032 
00042 class KOFFICECORE_EXPORT KoDocumentIface : public DCOPObject
00043 {
00044     K_DCOP
00045 public:
00046 
00047     KoDocumentIface( KoDocument * doc, const char * name = 0 );
00048     ~KoDocumentIface();
00049 
00054     static DCOPCString newIfaceName();
00055 
00056 k_dcop:
00060     QString url();
00061 
00067     void openURL( const QString & url );
00068 
00072     bool isLoading();
00073 
00077     bool isModified();
00078 
00082     int viewCount();
00083 
00087     DCOPRef view( int idx );
00088 
00092     DCOPRef action( const DCOPCString &name );
00096     DCOPCStringList actions();
00100     QMap<DCOPCString,DCOPRef> actionMap();
00101 
00105     void save();
00106 
00110     void saveAs( const QString & url );
00111 
00112     void setOutputMimeType( const QByteArray & mimetype );
00113 
00114     QString documentInfoAuthorName() const;
00115     QString documentInfoEmail() const;
00116     QString documentInfoCompanyName() const;
00117     QString documentInfoTitle() const;
00118     QString documentInfoAbstract() const;
00119     QString documentInfoKeywords() const;
00120     QString documentInfoSubject() const;
00121     QString documentInfoTelephone() const;
00122     QString documentInfoTelephoneWork() const;
00123     QString documentInfoTelephoneHome() const;
00124     QString documentInfoFax() const;
00125     QString documentInfoCountry() const;
00126     QString documentInfoPostalCode() const;
00127     QString documentInfoCity() const;
00128     QString documentInfoStreet() const;
00129     QString documentInfoInitial() const;
00130     QString documentInfoAuthorPostion() const;
00131     void setDocumentInfoAuthorName(const QString & text);
00132     void setDocumentInfoEmail(const QString &text);
00133     void setDocumentInfoCompanyName(const QString &text);
00134     void setDocumentInfoTelephone(const QString &text);
00135     void setDocumentInfoTelephoneWork(const QString &text);
00136     void setDocumentInfoTelephoneHome(const QString &text);
00137     void setDocumentInfoFax(const QString &text);
00138     void setDocumentInfoCountry(const QString &text);
00139     void setDocumentInfoTitle(const QString & text);
00140     void setDocumentInfoPostalCode(const QString &text);
00141     void setDocumentInfoCity(const QString & text);
00142     void setDocumentInfoStreet(const QString &text);
00143     void setDocumentInfoAbstract(const QString &text);
00144     void setDocumentInfoInitial(const QString & text);
00145     void setDocumentInfoKeywords(const QString & text );
00146     void setDocumentInfoSubject(const QString & text);
00147     void setDocumentInfoAuthorPosition(const QString & text);
00148 
00149 public:
00150     virtual DCOPCStringList functionsDynamic();
00151     virtual bool processDynamic( const DCOPCString &fun, const QByteArray &data,
00152                                  DCOPCString& replyType, QByteArray &replyData );
00153 
00154 protected:
00155     KoDocument * m_pDoc;
00156     KDCOPActionProxy *m_actionProxy;
00157 };
00158 
00159 #endif
00160 

Généré le Wed Nov 22 23:41:02 2006 pour KPlato par  doxygen 1.5.1-p1