4 * Copyright 2000-2001 the LyX Team
5 * Read the file COPYING
7 * \author Jürgen Vigna, jug@sad.it
10 #ifndef FORM_PARAGRAPH_H
11 #define FORM_PARAGRAPH_H
17 #include "FormBaseDeprecated.h"
19 #include <boost/scoped_ptr.hpp>
20 #include <boost/signals/connection.hpp>
23 struct FD_form_paragraph;
25 /** This class provides an XForms implementation of the FormParagraph dialog.
27 class FormParagraph : public FormBaseBD {
30 FormParagraph(LyXView *, Dialogs *);
32 /// Pointer to the actual instantiation of the ButtonController.
33 virtual xformsBC & bc();
34 /** Redraw the form (on receipt of a Signal indicating, for example,
35 that the xforms colours have been re-mapped). */
36 virtual void redraw();
42 virtual void update();
43 /// Filter the inputs on callback from xforms
44 virtual bool input(FL_OBJECT * ob, long);
46 virtual void connect();
47 /// Disconnect signals
48 virtual void disconnect();
50 void changedParagraph();
52 Paragraph const * getCurrentParagraph() const;
54 virtual FL_FORM * form() const;
56 /// Fdesign generated method
57 FD_form_paragraph * build_paragraph();
59 /// Real GUI implementation.
60 boost::scoped_ptr<FD_form_paragraph> dialog_;
62 /// The ButtonController
63 ButtonController<NoRepeatedApplyReadOnlyPolicy, xformsBC> bc_;
65 /// Changed Paragraph connection.
66 boost::signals::connection cp_;
68 /// The current Paragraph
69 Paragraph const * par_;
74 xformsBC & FormParagraph::bc()