kspread Library API Documentation

kspread_dlg_styles.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2003 Laurent Montel <montel@kde.org>
00003              (C) 2003 Norbert Andres <nandres@web.de>  
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018    Boston, MA 02111-1307, USA.
00019 */
00020 
00021 #ifndef __kspread_dlg_styles__
00022 #define __kspread_dlg_styles__
00023 
00024 #include <kdialogbase.h>
00025 #include <qwidget.h>
00026 
00027 class KComboBox;
00028 class KListView;
00029 
00030 class KSpreadStyleManager;
00031 class KSpreadView;
00032 
00033 class QListViewItem;
00034 
00035 class StyleWidget : public QWidget
00036 {
00037   Q_OBJECT
00038 
00039  public:
00040   StyleWidget( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
00041   ~StyleWidget();
00042 
00043   KListView * m_styleList;
00044   KComboBox * m_displayBox;
00045 signals:
00046     void modifyStyle();
00047 };
00048 
00049 class KSpreadStyleDlg : public KDialogBase
00050 {
00051   Q_OBJECT
00052  public:
00053   KSpreadStyleDlg( KSpreadView * parent, KSpreadStyleManager * manager,
00054                    const char * name = "KSpreadStyleDlg" );
00055   ~KSpreadStyleDlg();
00056 
00057  protected slots:
00058   void slotOk();
00059   void slotUser1();
00060   void slotUser2();
00061   void slotUser3();
00062   void slotDisplayMode( int mode );
00063   void slotSelectionChanged( QListViewItem * );
00064 
00065  private:
00066   KSpreadView         * m_view;
00067   KSpreadStyleManager * m_styleManager;
00068   StyleWidget         * m_dlg;
00069 
00070   void fillComboBox();
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:43:02 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003