3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS
14 #pragma implementation
18 #include "QTocDialog.h"
20 #include <qlistview.h>
21 #include <qpushbutton.h>
24 QTocDialog::QTocDialog(QToc * form)
25 : QTocDialogBase(0, 0, false, 0),
28 connect(closePB, SIGNAL(clicked()),
29 form, SLOT(slotClose()));
33 QTocDialog::~QTocDialog()
38 void QTocDialog::activate_adaptor(int)
40 form_->updateToc(form_->depth_);
44 void QTocDialog::depth_adaptor(int depth)
46 form_->set_depth(depth);
50 void QTocDialog::select_adaptor(QListViewItem * item)
52 form_->select(item->text(0).latin1());
56 void QTocDialog::update_adaptor()
62 void QTocDialog::closeEvent(QCloseEvent * e)