2 * \file searchdlgimpl.h
3 * Copyright 2001 The LyX Team.
4 * See the file COPYING.
11 #include "searchdlgimpl.h"
13 #include <qpushbutton.h>
14 #include <qcombobox.h>
15 #include <qcheckbox.h>
19 SearchDlgImpl::SearchDlgImpl(FormSearch* form, QWidget* parent, const char* name, bool modal, WFlags fl )
20 : SearchDlg( parent, name, modal, fl ), form_(form)
26 SearchDlgImpl::~SearchDlgImpl()
31 void SearchDlgImpl::closeEvent(QCloseEvent * e)
38 void SearchDlgImpl::setReadOnly(bool readonly)
40 replace->setEnabled(!readonly);
41 replaceLabel->setEnabled(!readonly);
42 replacePB->setEnabled(!readonly);
43 replaceAllPB->setEnabled(!readonly);
47 void SearchDlgImpl::Find()
49 form_->find(tostr(find->currentText()).c_str(),
50 caseSensitive->isChecked(),
51 matchWord->isChecked(),
52 !searchBack->isChecked());
56 void SearchDlgImpl::Replace(bool replaceall)
58 form_->replace(tostr(find->currentText()).c_str(),
59 tostr(replace->currentText()).c_str(),
60 caseSensitive->isChecked(),
61 matchWord->isChecked(),
62 !searchBack->isChecked(),