KoDocumentIface.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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
This file is part of the documentation for lib Library Version 1.3.5.