F:/KPlato/koffice/libs/kotext/KoParagDia_p.h

Aller à la documentation de ce fichier.
00001 /* This file is part of the KDE project
00002    Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef koparagdia_p_h
00021 #define koparagdia_p_h
00022 
00023 // This file hides those definitions from "users" of koParagDia.h
00024 // to reduce compile-time dependencies.
00025 
00026 #include <q3groupbox.h>
00027 //Added by qt3to4:
00028 #include <QMouseEvent>
00029 #include <KoParagCounter.h>
00030 #include <QSpinBox>
00031 class QWidget;
00032 class QPainter;
00033 
00034 
00035 /******************************************************************/
00036 /* Class: KoSpinBox                                               */
00037 /******************************************************************/
00038 class KoSpinBox : public QSpinBox
00039 {
00040     Q_OBJECT
00041 
00042 public:
00043     enum CounterType{ NONE,NUM,ALPHAB_L,ALPHAB_U,ROM_NUM_L,ROM_NUM_U};
00044 
00045     KoSpinBox( int minValue, int maxValue, int step = 1,
00046            QWidget * parent = 0 );
00047     KoSpinBox( QWidget * parent = 0 );
00048     virtual ~KoSpinBox();
00049     virtual QString mapValueToText( int value );
00050     virtual int mapTextToValue( bool * ok );
00051     void setCounterType(CounterType _type);
00052  private:
00053     CounterType m_Etype;
00054 
00055 };
00056 
00057 /******************************************************************/
00058 /* class KPagePreview                                            */
00059 /******************************************************************/
00060 class KPagePreview : public Q3GroupBox
00061 {
00062     Q_OBJECT
00063 
00064 public:
00065     KPagePreview( QWidget* );
00066     ~KPagePreview() {}
00067 
00068     void setLeft( double _left )
00069     { left = _left; update(); }
00070     void setRight( double _right )
00071     { right = _right; update(); }
00072     void setFirst( double _first )
00073     { first = _first; update(); }
00074     void setSpacing( double _spacing )
00075     { spacing = _spacing; update(); }
00076     void setBefore( double _before )
00077     { before = _before; update(); }
00078     void setAfter( double _after )
00079     { after = _after; update(); }
00080 
00081 protected:
00082     void drawContents( QPainter* );
00083     int convert(double input);
00084 
00085     double left, right, first, spacing, before, after;
00086 
00087 };
00088 
00089 /******************************************************************/
00090 /* class KPagePreview2                                           */
00091 /******************************************************************/
00092 
00093 class KPagePreview2 : public Q3GroupBox
00094 {
00095     Q_OBJECT
00096 
00097 public:
00098     KPagePreview2( QWidget* );
00099     ~KPagePreview2() {}
00100 
00101     void setAlign( int _align )
00102     { align = _align; update(); }
00103 
00104 protected:
00105     void drawContents( QPainter* );
00106 
00107     int align;
00108 
00109 };
00110 
00111 #endif

Généré le Wed Nov 22 23:41:08 2006 pour KPlato par  doxygen 1.5.1-p1