kword

KWFootNoteDia.h

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 footnotedia_h
00021 #define footnotedia_h
00022 
00023 #include <kdialogbase.h>
00024 #include "defs.h" // for NoteType
00025 #include "KWVariable.h"
00026 class QRadioButton;
00027 class QLineEdit;
00028 class KWDocument;
00029 /******************************************************************/
00030 /* Class: KWFootNoteDia                                           */
00031 /******************************************************************/
00032 
00033 class KWFootNoteDia : public KDialogBase
00034 {
00035     Q_OBJECT
00036 
00037 public:
00038     KWFootNoteDia( NoteType _noteType, KWFootNoteVariable::Numbering _numberingType,  const QString & _manualString, QWidget *parent, KWDocument *_doc, const char *name = 0 );
00039 
00040     NoteType noteType() const;
00041     KWFootNoteVariable::Numbering numberingType()const;
00042     QString manualString()const;
00043     void appendManualFootNote( const QString & );
00044 protected:
00045     bool insertFootNote();
00046     bool footNoteAlreadyExists( const QString & );
00047 protected slots:
00048     void footLineChanged( const QString & );
00049     void footNoteTypeChanged();
00050     void slotConfigurate();
00051 private:
00052 
00053     QRadioButton *m_rbAuto;
00054     QRadioButton *m_rbManual;
00055 
00056     QRadioButton *m_rbFootNote;
00057     QRadioButton *m_rbEndNote;
00058     QLineEdit *m_footLine;
00059     KWDocument *m_doc;
00060     QValueList<QString> manualFootNotes;
00061 };
00062 
00063 #endif
00064 
00065 
KDE Home | KDE Accessibility Home | Description of Access Keys