KoFileDialog.h
1/* This file is part of the KDE project
2 Copyright (C) 2002-2004 David Faure <faure@kde.org>
3 Copyright (C) 2002-2004 Clarence Dang <dang@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef KOFILEDIALOG_H
22#define KOFILEDIALOG_H
23
24#include <tdefiledialog.h>
25#include <tqvaluevector.h>
26
35class KoFileDialog : public KFileDialog
36{
37 TQ_OBJECT
38
39public:
40 KoFileDialog( const TQString& startDir, const TQString& filter,
41 TQWidget *parent, const char *name,
42 bool modal );
43 void setSpecialMimeFilter( TQStringList& mimeFilter,
44 const TQString& currentFormat, const int specialOutputFlag,
45 const TQString& nativeFormat,
46 int supportedSpecialFormats );
47 int specialEntrySelected();
48
49private slots:
50 void slotChangedfilter( int index );
51
52private:
53 TQValueVector<int> m_specialFormats;
54};
55
56#endif /* KOFILEDIALOG_H */
Extension to KFileDialog in order to add special entries to the filter combo, like "save as koffice-1...