kword

KWInsertPicDia.h

00001 /* This file is part of the KDE project
00002    Copyright (C)  2001 David Faure <faure@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 kwinsertpicdia_h
00021 #define kwinsertpicdia_h
00022 
00023 #include <kdialogbase.h>
00024 class QCheckBox;
00025 class KWInsertPicPreview;
00026 class KFileDialog;
00027 class KWDocument;
00028 
00029 class KWInsertPicDia : public KDialogBase
00030 {
00031     Q_OBJECT
00032 public:
00033     KWInsertPicDia( QWidget *parent, bool _inline, bool _keepRatio, KWDocument *_doc, const char *name = 0 );
00034 
00035     bool makeInline() const;
00036 
00037     bool keepRatio() const;
00038 
00043     static KoPicture selectPictureDia( const QString & _path, QWidget* parent );
00044 
00045     KoPicture picture ( void ) const;
00046 
00047 protected slots:
00048     void slotChooseImage();
00049 
00050 protected:
00051     static KoPicture selectPicture( KFileDialog & fd, QWidget *parent );
00052 
00053 private:
00054 
00055     bool m_bFirst;
00056     QCheckBox *m_cbInline, *m_cbKeepRatio;
00057     KWInsertPicPreview *m_preview;
00058     KWDocument *m_doc;
00059     KoPicture m_picture;
00060 };
00061 
00062 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys