4 * Copyright 2001 the LyX Team
5 * Read the file COPYING
7 * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
15 #include <boost/smart_ptr.hpp>
19 #include "QtLyXView.h"
25 class ControlDocument;
26 class QDocumentDialog;
32 //FIXME !!!!! : public Qt2CB<ControlDocument, Qt2DB<QDocumentDialog> >
36 QDocument(LyXView *, Dialogs *);
71 /// Pointer to the actual instantiation of the ButtonController.
74 virtual void build_dialog();
75 // /// Filter the inputs
76 // virtual bool input( FL_OBJECT *, long );
77 /// Update the dialog.
78 virtual void update_contents();
81 /// Cancel from dialog
82 virtual void cancel();
85 // virtual QDialog* form() const;
89 bool CheckDocumentInput(QWidget* ob, long);
91 void ChoiceBulletSize(QWidget* ob, long);
93 void InputBulletLaTeX(QWidget* ob, long);
95 void BulletDepth(QWidget* ob, State);
97 void BulletPanel(QWidget* ob, State);
99 void BulletBMTable(QWidget* ob, long);
101 void checkMarginValues();
103 void checkReadOnly();
105 void CheckChoiceClass(QWidget* ob, long);
107 void UpdateLayoutDocument(BufferParams const & params);
110 void paper_update(BufferParams const &);
112 void class_update(BufferParams const &);
114 void language_update(BufferParams const &);
116 void options_update(BufferParams const &);
118 void bullets_update(BufferParams const &);
125 bool language_apply();
127 bool options_apply();
129 void bullets_apply();
131 /// Fdesign generated methods
132 QDialog* build_tabbed_document();
134 QDialog* build_doc_paper();
136 QDialog* build_doc_class();
138 QDialog* build_doc_language();
140 QDialog* build_doc_options();
142 QDialog* build_doc_bullet();
144 /// Real GUI implementation.
145 boost::scoped_ptr<QDocumentDialog> dialog_;
151 int current_bullet_panel;
153 int current_bullet_depth;
155 // FL_OBJECT * fbullet;
157 // boost::scoped_ptr<Combox> combo_language;
159 // boost::scoped_ptr<Combox> combo_doc_class;
160 /// The ButtonController
161 ButtonController<NoRepeatedApplyReadOnlyPolicy, Qt2BC> bc_;
166 Qt2BC & QDocument::bc()
171 #endif // QDOCUMENT_H