4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Kalle Dalheimer
9 * Full author contact details are available in file CREDITS
22 //#include "QtLyXView.h"
24 #include <boost/scoped_ptr.hpp>
26 class ControlDocument;
27 class QDocumentDialog;
33 //FIXME !!!!! : public Qt2CB<ControlDocument, Qt2DB<QDocumentDialog> >
37 QDocument(LyXView *, Dialogs *);
72 /// Pointer to the actual instantiation of the ButtonController.
75 virtual void build_dialog();
76 // /// Filter the inputs
77 // virtual bool input( FL_OBJECT *, long );
78 /// Update the dialog.
79 virtual void update_contents();
82 /// Cancel from dialog
83 virtual void cancel();
86 // virtual QDialog* form() const;
90 bool CheckDocumentInput(QWidget* ob, long);
92 void ChoiceBulletSize(QWidget* ob, long);
94 void InputBulletLaTeX(QWidget* ob, long);
96 void BulletDepth(QWidget* ob, State);
98 void BulletPanel(QWidget* ob, State);
100 void BulletBMTable(QWidget* ob, long);
102 void checkMarginValues();
104 void checkReadOnly();
106 void CheckChoiceClass(QWidget* ob, long);
108 void UpdateLayoutDocument(BufferParams const & params);
111 void paper_update(BufferParams const &);
113 void class_update(BufferParams const &);
115 void language_update(BufferParams const &);
117 void options_update(BufferParams const &);
119 void bullets_update(BufferParams const &);
126 bool language_apply();
128 bool options_apply();
130 void bullets_apply();
132 /// Fdesign generated methods
133 QDialog* build_tabbed_document();
135 QDialog* build_doc_paper();
137 QDialog* build_doc_class();
139 QDialog* build_doc_language();
141 QDialog* build_doc_options();
143 QDialog* build_doc_bullet();
145 /// Real GUI implementation.
146 boost::scoped_ptr<QDocumentDialog> dialog_;
152 int current_bullet_panel;
154 int current_bullet_depth;
156 // FL_OBJECT * fbullet;
158 // boost::scoped_ptr<Combox> combo_language;
160 // boost::scoped_ptr<Combox> combo_doc_class;
161 /// The ButtonController
162 ButtonController<NoRepeatedApplyReadOnlyPolicy, Qt2BC> bc_;
167 Qt2BC & QDocument::bc()
172 #endif // QDOCUMENT_H