4 * John Levon, moz@compsoc.man.ac.uk
7 /***************************************************************************
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
14 ***************************************************************************/
16 #ifndef FORMTOCDIALOG_H
17 #define FORMTOCDIALOG_H
25 #include <qpushbutton.h>
26 #include <qcombobox.h>
28 #include <ktreelist.h>
32 class FormTocDialog : public QDialog {
35 FormTocDialog(FormToc *form, QWidget *parent=0, const char *name=0,
36 bool modal=false, WFlags f=0);
43 QPushButton *buttonUpdate;
44 QPushButton *buttonClose;
47 void closeEvent(QCloseEvent *e);
54 QHBoxLayout *topLayout;
56 QHBoxLayout *buttonLayout;
59 /// adaptor to FormToc::highlight
60 void highlight_adaptor(int index) {
61 form_->highlight(index);
64 /// adaptor to FormToc::update
65 void update_adaptor(void) {
69 // adaptors to FormToc::set_type
70 void activate_adaptor(int index) {
73 form_->set_type(Buffer::TOC_TOC);
76 form_->set_type(Buffer::TOC_LOF);
79 form_->set_type(Buffer::TOC_LOT);
82 form_->set_type(Buffer::TOC_LOA);
85 lyxerr[Debug::GUI] << "Unknown TOC combo selection." << endl;
90 /// adaptor to FormToc::close
91 void close_adaptor(void) {