// -*- C++ -*-
/**
* \file FormParagraph.h
- * Copyright 2001 The LyX Team.
- * See the file COPYING.
+ * 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
-#ifdef __GNUG__
-#pragma interface
-#endif
-#include "FormBase.h"
+#include "FormDialogView.h"
+#include "RadioButtonGroup.h"
-struct FD_form_paragraph;
+struct FD_paragraph;
class ControlParagraph;
/** This class provides an XForms implementation of the FormParagraph dialog.
*/
class FormParagraph
- : public FormCB<ControlParagraph, FormDB<FD_form_paragraph> > {
+ : public FormController<ControlParagraph, FormView<FD_paragraph> > {
public:
///
- FormParagraph(ControlParagraph &);
+ FormParagraph(Dialog &);
private:
/// Build the dialog
virtual void build();
virtual void apply();
/// Update the dialog
virtual void update();
-
+
/// Filter the inputs on callback from xforms
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
- /// Fdesign generated method
- FD_form_paragraph * build_paragraph();
+ /// alignment radio buttons
+ RadioButtonGroup alignment_;
};
#endif