2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000-2001 The LyX Team.
11 *======================================================*/
13 #ifndef FORM_PARAGRAPH_H
14 #define FORM_PARAGRAPH_H
16 #include <boost/smart_ptr.hpp>
22 #include "FormBaseDeprecated.h"
25 struct FD_form_paragraph;
27 /** This class provides an XForms implementation of the FormParagraph dialog.
28 * @author Jürgen Vigna
30 class FormParagraph : public FormBaseBD {
33 FormParagraph(LyXView *, Dialogs *);
35 /// Pointer to the actual instantiation of the ButtonController.
36 virtual xformsBC & bc();
37 /** Redraw the form (on receipt of a Signal indicating, for example,
38 that the xforms colours have been re-mapped). */
39 virtual void redraw();
45 virtual void update();
46 /// Filter the inputs on callback from xforms
47 virtual bool input(FL_OBJECT * ob, long);
49 virtual void connect();
50 /// Disconnect signals
51 virtual void disconnect();
53 void changedParagraph();
55 Paragraph const * getCurrentParagraph() const;
57 virtual FL_FORM * form() const;
59 /// Fdesign generated method
60 FD_form_paragraph * build_paragraph();
62 /// Real GUI implementation.
63 boost::scoped_ptr<FD_form_paragraph> dialog_;
65 /// The ButtonController
66 ButtonController<NoRepeatedApplyReadOnlyPolicy, xformsBC> bc_;
68 /// Changed Paragraph connection.
71 /// The current Paragraph
72 Paragraph const * par_;
77 xformsBC & FormParagraph::bc()