2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright (C) 2000 The LyX Team.
9 * @author Jürgen Vigna, Kalle Dalheimer
11 *======================================================*/
13 #ifndef FORM_DOCUMENT_H
14 #define FORM_DOCUMENT_H
32 class FormDocumentDialog;
34 #ifdef SIGC_CXX_NAMESPACES
35 using SigC::Connection;
42 /** This class provides an Qt2 implementation of the FormDocument Popup.
43 The table-layout-form here changes values for latex-tabulars
45 class FormDocument : public DialogBase {
47 /// #FormDocument x(Communicator ..., Popups ...);#
48 FormDocument(LyXView *, Dialogs *);
52 enum EnumPopupStatus {
67 void checkMarginValues();
71 void UpdateLayoutDocument(BufferParams const & params);
75 void checkChoiceClass(QComboBox* cb);
77 bool checkDocumentInput(QWidget* w);
79 void bulletDepth( int );
81 void choiceBulletSize();
83 void inputBulletLaTeX();
87 void bulletBMTable( int );
92 void paper_update(BufferParams const &);
94 void class_update(BufferParams const &);
96 void language_update(BufferParams const &);
98 void options_update(BufferParams const &);
100 void bullets_update(BufferParams const &);
108 bool language_apply();
110 bool options_apply();
112 void bullets_apply();
113 /// Cancel from popup
117 /// Explicitly free the popup.
120 // /// Typedefinitions from the fdesign produced Header file
121 // FD_form_tabbed_document * build_tabbed_document();
123 // FD_form_doc_paper * build_doc_paper();
125 // FD_form_doc_class * build_doc_class();
127 // FD_form_doc_language * build_doc_language();
129 // FD_form_doc_options * build_doc_options();
131 // FD_form_doc_bullet * build_doc_bullet();
133 // /// Real GUI implementation.
134 FormDocumentDialog* dialog_;
136 /// Which LyXView do we belong to?
140 /// Update connection.
144 /// has form contents changed? Used to control OK/Apply
145 EnumPopupStatus status;
151 int currentBulletPanel;
153 int currentBulletDepth;
156 QPixmap* standardpix;
162 QPixmap bulletpics[36];