]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormDocument.h
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / FormDocument.h
index 41d5686e2435145f1aa2b37181e4582279c14d2c..3cd5084a785f94334db724fc7530e1c7e60b9197 100644 (file)
@@ -6,29 +6,43 @@
  *
  * \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 "BranchList.h"
 
 #include <boost/scoped_ptr.hpp>
 
+#include "lyx_forms.h"
 #include <vector>
 
 class ControlDocument;
 
 class BufferParams;
 
+class FormColorpicker;
+
 struct FD_document;
 struct FD_document_paper;
 struct FD_document_class;
 struct FD_document_language;
 struct FD_document_options;
 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
@@ -49,6 +63,8 @@ private:
        /// Apply from dialog
        virtual void apply();
 
+       ///
+       void branch_input(FL_OBJECT *);
        ///
        void ChoiceBulletSize(FL_OBJECT * ob, long);
        ///
@@ -78,6 +94,8 @@ private:
        void options_update(BufferParams const &);
        ///
        void bullets_update(BufferParams const &);
+       ///
+       void branch_update(BufferParams const &);
 
        ///
        void paper_apply(BufferParams &);
@@ -89,6 +107,11 @@ private:
        bool options_apply(BufferParams &);
        ///
        void bullets_apply(BufferParams &);
+       ///
+       void branch_apply(BufferParams &);
+
+       void rebuild_all_branches_browser();
+       void rebuild_selected_branches_browser();
 
        /// Real GUI implementation.
        boost::scoped_ptr<FD_document_paper>    paper_;
@@ -101,6 +124,10 @@ private:
        ///
        boost::scoped_ptr<FD_document_bullet>   bullets_;
        ///
+       boost::scoped_ptr<FD_document_branch>   branch_;
+       ///
+       boost::scoped_ptr<FormColorpicker> picker_;
+       ///
        int ActCell;
        ///
        int Confirmed;
@@ -111,7 +138,9 @@ private:
        ///
        FL_OBJECT * fbullet;
        ///
-       std::vector<string> lang_;
+       std::vector<std::string> lang_;
+       /// Contains all legal branches for this doc
+       BranchList branchlist_;
 };
 
 #endif