lib
KoDocumentInfoDlg.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __koDocumentInfoDlg_h__
00023 #define __koDocumentInfoDlg_h__
00024
00025 #include <kpropertiesdialog.h>
00026 #include <koffice_export.h>
00027
00028 class KDialogBase;
00029 class KoDocumentInfo;
00030 class KoDocumentInfoAuthor;
00031 class KoDocumentInfoAbout;
00032 class KoDocumentInfoUserMetadata;
00033 class KArchiveEntry;
00034
00035 class KOFFICECORE_EXPORT KoDocumentInfoDlg : public QObject
00036 {
00037 Q_OBJECT
00038 public:
00039 KoDocumentInfoDlg( KoDocumentInfo *docInfo, QWidget *parent = 0, const char *name = 0,
00040 KDialogBase *dialog = 0 );
00041 virtual ~KoDocumentInfoDlg();
00042
00043 int exec();
00044 KDialogBase *dialog() const;
00045
00046 void save();
00047
00048 signals:
00049 void changed();
00050
00051 private slots:
00052 void loadFromKABC();
00053 void deleteInfo();
00054 void resetMetaData();
00055
00056 private:
00057 void addAuthorPage( KoDocumentInfoAuthor *authorInfo );
00058 void addAboutPage( KoDocumentInfoAbout *aboutInfo );
00059 void addUserMetadataPage( KoDocumentInfoUserMetadata *userMetadataInfo );
00060
00061 void save( KoDocumentInfoAuthor *authorInfo );
00062 void save( KoDocumentInfoAbout *aboutInfo );
00063 void save( KoDocumentInfoUserMetadata *userMetadataInfo );
00064
00065 class KoDocumentInfoDlgPrivate;
00066 KoDocumentInfoDlgPrivate *d;
00067 };
00068
00069 class KOFFICECORE_EXPORT KoDocumentInfoPropsPage : public KPropsDlgPlugin
00070 {
00071 Q_OBJECT
00072 public:
00073 KoDocumentInfoPropsPage( KPropertiesDialog *props, const char *name = 0,
00074 const QStringList & = QStringList() );
00075 virtual ~KoDocumentInfoPropsPage();
00076
00077 virtual void applyChanges();
00078
00079 private:
00080 void copy( const QString &path, const KArchiveEntry *entry );
00081 class KoDocumentInfoPropsPagePrivate;
00082 KoDocumentInfoPropsPagePrivate *d;
00083 };
00084
00085 #endif
|