kspread

kspread_dlg_find.h
1/* This file is part of the KDE project
2 Copyright (C) 1999-2005 Laurent Montel <montel@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef __kspread_dlg_find__
21#define __kspread_dlg_find__
22
23
24#include <kfinddialog.h>
25#include <tqstringlist.h>
26#include <kreplacedialog.h>
27
28class TQCheckBox;
29class TQPushButton;
30class TQComboBox;
31
32namespace KSpread
33{
34
35class FindOption : public TQObject
36{
37 TQ_OBJECT
38
39 public:
40 FindOption( TQWidget *parent);
41 bool searchInAllSheet() const;
42
43 enum searchTypeValue { Value, Note};
44 enum searchDirectionValue { Row, Column};
45
46 searchTypeValue searchType() const;
47 searchDirectionValue searchDirection() const;
48
49private slots:
50 void slotMoreOptions();
51
52signals:
53 void adjustSize();
54
55private:
56 TQPushButton *m_moreOptions;
57 TQCheckBox *m_searchInAllSheet;
58 TQWidget *m_findExtension;
59 TQComboBox *m_searchIn;
60 TQComboBox *m_searchDirection;
61};
62
63class FindDlg : public KFindDialog
64{
65 TQ_OBJECT
66
67
68 public:
69 FindDlg( TQWidget *parent = 0, const char *name = 0, long options = 0, const TQStringList &findStrings = TQStringList(), bool hasSelection = false );
70 ~FindDlg();
71 bool searchInAllSheet() const;
72 FindOption::searchTypeValue searchType() const { return m_findOptions->searchType(); }
73 FindOption::searchDirectionValue searchDirection() const { return m_findOptions->searchDirection(); }
74
75 private slots:
76 void slotAjustSize();
77 private:
78 FindOption *m_findOptions;
79};
80
81class SearchDlg : public KReplaceDialog
82{
83 TQ_OBJECT
84
85
86 public:
87 SearchDlg( TQWidget *parent = 0, const char *name = 0, long options = 0, const TQStringList &findStrings = TQStringList(), const TQStringList &replaceStrings = TQStringList(), bool hasSelection = false );
88 ~SearchDlg();
89 bool searchInAllSheet() const;
90 FindOption::searchTypeValue searchType() const { return m_findOptions->searchType(); }
91
92 private slots:
93 void slotAjustSize();
94 private:
95 FindOption *m_findOptions;
96};
97
98} // namespace KSpread
99
100#endif
The KSpread namespace.
Definition commands.h:39