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,v 1.11 2003/07/12 06:55:31 tokoe Exp $
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 
00027 class KDialogBase;
00028 class KoDocumentInfo;
00029 class KoDocumentInfoAuthor;
00030 class KoDocumentInfoAbout;
00031 class KArchiveEntry;
00032 
00033 class KoDocumentInfoDlg : public QObject
00034 {
00035   Q_OBJECT
00036 public:
00037   KoDocumentInfoDlg( KoDocumentInfo *docInfo, QWidget *parent = 0, const char *name = 0,
00038              KDialogBase *dialog = 0 );
00039   virtual ~KoDocumentInfoDlg();
00040 
00041   int exec();
00042   KDialogBase *dialog() const;
00043 
00044   void save();
00045 
00046 signals:
00047   void changed();
00048 
00049 private slots:
00050   void loadFromKABC();
00051 
00052 private:
00053   void addAuthorPage( KoDocumentInfoAuthor *authorInfo );
00054   void addAboutPage( KoDocumentInfoAbout *aboutInfo );
00055 
00056   void save( KoDocumentInfoAuthor *authorInfo );
00057   void save( KoDocumentInfoAbout *aboutInfo );
00058 
00059   class KoDocumentInfoDlgPrivate;
00060   KoDocumentInfoDlgPrivate *d;
00061 };
00062 
00063 class KoDocumentInfoPropsPage : public KPropsDlgPlugin
00064 {
00065   Q_OBJECT
00066 public:
00067   KoDocumentInfoPropsPage( KPropertiesDialog *props, const char *name = 0,
00068                            const QStringList & = QStringList() );
00069   virtual ~KoDocumentInfoPropsPage();
00070 
00071   virtual void applyChanges();
00072 
00073 private:
00074   void copy( const QString &path, const KArchiveEntry *entry );
00075   class KoDocumentInfoPropsPagePrivate;
00076   KoDocumentInfoPropsPagePrivate *d;
00077 };
00078 
00079 #endif
KDE Logo
This file is part of the documentation for lib Library Version 1.3.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Mar 11 11:47:41 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003