kspread Library API Documentation

kspread_dlg_format.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2002-2003 Norbert Andres <nandres@web.de>
00003              (C) 2002 Ariya Hidayat <ariya@kde.org>
00004              (C) 2002 John Dailey <dailey@vt.edu>
00005              (C) 2001-2002 Philipp Mueller <philipp.mueller@gmx.de>
00006              (C) 2000-2002 Laurent Montel <montel@kde.org>
00007              (C) 2000 Werner Trobin <trobin@kde.org>
00008              (C) 1998-2000 Torben Weis <weis@kde.org>
00009              
00010    This library is free software; you can redistribute it and/or
00011    modify it under the terms of the GNU Library General Public
00012    License as published by the Free Software Foundation; either
00013    version 2 of the License, or (at your option) any later version.
00014 
00015    This library is distributed in the hope that it will be useful,
00016    but WITHOUT ANY WARRANTY; without even the implied warranty of
00017    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018    Library General Public License for more details.
00019 
00020    You should have received a copy of the GNU Library General Public License
00021    along with this library; see the file COPYING.LIB.  If not, write to
00022    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00023    Boston, MA 02111-1307, USA.
00024 */
00025 
00026 #ifndef KSPREAD_DLG_FORMAT
00027 #define KSPREAD_DLG_FORMAT
00028 
00029 #include <kdialogbase.h>
00030 #include <qstring.h>
00031 #include <qvaluelist.h>
00032 #include <qcolor.h>
00033 #include <qpen.h>
00034 #include <qfont.h>
00035 
00036 class QComboBox;
00037 class QLabel;
00038 class QDomDocument;
00039 
00040 class KSpreadView;
00041 class KSpreadFormat;
00042 
00043 class KSpreadFormatDlg : public KDialogBase
00044 {
00045     Q_OBJECT
00046 public:
00047     KSpreadFormatDlg( KSpreadView* view, const char* name = 0 );
00048     ~KSpreadFormatDlg();
00049 
00050 private slots:
00051     void slotActivated( int index );
00052     void slotOk();
00053 
00054 private:
00055     bool parseXML( const QDomDocument& doc );
00056 
00057     QComboBox* m_combo;
00058     QLabel* m_label;
00059     KSpreadView* m_view;
00060 
00061     struct Entry
00062     {
00063     QString xml;
00064     QString image;
00065     QString config;
00066     QString name;
00067     };
00068     QValueList<Entry> m_entries;
00069 
00070     KSpreadFormat* m_cells[ 16 ];
00071 };
00072 
00073 #endif
KDE Logo
This file is part of the documentation for kspread Library Version 1.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Feb 13 09:42:54 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003