*
* \author Jürgen Vigna
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#ifndef FORM_DOCUMENT_H
#define FORM_DOCUMENT_H
-
-#include "FormBase.h"
+#include "FormDialogView.h"
+#include "BranchList.h"
#include <boost/scoped_ptr.hpp>
#include "lyx_forms.h"
#include <vector>
-class ControlDocument;
-
class BufferParams;
-class FormColorpicker;
+namespace lyx {
+namespace frontend {
+class ControlDocument;
+class FormColorpicker;
struct FD_document;
struct FD_document_paper;
struct FD_document_class;
struct FD_document_bullet;
struct FD_document_branch;
-namespace {
-
-enum GuiColors {
- GUI_COLOR_CHOICE = FL_FREE_COL15
-};
-
-
-}
-
-
/** This class provides an XForms implementation of the FormDocument dialog.
* The table-layout-form here changes values for latex-tabulars
*/
-class FormDocument : public FormCB<ControlDocument, FormDB<FD_document> > {
+class FormDocument
+ : public FormController<ControlDocument, FormView<FD_document> > {
public:
- FormDocument();
+ FormDocument(Dialog &);
private:
/** Redraw the form (on receipt of a Signal indicating, for example,
that the xforms colours have been re-mapped). */
///
void branch_apply(BufferParams &);
+ void rebuild_all_branches_browser();
+ void rebuild_selected_branches_browser();
+
/// Real GUI implementation.
boost::scoped_ptr<FD_document_paper> paper_;
///
///
boost::scoped_ptr<FD_document_branch> branch_;
///
- boost::scoped_ptr<FormColorpicker> picker_;
+ boost::scoped_ptr<FormColorpicker> picker_;
///
int ActCell;
///
///
FL_OBJECT * fbullet;
///
- std::vector<string> lang_;
+ std::vector<std::string> lang_;
/// Contains all legal branches for this doc
BranchList branchlist_;
};
+} // namespace frontend
+} // namespace lyx
+
#endif