00001 /* This file is part of the KDE project 00002 Copyright (C) 2002-2004 David Faure <faure@kde.org> 00003 Copyright (C) 2002-2004 Clarence Dang <dang@kde.org> 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., 51 Franklin Street, Fifth Floor, 00018 * Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #ifndef KOFILEDIALOG_H 00022 #define KOFILEDIALOG_H 00023 00024 #include <kfiledialog.h> 00025 #include <q3valuevector.h> 00026 00035 class KoFileDialog : public KFileDialog 00036 { 00037 Q_OBJECT 00038 public: 00039 KoFileDialog( const QString& startDir, const QString& filter, 00040 QWidget *parent, const char *name, 00041 bool modal ); 00042 void setSpecialMimeFilter( QStringList& mimeFilter, 00043 const QString& currentFormat, const int specialOutputFlag, 00044 const QString& nativeFormat, 00045 int supportedSpecialFormats ); 00046 int specialEntrySelected(); 00047 00048 private slots: 00049 void slotChangedfilter( int index ); 00050 00051 private: 00052 Q3ValueVector<int> m_specialFormats; 00053 }; 00054 00055 #endif /* KOFILEDIALOG_H */