2000-09-25 15:59:27 +00:00
|
|
|
|
// -*- C++ -*-
|
2002-03-11 17:00:41 +00:00
|
|
|
|
/**
|
2002-06-11 16:40:18 +00:00
|
|
|
|
* \file FormParagraph.h
|
2002-09-05 15:14:23 +00:00
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
2000-09-25 15:59:27 +00:00
|
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
|
* \author J<EFBFBD>rgen Vigna
|
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2002-03-11 17:00:41 +00:00
|
|
|
|
*/
|
2000-09-25 15:59:27 +00:00
|
|
|
|
|
|
|
|
|
#ifndef FORM_PARAGRAPH_H
|
|
|
|
|
#define FORM_PARAGRAPH_H
|
|
|
|
|
|
2003-03-13 13:56:25 +00:00
|
|
|
|
#include "FormDialogView.h"
|
2002-10-30 13:57:01 +00:00
|
|
|
|
#include "RadioButtonGroup.h"
|
2001-03-16 12:08:14 +00:00
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
|
namespace lyx {
|
|
|
|
|
namespace frontend {
|
|
|
|
|
|
2002-06-11 16:40:18 +00:00
|
|
|
|
class ControlParagraph;
|
2004-05-19 15:11:37 +00:00
|
|
|
|
struct FD_paragraph;
|
2000-09-25 15:59:27 +00:00
|
|
|
|
|
2001-04-03 14:30:58 +00:00
|
|
|
|
/** This class provides an XForms implementation of the FormParagraph dialog.
|
2000-09-25 15:59:27 +00:00
|
|
|
|
*/
|
2002-06-11 16:40:18 +00:00
|
|
|
|
class FormParagraph
|
2003-03-13 13:56:25 +00:00
|
|
|
|
: public FormController<ControlParagraph, FormView<FD_paragraph> > {
|
2000-09-25 15:59:27 +00:00
|
|
|
|
public:
|
|
|
|
|
///
|
2003-03-13 13:56:25 +00:00
|
|
|
|
FormParagraph(Dialog &);
|
2000-09-25 15:59:27 +00:00
|
|
|
|
private:
|
2001-04-03 14:30:58 +00:00
|
|
|
|
/// Build the dialog
|
2000-10-13 05:57:05 +00:00
|
|
|
|
virtual void build();
|
2001-04-03 14:30:58 +00:00
|
|
|
|
/// Apply from dialog
|
2000-10-13 05:57:05 +00:00
|
|
|
|
virtual void apply();
|
2001-04-03 14:30:58 +00:00
|
|
|
|
/// Update the dialog
|
2000-10-24 13:13:59 +00:00
|
|
|
|
virtual void update();
|
2002-07-02 19:23:10 +00:00
|
|
|
|
|
2000-10-10 01:33:42 +00:00
|
|
|
|
/// Filter the inputs on callback from xforms
|
2002-06-11 16:40:18 +00:00
|
|
|
|
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
|
2002-10-30 13:57:01 +00:00
|
|
|
|
|
|
|
|
|
/// alignment radio buttons
|
|
|
|
|
RadioButtonGroup alignment_;
|
2000-09-25 15:59:27 +00:00
|
|
|
|
};
|
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
|
} // namespace frontend
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
2000-09-25 15:59:27 +00:00
|
|
|
|
#endif
|