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>
23 QTocDialog::QTocDialog(QToc * form)
24 : QTocDialogBase(0, 0, false, 0),
27 connect(closePB, SIGNAL(clicked()),
28 form, SLOT(slotClose()));
32 QTocDialog::~QTocDialog()
37 void QTocDialog::activate_adaptor(int)
39 form_->updateToc(form_->depth_);
43 void QTocDialog::depth_adaptor(int depth)
45 form_->set_depth(depth);
49 void QTocDialog::select_adaptor(QListViewItem * item)
51 form_->select(item->text(0).latin1());
55 void QTocDialog::update_adaptor()
61 void QTocDialog::closeEvent(QCloseEvent * e)