lib Library API Documentation

koDocumentInfoDlg.h

00001 /* This file is part of the KDE project
00002    Copyright (c) 2000 Simon Hausmann <hausmann@kde.org>
00003 
00004    $Id: koDocumentInfoDlg.h 380877 2005-01-21 17:51:32Z mlaurent $
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License as published by the Free Software Foundation; either
00009    version 2 of the License, or (at your option) any later version.
00010 
00011    This library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Library General Public License for more details.
00015 
00016    You should have received a copy of the GNU Library General Public License
00017    along with this library; see the file COPYING.LIB.  If not, write to
00018    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00019    Boston, MA 02111-1307, USA.
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
KDE Logo
This file is part of the documentation for lib Library Version 1.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Feb 13 09:40:00 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003