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
13 #include <boost/smart_ptr.hpp>
19 #include "FormBaseDeprecated.h"
22 struct FD_form_paragraph;
24 /** This class provides an XForms implementation of the FormParagraph dialog.
26 class FormParagraph : public FormBaseBD {
29 FormParagraph(LyXView *, Dialogs *);
31 /// Pointer to the actual instantiation of the ButtonController.
32 virtual xformsBC & bc();
33 /** Redraw the form (on receipt of a Signal indicating, for example,
34 that the xforms colours have been re-mapped). */
35 virtual void redraw();
41 virtual void update();
42 /// Filter the inputs on callback from xforms
43 virtual bool input(FL_OBJECT * ob, long);
45 virtual void connect();
46 /// Disconnect signals
47 virtual void disconnect();
49 void changedParagraph();
51 Paragraph const * getCurrentParagraph() const;
53 virtual FL_FORM * form() const;
55 /// Fdesign generated method
56 FD_form_paragraph * build_paragraph();
58 /// Real GUI implementation.
59 boost::scoped_ptr<FD_form_paragraph> dialog_;
61 /// The ButtonController
62 ButtonController<NoRepeatedApplyReadOnlyPolicy, xformsBC> bc_;
64 /// Changed Paragraph connection.
67 /// The current Paragraph
68 Paragraph const * par_;
73 xformsBC & FormParagraph::bc()