koDocumentInfoDlg.h
00001
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 KArchiveEntry;
00033
00034 class KOFFICECORE_EXPORT KoDocumentInfoDlg : public QObject
00035 {
00036 Q_OBJECT
00037 public:
00038 KoDocumentInfoDlg( KoDocumentInfo *docInfo, QWidget *parent = 0, const char *name = 0,
00039 KDialogBase *dialog = 0 );
00040 virtual ~KoDocumentInfoDlg();
00041
00042 int exec();
00043 KDialogBase *dialog() const;
00044
00045 void save();
00046
00047 signals:
00048 void changed();
00049
00050 private slots:
00051 void loadFromKABC();
00052
00053 private:
00054 void addAuthorPage( KoDocumentInfoAuthor *authorInfo );
00055 void addAboutPage( KoDocumentInfoAbout *aboutInfo );
00056
00057 void save( KoDocumentInfoAuthor *authorInfo );
00058 void save( KoDocumentInfoAbout *aboutInfo );
00059
00060 class KoDocumentInfoDlgPrivate;
00061 KoDocumentInfoDlgPrivate *d;
00062 };
00063
00064 class KOFFICECORE_EXPORT KoDocumentInfoPropsPage : public KPropsDlgPlugin
00065 {
00066 Q_OBJECT
00067 public:
00068 KoDocumentInfoPropsPage( KPropertiesDialog *props, const char *name = 0,
00069 const QStringList & = QStringList() );
00070 virtual ~KoDocumentInfoPropsPage();
00071
00072 virtual void applyChanges();
00073
00074 private:
00075 void copy( const QString &path, const KArchiveEntry *entry );
00076 class KoDocumentInfoPropsPagePrivate;
00077 KoDocumentInfoPropsPagePrivate *d;
00078 };
00079
00080 #endif
This file is part of the documentation for lib Library Version 1.4.2.