F:/KPlato/koffice/libs/kofficecore/KoDocumentAdaptor.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    Copyright (C) 2006 Fredrik Edemar <f_edemar@linux.se>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef __KoDocumentIface_h__
00022 #define __KoDocumentIface_h__
00023 
00024 #include <QMap>
00025 
00026 #include <QtCore/QObject>
00027 #include <QtDBus/qdbusabstractadaptor.h>
00028 #include <q3valuelist.h>
00029 #include <koffice_export.h>
00030 class KoDocument;
00031 
00041 class KOFFICECORE_EXPORT KoDocumentAdaptor : public QDBusAbstractAdaptor
00042 {
00043   Q_OBJECT
00044   Q_CLASSINFO("D-Bus Interface", "org.kde.koffice.document")
00045 public:
00046 
00047     KoDocumentAdaptor( KoDocument * doc);
00048     ~KoDocumentAdaptor();
00049 
00050 public Q_SLOTS: // METHODS
00054     Q_SCRIPTABLE QString url();
00055 
00061     Q_SCRIPTABLE void openURL( const QString & url );
00062 
00066     Q_SCRIPTABLE bool isLoading();
00067 
00071     Q_SCRIPTABLE bool isModified();
00072 
00076     Q_SCRIPTABLE int viewCount();
00077 
00081     Q_SCRIPTABLE QString view( int idx );
00082 
00086 //     DCOPRef action( const DCOPCString &name );
00090     Q_SCRIPTABLE QStringList actions();
00094 //     QMap<DCOPCString,DCOPRef> actionMap();
00095 
00099     Q_SCRIPTABLE void save();
00100 
00104     Q_SCRIPTABLE void saveAs( const QString & url );
00105 
00106     Q_SCRIPTABLE void setOutputMimeType( const QByteArray & mimetype );
00107 
00108     Q_SCRIPTABLE QString documentInfoAuthorName() const;
00109     Q_SCRIPTABLE QString documentInfoEmail() const;
00110     Q_SCRIPTABLE QString documentInfoCompanyName() const;
00111     Q_SCRIPTABLE QString documentInfoTitle() const;
00112     Q_SCRIPTABLE QString documentInfoAbstract() const;
00113     Q_SCRIPTABLE QString documentInfoKeywords() const;
00114     Q_SCRIPTABLE QString documentInfoSubject() const;
00115     Q_SCRIPTABLE QString documentInfoTelephone() const;
00116     Q_SCRIPTABLE QString documentInfoTelephoneWork() const;
00117     Q_SCRIPTABLE QString documentInfoTelephoneHome() const;
00118     Q_SCRIPTABLE QString documentInfoFax() const;
00119     Q_SCRIPTABLE QString documentInfoCountry() const;
00120     Q_SCRIPTABLE QString documentInfoPostalCode() const;
00121     Q_SCRIPTABLE QString documentInfoCity() const;
00122     Q_SCRIPTABLE QString documentInfoStreet() const;
00123     Q_SCRIPTABLE QString documentInfoInitial() const;
00124     Q_SCRIPTABLE QString documentInfoAuthorPostion() const;
00125     Q_SCRIPTABLE void setDocumentInfoAuthorName(const QString & text);
00126     Q_SCRIPTABLE void setDocumentInfoEmail(const QString &text);
00127     Q_SCRIPTABLE void setDocumentInfoCompanyName(const QString &text);
00128     Q_SCRIPTABLE void setDocumentInfoTelephone(const QString &text);
00129     Q_SCRIPTABLE void setDocumentInfoTelephoneWork(const QString &text);
00130     Q_SCRIPTABLE void setDocumentInfoTelephoneHome(const QString &text);
00131     Q_SCRIPTABLE void setDocumentInfoFax(const QString &text);
00132     Q_SCRIPTABLE void setDocumentInfoCountry(const QString &text);
00133     Q_SCRIPTABLE void setDocumentInfoTitle(const QString & text);
00134     Q_SCRIPTABLE void setDocumentInfoPostalCode(const QString &text);
00135     Q_SCRIPTABLE void setDocumentInfoCity(const QString & text);
00136     Q_SCRIPTABLE void setDocumentInfoStreet(const QString &text);
00137     Q_SCRIPTABLE void setDocumentInfoAbstract(const QString &text);
00138     Q_SCRIPTABLE void setDocumentInfoInitial(const QString & text);
00139     Q_SCRIPTABLE void setDocumentInfoKeywords(const QString & text );
00140     Q_SCRIPTABLE void setDocumentInfoSubject(const QString & text);
00141     Q_SCRIPTABLE void setDocumentInfoAuthorPosition(const QString & text);
00142 
00143 public:
00144 //     virtual DCOPCStringList functionsDynamic();
00145 //     virtual bool processDynamic( const DCOPCString &fun, const QByteArray &data,
00146 //                                  DCOPCString& replyType, QByteArray &replyData );
00147 
00148 protected:
00149     KoDocument * m_pDoc;
00150 //     KDCOPActionProxy *m_actionProxy;
00151 };
00152 
00153 #endif
00154 

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