]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormParagraph.h
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / FormParagraph.h
index 279c96224672d997cf34ce96d27b51248f9ea5c2..224b4b4a9ea871f94e5de561e998b0d307152e64 100644 (file)
@@ -21,9 +21,8 @@
 
 #include "FormBaseDeprecated.h"
 
-struct FD_form_tabbed_paragraph;
-struct FD_form_paragraph_general;
-struct FD_form_paragraph_extra;
+class Paragraph;
+struct FD_form_paragraph;
 
 /** This class provides an XForms implementation of the FormParagraph dialog.
  *           @author Jürgen Vigna
@@ -46,27 +45,31 @@ private:
        virtual void update();
        /// Filter the inputs on callback from xforms
        virtual bool input(FL_OBJECT * ob, long);
-
+       /// Connect signals
+       virtual void connect();
+       /// Disconnect signals
+       virtual void disconnect();
        ///
-       virtual FL_FORM * form() const;
-       
+       void changedParagraph();
        ///
-       void general_update();
+       Paragraph const * getCurrentParagraph() const;
        ///
-       void general_apply();
+       virtual FL_FORM * form() const;
+       
+       /// Fdesign generated method
+       FD_form_paragraph * build_paragraph();
 
-       /// Fdesign generated methods
-       FD_form_tabbed_paragraph * build_tabbed_paragraph();
-       ///
-       FD_form_paragraph_general * build_paragraph_general();
-       ///
-       FD_form_paragraph_extra * build_paragraph_extra();
        /// Real GUI implementation.
-       boost::scoped_ptr<FD_form_tabbed_paragraph> dialog_;
-       ///
-       boost::scoped_ptr<FD_form_paragraph_general> general_;
+       boost::scoped_ptr<FD_form_paragraph> dialog_;
+
        /// The ButtonController
        ButtonController<NoRepeatedApplyReadOnlyPolicy, xformsBC> bc_;
+
+       /// Changed Paragraph connection.
+       SigC::Connection cp_;
+
+       /// The current Paragraph
+       Paragraph const * par_;
 };