]> 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 d72fac11b75286215f85c056eedff46d094cd451..224b4b4a9ea871f94e5de561e998b0d307152e64 100644 (file)
@@ -4,7 +4,7 @@
  * 
  *           LyX, The Document Processor
  *      
- *           Copyright (C) 2000 The LyX Team.
+ *           Copyright 2000-2001 The LyX Team.
  *
  *           @author Jürgen Vigna
  *
 #endif
 
 #include "FormBaseDeprecated.h"
-#if 1
-#include "lyxparagraph.h"
-#endif
 
-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
@@ -49,40 +45,31 @@ private:
        virtual void update();
        /// Filter the inputs on callback from xforms
        virtual bool input(FL_OBJECT * ob, long);
-
-       ///
-       virtual FL_FORM * form() const;
-       
+       /// Connect signals
+       virtual void connect();
+       /// Disconnect signals
+       virtual void disconnect();
        ///
-       void general_update();
-#ifndef NO_PEXTRA
-       ///
-       void extra_update();
-#endif
-       ///
-       void general_apply();
-#ifndef NO_PEXTRA
-       ///
-       void extra_apply();
-#endif
-       /// Fdesign generated methods
-       FD_form_tabbed_paragraph * build_tabbed_paragraph();
+       void changedParagraph();
        ///
-       FD_form_paragraph_general * build_paragraph_general();
-//#ifndef NO_PEXTRA
+       Paragraph const * getCurrentParagraph() const;
        ///
-       FD_form_paragraph_extra * build_paragraph_extra();
-//#endif
+       virtual FL_FORM * form() const;
+       
+       /// Fdesign generated method
+       FD_form_paragraph * build_paragraph();
+
        /// Real GUI implementation.
-       boost::scoped_ptr<FD_form_tabbed_paragraph> dialog_;
-       ///
-       boost::scoped_ptr<FD_form_paragraph_general> general_;
-#ifndef NO_PEXTRA
-       ///
-       boost::scoped_ptr<FD_form_paragraph_extra> extra_;
-#endif
+       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_;
 };