]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormParagraph.h
Change the semantics of 'none' and 'auto' viewers/editors: 'none' means now
[lyx.git] / src / frontends / xforms / FormParagraph.h
index bb0b55aed22111c081ecc6d9b5fd3d10822d80ae..d55ae062aec0ef6bd94500fa5945c46516e1428e 100644 (file)
@@ -1,77 +1,49 @@
 // -*- C++ -*-
 /**
- * \file Tooltips.h
- * Copyright 2000-2001 the LyX Team
- * Read the file COPYING
+ * \file FormParagraph.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Jürgen Vigna, jug@sad.it
+ * \author Jürgen Vigna
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef FORM_PARAGRAPH_H
 #define FORM_PARAGRAPH_H
 
-#include <boost/smart_ptr.hpp>
-
-#ifdef __GNUG__
-#pragma interface
-#endif
+#include "FormDialogView.h"
+#include "RadioButtonGroup.h"
 
-#include "FormBaseDeprecated.h"
+namespace lyx {
+namespace frontend {
 
-class Paragraph;
-struct FD_form_paragraph;
+class ControlParagraph;
+struct FD_paragraph;
 
 /** This class provides an XForms implementation of the FormParagraph dialog.
  */
-class FormParagraph : public FormBaseBD {
+class FormParagraph
+       : public FormController<ControlParagraph, FormView<FD_paragraph> > {
 public:
        ///
-       FormParagraph(LyXView *, Dialogs *);
+       FormParagraph(Dialog &);
 private:
-       /// Pointer to the actual instantiation of the ButtonController.
-       virtual xformsBC & bc();
-       /** Redraw the form (on receipt of a Signal indicating, for example,
-           that the xforms colours have been re-mapped). */
-       virtual void redraw();
        /// Build the dialog
        virtual void build();
        /// Apply from dialog
        virtual void apply();
        /// Update the dialog
        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();
-       ///
-       void changedParagraph();
-       ///
-       Paragraph const * getCurrentParagraph() const;
-       ///
-       virtual FL_FORM * form() const;
-
-       /// Fdesign generated method
-       FD_form_paragraph * build_paragraph();
-
-       /// Real GUI implementation.
-       boost::scoped_ptr<FD_form_paragraph> dialog_;
 
-       /// The ButtonController
-       ButtonController<NoRepeatedApplyReadOnlyPolicy, xformsBC> bc_;
-
-       /// Changed Paragraph connection.
-       SigC::Connection cp_;
+       /// Filter the inputs on callback from xforms
+       virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
 
-       /// The current Paragraph
-       Paragraph const * par_;
+       /// alignment radio buttons
+       RadioButtonGroup alignment_;
 };
 
+} // namespace frontend
+} // namespace lyx
 
-inline
-xformsBC & FormParagraph::bc()
-{
-       return bc_;
-}
 #endif