// -*- C++ -*-
-/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
- *
- * Copyright (C) 2000 The LyX Team.
+/**
+ * \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
+ * \author Jürgen Vigna
*
- *======================================================*/
+ * Full author contact details are available in file CREDITS
+ */
#ifndef FORM_PARAGRAPH_H
#define FORM_PARAGRAPH_H
-#include "FormBase.h"
-
-#ifdef __GNUG_
-#pragma interface
-#endif
+#include "FormDialogView.h"
+#include "RadioButtonGroup.h"
-struct FD_form_tabbed_paragraph;
-struct FD_form_paragraph_general;
-struct FD_form_paragraph_extra;
+struct FD_paragraph;
+class ControlParagraph;
-/** This class provides an XForms implementation of the FormParagraph Popup.
+/** This class provides an XForms implementation of the FormParagraph dialog.
*/
-class FormParagraph : public FormBase {
+class FormParagraph
+ : public FormController<ControlParagraph, FormView<FD_paragraph> > {
public:
///
- FormParagraph(LyXView *, Dialogs *);
- ///
- ~FormParagraph();
-
+ FormParagraph(Dialog &);
private:
- /// Build the popup
- void build();
- /// Apply from popup
- void apply();
- /// Update the popup.
- void update();
- /// Filter the inputs on callback from xforms
- virtual bool input(FL_OBJECT * ob, long);
+ /// Build the dialog
+ virtual void build();
+ /// Apply from dialog
+ virtual void apply();
+ /// Update the dialog
+ virtual void update();
- ///
- virtual FL_FORM * form() const;
-
- ///
- void general_update();
- ///
- void extra_update();
- ///
- void general_apply();
- ///
- void extra_apply();
-
- /// Typedefinitions from the fdesign produced Header file
- FD_form_tabbed_paragraph * build_tabbed_paragraph();
- ///
- FD_form_paragraph_general * build_paragraph_general();
- ///
- FD_form_paragraph_extra * build_paragraph_extra();
+ /// Filter the inputs on callback from xforms
+ virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
- /// Real GUI implementation.
- FD_form_tabbed_paragraph * dialog_;
- ///
- FD_form_paragraph_general * general_;
- ///
- FD_form_paragraph_extra * extra_;
+ /// alignment radio buttons
+ RadioButtonGroup alignment_;
};
#endif