3 #include "FormTocDialog.h"
10 * Constructs a FormTocDialog which is a child of 'parent', with the
11 * name 'name' and widget flags set to 'f'
13 * The dialog will by default be modeless, unless you set 'modal' to
14 * TRUE to construct a modal dialog.
16 FormTocDialog::FormTocDialog( FormToc* form_, QWidget* parent, const char* name, bool modal, WFlags fl )
17 : FormTocDialogBase( parent, name, modal, fl ),
23 * Destroys the object and frees any allocated resources
25 FormTocDialog::~FormTocDialog()
27 // no need to delete child widgets, Qt does it all for us
33 void FormTocDialog::activate_adaptor(int index)
37 form->set_type(Buffer::TOC_TOC);
40 form->set_type(Buffer::TOC_LOF);
43 form->set_type(Buffer::TOC_LOT);
46 form->set_type(Buffer::TOC_LOA);
49 lyxerr[Debug::GUI] << "Unknown TOC combo selection." << std::endl;
56 void FormTocDialog::close_adaptor()
64 void FormTocDialog::depth_adaptor(int depth)
66 form->set_depth(depth);
71 void FormTocDialog::select_adaptor(QListViewItem* item)
73 form->select(item->text(0));
78 void FormTocDialog::update_adaptor()
83 void FormTocDialog::closeEvent(QCloseEvent *e)